Nasir Javaid
2010-Jul-30 07:24 UTC
[asterisk-users] asterisk-users Digest, Vol 72, Issue 82
thanks for your reply but i think ${BRIDGEPEER} will work only when both
channels are connected. i want to get channel-id before dialing so that i
can dial using that channel id.
> ${BRIDGEPEER} is probably a good way to do what you want.. if Channel
> A calls Channel B, and you want Channel A to "get" the channelID
of
> Channel B, as long as the two channels are bridged, ${BRIDGEPEER} will
> do what you want
>> perhaps ${CALLERID(DNID)}
>>
>>> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20100730/26aaa377/attachment.htm
Philipp von Klitzing
2010-Jul-30 09:30 UTC
[asterisk-users] asterisk-users Digest, Vol 72, Issue 82
Hi!> i want to get channel-id before dialing so that i can dial using that > channel id.I am afraid that is not going to work. Maybe you should take a step back and describe what it actually is that you are trying to accomplish. Philipp