Debian Codegraph @

channels/pjsip/dialplan_functions_doc.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE docs SYSTEM "appdocsxml.dtd">
3 <docs xmlns:xi="http://www.w3.org/2001/XInclude">
4 <application name="PJSIPHangup" language="en_US">
5 <since>
6 <version>18.21.0</version>
7 <version>20.6.0</version>
8 <version>21.1.0</version>
9 </since>
10 <synopsis>
11 Hangup an incoming PJSIP channel with a SIP response code
12 </synopsis>
13 <syntax>
14 <parameter name="Cause" required="true">
15 <para>May be one of...</para>
16 <enumlist>
17 <enum name="Response code"><para>A numeric response code in the range 400 ->699</para></enum>
18 <enum name="Response code name"><para>A response code name from
19 <literal>third-party/pjproject/source/pjsip/include/pjsip/sip_msg.h</literal>
20 such as <literal>USE_IDENTITY_HEADER</literal> or
21 <literal>PJSIP_SC_USE_IDENTITY_HEADER</literal></para></enum>
22 </enumlist>
23 </parameter>
24 </syntax>
25 <description>
26 <para>
27 Hangs up an incoming PJSIP channel and returns the
28 specified SIP response code in the final response to the caller.
29 </para>
30 <para>
31 </para>
32 <warning><para>
33 This function must be called BEFORE anything that
34 might cause any other final (non 1XX) response to be sent.
35 For example calling <literal>Answer()</literal> or
36 <literal>Playback</literal> without the
37 <literal>noanswer</literal> option will cause the call
38 to be answered and a final 200 response to be sent.
39 </para></warning>
40 <para>
41 </para>
42 <para>As with the <literal>Hangup</literal> application,
43 the dialplan will terminate after calling this function.</para>
44 <para>
45 </para>
46 <para>The cause code set on the channel will be translated to
47 a standard ISDN cause code using the table defined in
48 ast_sip_hangup_sip2cause() in res_pjsip.c</para>
49 <para>
50 </para>
51 <example title="Terminate call with 437 response code">
52 same = n,PJSIPHangup(437)
53 </example>
54 <example title="Terminate call with 437 response code using the response code name">
55 same = n,PJSIPHangup(UNSUPPORTED_CERTIFICATE)
56 </example>
57 <example title="Terminate call with 437 response code based on condition">
58 same = n,ExecIf($[${SOMEVALUE} = ${SOME_BAD_VALUE}]?PJSIPHangup(437))
59 </example>
60 </description>
61 </application>
62
63 <application name="PJSIPNotify" language="en_US">
64 <since>
65 <version>18.25.0</version>
66 <version>20.10.0</version>
67 <version>21.5.0</version>
68 </since>
69 <synopsis>
70 Send a NOTIFY to either an arbitrary URI, or inside a SIP dialog.
71 </synopsis>
72 <syntax>
73 <parameter name="to" required="false">
74 <para>Arbitrary URI to which to send the NOTIFY. If none is specified, send inside
75 the SIP dialog for the current channel.</para>
76 </parameter>
77 <parameter name="content" required="true">
78 <para>Either an option pre-configured in pjsip_notify.conf or a list of headers and body content to send in the NOTIFY.</para>
79 </parameter>
80 </syntax>
81 <description>
82 <para>
83 Sends a NOTIFY to a specified URI, or if none provided, within the current SIP dialog for the
84 current channel. The content can either be set to either an entry configured in pjsip_notify.conf
85 or specified as a list of key value pairs.
86 </para>
87 <warning><para>
88 To send a NOTIFY to a specified URI, a default_outbound_endpoint must be configured. This
89 endpoint determines the message contact.
90 </para></warning>
91 <para>
92 </para>
93 <example title="Send a NOTIFY with Event and X-Data headers in current dialog">
94 same = n,PJSIPNotify(,&amp;Event=Test&amp;X-Data=Fun)
95 </example>
96 <example title="Send a preconfigured NOTIFY force-answer defined in pjsip_notify.conf in current dialog">
97 same = n,PJSIPNotify(,force-answer)
98 </example>
99 <example title="Send a NOTIFY to &lt;sip:[email protected]:5260&gt; with Test Event and X-Data headers">
100 same = n,PJSIPNotify(&lt;sip:[email protected]:5260&gt;,&amp;Event=Test&amp;X-Data=Fun)
101 </example>
102 <example title="Send a NOTIFY to &lt;sip:[email protected]:5260&gt; with Custom Event and message body">
103 same = n,PJSIPNotify(&lt;sip:[email protected]:5260&gt;,&amp;Event=Custom&amp;Content-type=application&#47;voicemail&amp;Content=check-messages&amp;Content=)
104 </example>
105 </description>
106 </application>
107
108 <manager name="PJSIPHangup" language="en_US">
109 <since>
110 <version>21.1.0</version>
111 <version>20.6.0</version>
112 <version>18.21.0</version>
113 </since>
114 <synopsis>
115 Hangup an incoming PJSIP channel with a SIP response code
116 </synopsis>
117 <syntax>
118 <xi:include xpointer="xpointer(/docs/manager[@name='Login']/syntax/parameter[@name='ActionID'])" />
119 <xi:include xpointer="xpointer(/docs/manager[@name='Hangup']/syntax/parameter[@name='Channel'])" />
120 <xi:include xpointer="xpointer(/docs/application[@name='PJSIPHangup']/syntax/parameter[@name='Cause'])" />
121 </syntax>
122 <description>
123 <para>
124 Hangs up an incoming PJSIP channel and returns the
125 specified SIP response code in the final response to the caller.
126 </para>
127 <para>
128 </para>
129 <warning><para>
130 This function must be called BEFORE anything that
131 might cause any other final (non 1XX) response to be sent.
132 For example calling <literal>Answer()</literal> or
133 <literal>Playback</literal> without the
134 <literal>noanswer</literal> option will cause the call
135 to be answered and a final 200 response to be sent.
136 </para></warning>
137 <para>
138 </para>
139 <para>The cause code set on the channel will be translated to
140 a standard ISDN cause code using the table defined in
141 ast_sip_hangup_sip2cause() in res_pjsip.c</para>
142 <para>
143 </para>
144 <example title="Terminate call with 437 response code">
145 Action: PJSIPHangup
146 ActionID: 12345678
147 Channel: PJSIP/alice-00000002
148 Cause: 437
149 </example>
150 <example title="Terminate call with 437 response code using the response code name">
151 Action: PJSIPHangup
152 ActionID: 12345678
153 Channel: PJSIP/alice-00000002
154 Cause: UNSUPPORTED_CERTIFICATE
155 </example>
156 </description>
157 </manager>
158
159 <function name="PJSIP_DIAL_CONTACTS" language="en_US">
160 <since>
161 <version>12.0.0</version>
162 </since>
163 <synopsis>
164 Return a dial string for dialing all contacts on an AOR.
165 </synopsis>
166 <syntax>
167 <parameter name="endpoint" required="true">
168 <para>Name of the endpoint</para>
169 </parameter>
170 <parameter name="aor" required="false">
171 <para>Name of an AOR to use, if not specified the configured AORs on the endpoint are used</para>
172 </parameter>
173 <parameter name="request_user" required="false">
174 <para>Optional request user to use in the request URI</para>
175 </parameter>
176 </syntax>
177 <description>
178 <para>Returns a properly formatted dial string for dialing all contacts on an AOR.</para>
179 </description>
180 </function>
181 <function name="PJSIP_MEDIA_OFFER" language="en_US">
182 <since>
183 <version>12.0.0</version>
184 </since>
185 <synopsis>
186 Media and codec offerings to be set on an outbound SIP channel prior to dialing.
187 </synopsis>
188 <syntax>
189 <parameter name="media" required="true">
190 <para>The type of media offered</para>
191 <enumlist>
192 <enum name="audio">
193 <para>Audio codecs to offer</para>
194 </enum>
195 <enum name="video">
196 <para>Video codecs to offer</para>
197 </enum>
198 </enumlist>
199 </parameter>
200 </syntax>
201 <description>
202 <para>When read, returns the codecs offered based upon the media choice.</para>
203 <para>When written, sets the codecs to offer when an outbound dial attempt is made,
204 or when a session refresh is sent using <replaceable>PJSIP_SEND_SESSION_REFRESH</replaceable>.
205 </para>
206 </description>
207 <see-also>
208 <ref type="function">PJSIP_SEND_SESSION_REFRESH</ref>
209 </see-also>
210 </function>
211 <function name="PJSIP_DTMF_MODE" language="en_US">
212 <since>
213 <version>13.18.0</version>
214 <version>14.7.0</version>
215 <version>15.1.0</version>
216 </since>
217 <synopsis>
218 Get or change the DTMF mode for a SIP call.
219 </synopsis>
220 <syntax>
221 </syntax>
222 <description>
223 <para>When read, returns the current DTMF mode</para>
224 <para>When written, sets the current DTMF mode</para>
225 <para>This function uses the same DTMF mode naming as the dtmf_mode configuration option</para>
226 </description>
227 </function>
228 <function name="PJSIP_MOH_PASSTHROUGH" language="en_US">
229 <since>
230 <version>13.30.0</version>
231 <version>16.7.0</version>
232 <version>17.1.0</version>
233 </since>
234 <synopsis>
235 Get or change the on-hold behavior for a SIP call.
236 </synopsis>
237 <syntax>
238 </syntax>
239 <description>
240 <para>When read, returns the current moh passthrough mode</para>
241 <para>When written, sets the current moh passthrough mode</para>
242 <para>If <replaceable>yes</replaceable>, on-hold re-INVITEs are sent. If <replaceable>no</replaceable>, music on hold is generated.</para>
243 <para>This function can be used to override the moh_passthrough configuration option</para>
244 </description>
245 </function>
246 <function name="PJSIP_SEND_SESSION_REFRESH" language="en_US">
247 <since>
248 <version>13.12.0</version>
249 <version>14.1.0</version>
250 </since>
251 <synopsis>
252 W/O: Initiate a session refresh via an UPDATE or re-INVITE on an established media session
253 </synopsis>
254 <syntax>
255 <parameter name="update_type" required="false">
256 <para>The type of update to send. Default is <literal>invite</literal>.</para>
257 <enumlist>
258 <enum name="invite">
259 <para>Send the session refresh as a re-INVITE.</para>
260 </enum>
261 <enum name="update">
262 <para>Send the session refresh as an UPDATE.</para>
263 </enum>
264 </enumlist>
265 </parameter>
266 </syntax>
267 <description>
268 <para>This function will cause the PJSIP stack to immediately refresh
269 the media session for the channel. This will be done using either a
270 re-INVITE (default) or an UPDATE request.
271 </para>
272 <para>This is most useful when combined with the <replaceable>PJSIP_MEDIA_OFFER</replaceable>
273 dialplan function, as it allows the formats in use on a channel to be
274 re-negotiated after call setup.</para>
275 <warning>
276 <para>The formats the endpoint supports are <emphasis>not</emphasis>
277 checked or enforced by this function. Using this function to offer
278 formats not supported by the endpoint <emphasis>may</emphasis> result
279 in a loss of media.</para>
280 </warning>
281 <example title="Re-negotiate format to g722">
282 ; Within some existing extension on an answered channel
283 same => n,Set(PJSIP_MEDIA_OFFER(audio)=!all,g722)
284 same => n,Set(PJSIP_SEND_SESSION_REFRESH()=invite)
285 </example>
286 </description>
287 <see-also>
288 <ref type="function">PJSIP_MEDIA_OFFER</ref>
289 </see-also>
290 </function>
291 <function name="PJSIP_PARSE_URI" language="en_US">
292 <since>
293 <version>13.24.0</version>
294 <version>16.1.0</version>
295 </since>
296 <synopsis>
297 Parse a URI and return a type part of the URI.
298 </synopsis>
299 <syntax>
300 <parameter name="uri" required="true">
301 <para>URI to parse</para>
302 </parameter>
303 <parameter name="type" required="true">
304 <para>The <literal>type</literal> parameter specifies which URI part to read</para>
305 <enumlist>
306 <enum name="display">
307 <para>Display name.</para>
308 </enum>
309 <enum name="scheme">
310 <para>URI scheme.</para>
311 </enum>
312 <enum name="user">
313 <para>User part.</para>
314 </enum>
315 <enum name="passwd">
316 <para>Password part.</para>
317 </enum>
318 <enum name="host">
319 <para>Host part.</para>
320 </enum>
321 <enum name="port">
322 <para>Port number, or zero.</para>
323 </enum>
324 <enum name="user_param">
325 <para>User parameter.</para>
326 </enum>
327 <enum name="method_param">
328 <para>Method parameter.</para>
329 </enum>
330 <enum name="transport_param">
331 <para>Transport parameter.</para>
332 </enum>
333 <enum name="ttl_param">
334 <para>TTL param, or -1.</para>
335 </enum>
336 <enum name="lr_param">
337 <para>Loose routing param, or zero.</para>
338 </enum>
339 <enum name="maddr_param">
340 <para>Maddr param.</para>
341 </enum>
342 </enumlist>
343 </parameter>
344 </syntax>
345 <description>
346 <para>Parse a URI and return a specified part of the URI.</para>
347 </description>
348 </function>
349 <function name="PJSIP_PARSE_URI_FROM" language="en_US">
350 <since>
351 <version>18.24.0</version>
352 <version>20.9.0</version>
353 <version>21.4.0</version>
354 </since>
355 <synopsis>
356 Parse the contents of a variable as a URI and return a type part of the URI.
357 </synopsis>
358 <syntax>
359 <parameter name="uri" required="true">
360 <para>Name of a variable that contains a URI to parse</para>
361 </parameter>
362 <parameter name="type" required="true">
363 <para>The <literal>type</literal> parameter specifies which URI part to read</para>
364 <enumlist>
365 <enum name="display">
366 <para>Display name.</para>
367 </enum>
368 <enum name="scheme">
369 <para>URI scheme.</para>
370 </enum>
371 <enum name="user">
372 <para>User part.</para>
373 </enum>
374 <enum name="passwd">
375 <para>Password part.</para>
376 </enum>
377 <enum name="host">
378 <para>Host part.</para>
379 </enum>
380 <enum name="port">
381 <para>Port number, or zero.</para>
382 </enum>
383 <enum name="user_param">
384 <para>User parameter.</para>
385 </enum>
386 <enum name="method_param">
387 <para>Method parameter.</para>
388 </enum>
389 <enum name="transport_param">
390 <para>Transport parameter.</para>
391 </enum>
392 <enum name="ttl_param">
393 <para>TTL param, or -1.</para>
394 </enum>
395 <enum name="lr_param">
396 <para>Loose routing param, or zero.</para>
397 </enum>
398 <enum name="maddr_param">
399 <para>Maddr param.</para>
400 </enum>
401 </enumlist>
402 </parameter>
403 </syntax>
404 <description>
405 <para>Parse the contents of the provided variable as a URI and return a specified part of the URI.</para>
406 </description>
407 </function>
408 <function name="PJSIP_TRANSFER_HANDLING" language="en_US">
409 <since>
410 <version>22.3.0</version>
411 <version>21.8.0</version>
412 <version>20.13.0</version>
413 </since>
414 <synopsis>
415 Set how transfers are handled for a PJSIP channel.
416 </synopsis>
417 <syntax>
418 <parameter name="mode" required="false">
419 <para>How transfers are handled for a PJSIP channel. Default is <literal>core</literal>.</para>
420 <enumlist>
421 <enum name="core">
422 <para>Asterisk will handle attended and blind transfers.</para>
423 </enum>
424 <enum name="ari-only">
425 <para>Asterisk will generate ARI events on incoming SIP REFER.</para>
426 </enum>
427 </enumlist>
428 </parameter>
429 </syntax>
430 <description>
431 <para>When written, sets the transferhandling behavior</para>
432 </description>
433 </function>
434
435 <info name="CHANNEL" language="en_US" tech="PJSIP">
436 <enumlist>
437 <enum name="rtp">
438 <para>R/O Retrieve media related information.</para>
439 <parameter name="type" required="true">
440 <para>When <replaceable>rtp</replaceable> is specified, the
441 <literal>type</literal> parameter must be provided. It specifies
442 which RTP parameter to read.</para>
443 <enumlist>
444 <enum name="src">
445 <para>Retrieve the local address for RTP.</para>
446 </enum>
447 <enum name="dest">
448 <para>Retrieve the remote address for RTP.</para>
449 </enum>
450 <enum name="direct">
451 <para>If direct media is enabled, this address is the remote address
452 used for RTP.</para>
453 </enum>
454 <enum name="secure">
455 <para>Whether or not the media stream is encrypted.</para>
456 <enumlist>
457 <enum name="0">
458 <para>The media stream is not encrypted.</para>
459 </enum>
460 <enum name="1">
461 <para>The media stream is encrypted.</para>
462 </enum>
463 </enumlist>
464 </enum>
465 <enum name="hold">
466 <para>Whether or not the media stream is currently restricted
467 due to a call hold.</para>
468 <enumlist>
469 <enum name="0">
470 <para>The media stream is not held.</para>
471 </enum>
472 <enum name="1">
473 <para>The media stream is held.</para>
474 </enum>
475 </enumlist>
476 </enum>
477 </enumlist>
478 </parameter>
479 <parameter name="media_type" required="false">
480 <para>When <replaceable>rtp</replaceable> is specified, the
481 <literal>media_type</literal> parameter may be provided. It specifies
482 which media stream the chosen RTP parameter should be retrieved
483 from.</para>
484 <enumlist>
485 <enum name="audio">
486 <para>Retrieve information from the audio media stream.</para>
487 <note><para>If not specified, <literal>audio</literal> is used
488 by default.</para></note>
489 </enum>
490 <enum name="video">
491 <para>Retrieve information from the video media stream.</para>
492 </enum>
493 </enumlist>
494 </parameter>
495 </enum>
496 <enum name="rtcp">
497 <para>R/O Retrieve RTCP statistics.</para>
498 <parameter name="statistic" required="true">
499 <para>When <replaceable>rtcp</replaceable> is specified, the
500 <literal>statistic</literal> parameter must be provided. It specifies
501 which RTCP statistic parameter to read.</para>
502 <enumlist>
503 <enum name="all">
504 <para>Retrieve a summary of all RTCP statistics.</para>
505 <para>The following data items are returned in a semi-colon
506 delineated list:</para>
507 <enumlist>
508 <enum name="ssrc">
509 <para>Our Synchronization Source identifier</para>
510 </enum>
511 <enum name="themssrc">
512 <para>Their Synchronization Source identifier</para>
513 </enum>
514 <enum name="lp">
515 <para>Our lost packet count</para>
516 </enum>
517 <enum name="rxjitter">
518 <para>Received packet jitter</para>
519 </enum>
520 <enum name="rxcount">
521 <para>Received packet count</para>
522 </enum>
523 <enum name="txjitter">
524 <para>Transmitted packet jitter</para>
525 </enum>
526 <enum name="txcount">
527 <para>Transmitted packet count</para>
528 </enum>
529 <enum name="rlp">
530 <para>Remote lost packet count</para>
531 </enum>
532 <enum name="rtt">
533 <para>Round trip time</para>
534 </enum>
535 <enum name="txmes">
536 <para>Transmitted Media Experience Score</para>
537 </enum>
538 <enum name="rxmes">
539 <para>Received Media Experience Score</para>
540 </enum>
541 </enumlist>
542 </enum>
543 <enum name="all_jitter">
544 <para>Retrieve a summary of all RTCP Jitter statistics.</para>
545 <para>The following data items are returned in a semi-colon
546 delineated list:</para>
547 <enumlist>
548 <enum name="minrxjitter">
549 <para>Our minimum jitter</para>
550 </enum>
551 <enum name="maxrxjitter">
552 <para>Our max jitter</para>
553 </enum>
554 <enum name="avgrxjitter">
555 <para>Our average jitter</para>
556 </enum>
557 <enum name="stdevrxjitter">
558 <para>Our jitter standard deviation</para>
559 </enum>
560 <enum name="reported_minjitter">
561 <para>Their minimum jitter</para>
562 </enum>
563 <enum name="reported_maxjitter">
564 <para>Their max jitter</para>
565 </enum>
566 <enum name="reported_avgjitter">
567 <para>Their average jitter</para>
568 </enum>
569 <enum name="reported_stdevjitter">
570 <para>Their jitter standard deviation</para>
571 </enum>
572 </enumlist>
573 </enum>
574 <enum name="all_loss">
575 <para>Retrieve a summary of all RTCP packet loss statistics.</para>
576 <para>The following data items are returned in a semi-colon
577 delineated list:</para>
578 <enumlist>
579 <enum name="minrxlost">
580 <para>Our minimum lost packets</para>
581 </enum>
582 <enum name="maxrxlost">
583 <para>Our max lost packets</para>
584 </enum>
585 <enum name="avgrxlost">
586 <para>Our average lost packets</para>
587 </enum>
588 <enum name="stdevrxlost">
589 <para>Our lost packets standard deviation</para>
590 </enum>
591 <enum name="reported_minlost">
592 <para>Their minimum lost packets</para>
593 </enum>
594 <enum name="reported_maxlost">
595 <para>Their max lost packets</para>
596 </enum>
597 <enum name="reported_avglost">
598 <para>Their average lost packets</para>
599 </enum>
600 <enum name="reported_stdevlost">
601 <para>Their lost packets standard deviation</para>
602 </enum>
603 </enumlist>
604 </enum>
605 <enum name="all_rtt">
606 <para>Retrieve a summary of all RTCP round trip time information.</para>
607 <para>The following data items are returned in a semi-colon
608 delineated list:</para>
609 <enumlist>
610 <enum name="minrtt">
611 <para>Minimum round trip time</para>
612 </enum>
613 <enum name="maxrtt">
614 <para>Maximum round trip time</para>
615 </enum>
616 <enum name="avgrtt">
617 <para>Average round trip time</para>
618 </enum>
619 <enum name="stdevrtt">
620 <para>Standard deviation round trip time</para>
621 </enum>
622 </enumlist>
623 </enum>
624 <enum name="all_mes">
625 <para>Retrieve a summary of all RTCP Media Experience Score information.</para>
626 <para>The following data items are returned in a semi-colon
627 delineated list:</para>
628 <enumlist>
629 <enum name="minmes">
630 <para>Minimum MES based on us analysing received packets.</para>
631 </enum>
632 <enum name="maxmes">
633 <para>Maximum MES based on us analysing received packets.</para>
634 </enum>
635 <enum name="avgmes">
636 <para>Average MES based on us analysing received packets.</para>
637 </enum>
638 <enum name="stdevmes">
639 <para>Standard deviation MES based on us analysing received packets.</para>
640 </enum>
641 <enum name="reported_minmes">
642 <para>Minimum MES based on data we get in Sender and Receiver Reports sent by the remote end</para>
643 </enum>
644 <enum name="reported_maxmes">
645 <para>Maximum MES based on data we get in Sender and Receiver Reports sent by the remote end</para>
646 </enum>
647 <enum name="reported_avgmes">
648 <para>Average MES based on data we get in Sender and Receiver Reports sent by the remote end</para>
649 </enum>
650 <enum name="reported_stdevmes">
651 <para>Standard deviation MES based on data we get in Sender and Receiver Reports sent by the remote end</para>
652 </enum>
653 </enumlist>
654 </enum>
655 <enum name="txcount"><para>Transmitted packet count</para></enum>
656 <enum name="rxcount"><para>Received packet count</para></enum>
657 <enum name="txjitter"><para>Transmitted packet jitter</para></enum>
658 <enum name="rxjitter"><para>Received packet jitter</para></enum>
659 <enum name="remote_maxjitter"><para>Their max jitter</para></enum>
660 <enum name="remote_minjitter"><para>Their minimum jitter</para></enum>
661 <enum name="remote_normdevjitter"><para>Their average jitter</para></enum>
662 <enum name="remote_stdevjitter"><para>Their jitter standard deviation</para></enum>
663 <enum name="local_maxjitter"><para>Our max jitter</para></enum>
664 <enum name="local_minjitter"><para>Our minimum jitter</para></enum>
665 <enum name="local_normdevjitter"><para>Our average jitter</para></enum>
666 <enum name="local_stdevjitter"><para>Our jitter standard deviation</para></enum>
667 <enum name="txploss"><para>Transmitted packet loss</para></enum>
668 <enum name="rxploss"><para>Received packet loss</para></enum>
669 <enum name="remote_maxrxploss"><para>Their max lost packets</para></enum>
670 <enum name="remote_minrxploss"><para>Their minimum lost packets</para></enum>
671 <enum name="remote_normdevrxploss"><para>Their average lost packets</para></enum>
672 <enum name="remote_stdevrxploss"><para>Their lost packets standard deviation</para></enum>
673 <enum name="local_maxrxploss"><para>Our max lost packets</para></enum>
674 <enum name="local_minrxploss"><para>Our minimum lost packets</para></enum>
675 <enum name="local_normdevrxploss"><para>Our average lost packets</para></enum>
676 <enum name="local_stdevrxploss"><para>Our lost packets standard deviation</para></enum>
677 <enum name="rtt"><para>Round trip time</para></enum>
678 <enum name="maxrtt"><para>Maximum round trip time</para></enum>
679 <enum name="minrtt"><para>Minimum round trip time</para></enum>
680 <enum name="normdevrtt"><para>Average round trip time</para></enum>
681 <enum name="stdevrtt"><para>Standard deviation round trip time</para></enum>
682 <enum name="local_ssrc"><para>Our Synchronization Source identifier</para></enum>
683 <enum name="remote_ssrc"><para>Their Synchronization Source identifier</para></enum>
684 <enum name="txmes"><para>
685 Current MES based on us analyzing rtt, jitter and loss
686 in the actual received RTP stream received from the remote end.
687 I.E. This is the MES for the incoming audio stream.
688 </para></enum>
689 <enum name="rxmes"><para>
690 Current MES based on rtt and the jitter and loss values in
691 RTCP sender and receiver reports we receive from the
692 remote end. I.E. This is the MES for the outgoing audio stream.
693 </para></enum>
694 <enum name="remote_maxmes"><para>Max MES based on data we get in Sender and Receiver Reports sent by the remote end</para></enum>
695 <enum name="remote_minmes"><para>Min MES based on data we get in Sender and Receiver Reports sent by the remote end</para></enum>
696 <enum name="remote_normdevmes"><para>Average MES based on data we get in Sender and Receiver Reports sent by the remote end</para></enum>
697 <enum name="remote_stdevmes"><para>Standard deviation MES based on data we get in Sender and Receiver Reports sent by the remote end</para></enum>
698 <enum name="local_maxmes"><para>Max MES based on us analyzing the received RTP stream</para></enum>
699 <enum name="local_minmes"><para>Min MES based on us analyzing the received RTP stream</para></enum>
700 <enum name="local_normdevmes"><para>Average MES based on us analyzing the received RTP stream</para></enum>
701 <enum name="local_stdevmes"><para>Standard deviation MES based on us analyzing the received RTP stream</para></enum>
702 </enumlist>
703 </parameter>
704 <parameter name="media_type" required="false">
705 <para>When <replaceable>rtcp</replaceable> is specified, the
706 <literal>media_type</literal> parameter may be provided. It specifies
707 which media stream the chosen RTCP parameter should be retrieved
708 from.</para>
709 <enumlist>
710 <enum name="audio">
711 <para>Retrieve information from the audio media stream.</para>
712 <note><para>If not specified, <literal>audio</literal> is used
713 by default.</para></note>
714 </enum>
715 <enum name="video">
716 <para>Retrieve information from the video media stream.</para>
717 </enum>
718 </enumlist>
719 </parameter>
720 </enum>
721 <enum name="endpoint">
722 <para>R/O The name of the endpoint associated with this channel.
723 Use the <replaceable>PJSIP_ENDPOINT</replaceable> function to obtain
724 further endpoint related information.</para>
725 </enum>
726 <enum name="contact">
727 <para>R/O The name of the contact associated with this channel.
728 Use the <replaceable>PJSIP_CONTACT</replaceable> function to obtain
729 further contact related information. Note this may not be present and if so
730 is only available on outgoing legs.</para>
731 </enum>
732 <enum name="aor">
733 <para>R/O The name of the AOR associated with this channel.
734 Use the <replaceable>PJSIP_AOR</replaceable> function to obtain
735 further AOR related information. Note this may not be present and if so
736 is only available on outgoing legs.</para>
737 </enum>
738 <enum name="pjsip">
739 <para>R/O Obtain information about the current PJSIP channel and its
740 session.</para>
741 <parameter name="type" required="true">
742 <para>When <replaceable>pjsip</replaceable> is specified, the
743 <literal>type</literal> parameter must be provided. It specifies
744 which signalling parameter to read.</para>
745 <enumlist>
746 <enum name="call-id">
747 <para>The SIP call-id.</para>
748 </enum>
749 <enum name="secure">
750 <para>Whether or not the signalling uses a secure transport.</para>
751 <enumlist>
752 <enum name="0"><para>The signalling uses a non-secure transport.</para></enum>
753 <enum name="1"><para>The signalling uses a secure transport.</para></enum>
754 </enumlist>
755 </enum>
756 <enum name="target_uri">
757 <para>The contact URI where requests are sent.</para>
758 </enum>
759 <enum name="local_uri">
760 <para>The local URI.</para>
761 </enum>
762 <enum name="local_tag">
763 <para>Tag in From header</para>
764 </enum>
765 <enum name="remote_uri">
766 <para>The remote URI.</para>
767 </enum>
768 <enum name="remote_tag">
769 <para>Tag in To header</para>
770 </enum>
771 <enum name="request_uri">
772 <para>The request URI of the incoming <literal>INVITE</literal>
773 associated with the creation of this channel.</para>
774 </enum>
775 <enum name="t38state">
776 <para>The current state of any T.38 fax on this channel.</para>
777 <enumlist>
778 <enum name="DISABLED"><para>T.38 faxing is disabled on this channel.</para></enum>
779 <enum name="LOCAL_REINVITE"><para>Asterisk has sent a <literal>re-INVITE</literal> to the remote end to initiate a T.38 fax.</para></enum>
780 <enum name="REMOTE_REINVITE"><para>The remote end has sent a <literal>re-INVITE</literal> to Asterisk to initiate a T.38 fax.</para></enum>
781 <enum name="ENABLED"><para>A T.38 fax session has been enabled.</para></enum>
782 <enum name="REJECTED"><para>A T.38 fax session was attempted but was rejected.</para></enum>
783 </enumlist>
784 </enum>
785 <enum name="local_addr">
786 <para>On inbound calls, the full IP address and port number that
787 the <literal>INVITE</literal> request was received on. On outbound
788 calls, the full IP address and port number that the <literal>INVITE</literal>
789 request was transmitted from.</para>
790 </enum>
791 <enum name="remote_addr">
792 <para>On inbound calls, the full IP address and port number that
793 the <literal>INVITE</literal> request was received from. On outbound
794 calls, the full IP address and port number that the <literal>INVITE</literal>
795 request was transmitted to.</para>
796 </enum>
797 </enumlist>
798 </parameter>
799 </enum>
800 </enumlist>
801 </info>
802 <info name="CHANNEL_EXAMPLES" language="en_US" tech="PJSIP">
803 <example title="PJSIP specific CHANNEL examples">
804 ; Log the current Call-ID
805 same => n,Log(NOTICE, ${CHANNEL(pjsip,call-id)})
806
807 ; Log the destination address of the audio stream
808 same => n,Log(NOTICE, ${CHANNEL(rtp,dest)})
809
810 ; Store the round-trip time associated with a
811 ; video stream in the CDR field video-rtt
812 same => n,Set(CDR(video-rtt)=${CHANNEL(rtcp,rtt,video)})
813 </example>
814 </info>
815 </docs>