[asterisk-users] Example of ${CHANNEL(contact)} output ?

Olivier oza.4h07 at gmail.com
Fri Jan 24 08:23:20 CST 2020


Hello,

My Asterisk 16.2 instance (Debian Buster package) has:
same = n,Verbose(0,CHANNEL is ${CHANNEL})
same = n,Verbose(0,CHANNEL(accountcode) is ${CHANNEL(accountcode)})
same = n,Verbose(0,CHANNEL(contact) is ${CHANNEL(contact)})
same = n,Verbose(0,CHANNEL(endpoint) is ${CHANNEL(endpoint)})

and prints:

CHANNEL is PJSIP/9150-00000016
CHANNEL(accountcode) is GENERAL
CHANNEL(contact) is
CHANNEL(endpoint) is 9150

In my testing, ${CHANNEL(contact)} is always empty.

1. Can someone show me the output of a successful CHANNEL(contact) ?

2. Suppose Alice and Bob phones are both registered as extension 1000, what
is the most efficient way to remove Alice's contact from
${PJSIP_DIAL_CONTACTS(1000)} value if Alice ever dials 1000 (and hopes to
ring Bob's phone only) ?


Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20200124/687b2ed9/attachment.html>


More information about the asterisk-users mailing list