среда, 21 марта 2018 г.

Asterisk function CHANNEL (PJSIP)

Пример:
same => n,Log(NOTICE, ${CHANNEL(pjsip,call-id)})



Technology: PJSIP
  • rtp - R/O Retrieve media related information.
    • type - When rtp is specified, the type parameter must be provided. It specifies which RTP parameter to read.
      • src - Retrieve the local address for RTP.
      • dest - Retrieve the remote address for RTP.
      • direct - If direct media is enabled, this address is the remote address used for RTP.
      • secure - Whether or not the media stream is encrypted.
        • 0 - The media stream is not encrypted.
        • 1 - The media stream is encrypted.
      • hold - Whether or not the media stream is currently restricted due to a call hold.
        • 0 - The media stream is not held.
        • 1 - The media stream is held.
    • media_type - When rtp is specified, the media_type parameter may be provided. It specifies which media stream the chosen RTP parameter should be retrieved from.
      • audio - Retrieve information from the audio media stream.
        Note
        Icon
        If not specified, audio is used by default.
      • video - Retrieve information from the video media stream.
  • rtcp - R/O Retrieve RTCP statistics.
    • statistic - When rtcp is specified, the statistic parameter must be provided. It specifies which RTCP statistic parameter to read.
      • all - Retrieve a summary of all RTCP statistics.
        The following data items are returned in a semi-colon delineated list:
        • ssrc - Our Synchronization Source identifier
        • themssrc - Their Synchronization Source identifier
        • lp - Our lost packet count
        • rxjitter - Received packet jitter
        • rxcount - Received packet count
        • txjitter - Transmitted packet jitter
        • txcount - Transmitted packet count
        • rlp - Remote lost packet count
        • rtt - Round trip time
      • all_jitter - Retrieve a summary of all RTCP Jitter statistics.
        The following data items are returned in a semi-colon delineated list:
        • minrxjitter - Our minimum jitter
        • maxrxjitter - Our max jitter
        • avgrxjitter - Our average jitter
        • stdevrxjitter - Our jitter standard deviation
        • reported_minjitter - Their minimum jitter
        • reported_maxjitter - Their max jitter
        • reported_avgjitter - Their average jitter
        • reported_stdevjitter - Their jitter standard deviation
      • all_loss - Retrieve a summary of all RTCP packet loss statistics.
        The following data items are returned in a semi-colon delineated list:
        • minrxlost - Our minimum lost packets
        • maxrxlost - Our max lost packets
        • avgrxlost - Our average lost packets
        • stdevrxlost - Our lost packets standard deviation
        • reported_minlost - Their minimum lost packets
        • reported_maxlost - Their max lost packets
        • reported_avglost - Their average lost packets
        • reported_stdevlost - Their lost packets standard deviation
      • all_rtt - Retrieve a summary of all RTCP round trip time information.
        The following data items are returned in a semi-colon delineated list:
        • minrtt - Minimum round trip time
        • maxrtt - Maximum round trip time
        • avgrtt - Average round trip time
        • stdevrtt - Standard deviation round trip time
      • txcount - Transmitted packet count
      • rxcount - Received packet count
      • txjitter - Transmitted packet jitter
      • rxjitter - Received packet jitter
      • remote_maxjitter - Their max jitter
      • remote_minjitter - Their minimum jitter
      • remote_normdevjitter - Their average jitter
      • remote_stdevjitter - Their jitter standard deviation
      • local_maxjitter - Our max jitter
      • local_minjitter - Our minimum jitter
      • local_normdevjitter - Our average jitter
      • local_stdevjitter - Our jitter standard deviation
      • txploss - Transmitted packet loss
      • rxploss - Received packet loss
      • remote_maxrxploss - Their max lost packets
      • remote_minrxploss - Their minimum lost packets
      • remote_normdevrxploss - Their average lost packets
      • remote_stdevrxploss - Their lost packets standard deviation
      • local_maxrxploss - Our max lost packets
      • local_minrxploss - Our minimum lost packets
      • local_normdevrxploss - Our average lost packets
      • local_stdevrxploss - Our lost packets standard deviation
      • rtt - Round trip time
      • maxrtt - Maximum round trip time
      • minrtt - Minimum round trip time
      • normdevrtt - Average round trip time
      • stdevrtt - Standard deviation round trip time
      • local_ssrc - Our Synchronization Source identifier
      • remote_ssrc - Their Synchronization Source identifier
    • media_type - When rtcp is specified, the media_type parameter may be provided. It specifies which media stream the chosen RTCP parameter should be retrieved from.
      • audio - Retrieve information from the audio media stream.
        Note
        Icon
        If not specified, audio is used by default.
      • video - Retrieve information from the video media stream.
  • endpoint - R/O The name of the endpoint associated with this channel. Use the PJSIP_ENDPOINT function to obtain further endpoint related information.
  • contact - R/O The name of the contact associated with this channel. Use the PJSIP_CONTACT function to obtain further contact related information. Note this may not be present and if so is only available on outgoing legs.
  • aor - R/O The name of the AOR associated with this channel. Use the PJSIP_AOR function to obtain further AOR related information. Note this may not be present and if so is only available on outgoing legs.
  • pjsip - R/O Obtain information about the current PJSIP channel and its session.
    • type - When pjsip is specified, the type parameter must be provided. It specifies which signalling parameter to read.
      • call-id - The SIP call-id.
      • secure - Whether or not the signalling uses a secure transport.
        • 0 - The signalling uses a non-secure transport.
        • 1 - The signalling uses a secure transport.
      • target_uri - The request URI of the INVITE request associated with the creation of this channel.
      • local_uri - The local URI.
      • remote_uri - The remote URI.
      • t38state - The current state of any T.38 fax on this channel.
        • DISABLED - T.38 faxing is disabled on this channel.
        • LOCAL_REINVITE - Asterisk has sent a re-INVITE to the remote end to initiate a T.38 fax.
        • REMOTE_REINVITE - The remote end has sent a re-INVITE to Asterisk to initiate a T.38 fax.
        • ENABLED - A T.38 fax session has been enabled.
        • REJECTED - A T.38 fax session was attempted but was rejected.
      • local_addr - On inbound calls, the full IP address and port number that the INVITE request was received on. On outbound calls, the full IP address and port number that the INVITE request was transmitted from.
      • remote_addr - On inbound calls, the full IP address and port number that the INVITE request was received from. On outbound calls, the full IP address and port number that the INVITE request was transmitted to.

Комментариев нет:

Отправить комментарий