[asterisk-dev] how to findout which destination has picked call among all dialed destinations?

Grey Man greymanvoip at gmail.com
Tue May 13 03:08:27 CDT 2008


On Tue, May 13, 2008 at 5:55 AM, Krunal Patel <krunal.patel at ecosmob.com> wrote:
> Hi,
>
> I need to dial multiple destinations & if anybody of them accept the call
> then the others will be hangup.
> So I have dialed mulitple destinations by concating dialstring by '&'.
>
> For example :
>
> exten
> =>s,n,Dial(SIP/voip-provider/4444&SIP/voip-provider/5555&SIP/voip-provider/6666&SIP/voip-provider/7777|100)
>
> Now if 4444 has been accepted then how to find it out.
> I have cheked CDR(dst) but it's returning 4444,5555,6666,7777 .
>
> Even checked agi variables.But i can't search it out.
>
> Is there any way to find it out which destination has picked the call?

${DIALEDPEERNUMBER}

Regards,

Greyman.



More information about the asterisk-dev mailing list