[asterisk-users] Dial multiple device cancellation

Satish Barot satish4asterisk at gmail.com
Mon Apr 15 06:53:12 CDT 2013


On Mon, Apr 15, 2013 at 2:38 PM, Santi Anton <Santi.Anton at quarea.com> wrote:

> Hi,
>
> Can a call to multiple devices be cancelled in all of them at same time?
>
> With next dialplan,
>
> exten => 100,1,Dial(SIP/101&SIP/102)
>
> when a call rings on 101 and 102 and one of them rejects the call "with
> 486 Busy here", is it possible to reject the call in the other device at
> same time? I read application dial options but I can't find any that can
> help me to achieve this behavior.
>
> Thanks in advance,
>
> Santi Antón,
>
>
A very ugly way to achieve this!

exten => 100,1,Dial(Local/101 at extensions&Local/102 at extensions)
[extensions]
exten => _X.,1,Dial(SIP/${EXTEN})
same => n,Execif($["${DIALSTATUS}"="BUSY"]?Answer():)

I couldn't test the code and has obvious side effects on CDR.

--Satish Barot
Ahmedabad, India.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130415/d6abf8a4/attachment.htm>


More information about the asterisk-users mailing list