[asterisk-users] How to extract channel-id of a user or peer

Danny Nicholas danny at debsinc.com
Thu Jul 29 10:37:07 CDT 2010


From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Nasir Javaid
Subject: [asterisk-users] How to extract channel-id of a user or peer

my question is how can i get channel-id of a user or peer. I tried using
ChanIsAvail(username). this works correctly when user and asterisk are on
Local LAN. But my asterisk server is on public ip and users are behind nat,
and so this method says unknow host when used on public asterisk server.
I also tried built-in variable ${CHANNEL}, but this returns the channel-id
of the calling channel. but i want channel-id of called user.



perhaps ${CALLERID(DNID)}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100729/4700e1b0/attachment.htm 


More information about the asterisk-users mailing list