Example Of ${CHANNEL(contact)} Output ?
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