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

Mayank Mathur mayankmathur at tetrain.com
Tue May 13 00:03:30 CDT 2008


Hi Krunal.
i think , u've to first check the call status of all extensions and if 
anyone has picked up phone , then retrieve its extension no.

Regards,
Mayank Mathur

Krunal Patel 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?
>
> Thanks in advance.
>
> --
> Regards,
> Krunal Patel
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20080513/55cd07ac/attachment.htm 


More information about the asterisk-dev mailing list