when dialing group call
exten => 100,1,Dial(SIP/101&SIP/102)
how to get the answered number?,I tried ${DIALEDPEERNUMBER} on answered channel using AGI but its not giving the correct answered number every time sometime it showing the other number.
when dialing group call
exten => 100,1,Dial(SIP/101&SIP/102)
how to get the answered number?,I tried ${DIALEDPEERNUMBER} on answered channel using AGI but its not giving the correct answered number every time sometime it showing the other number.
I think you want BRIDGEPEER. I can’t remember if that gives the channel or endpoint.
im dialing SIP/101&SIP/102 using AMI and connect the answered call to another number and i want the first answered number ie sip/101 or sip/102 from the second answered channel or is there any variable like global variable but that can be used between two answered channel only?
BRIDGEPEER is empty on second answered channel
I would look for it on the A side, not the B side.
Is there any other option that can get on second answered channel ?
Actually if you are on the answered, channel, you can parse it from the channel name (I’m not sure why peername is only documented for IAX - I wonder that really is a restriction, or whether it is a documentation error).
I parse the dialed number from the answered channel but i have to pass this value to other channel,is there any options to pass the value?