On Mon, Apr 15, 2013 at 2:38 PM, Santi Anton <[email protected]> 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@extensions&Local/102@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.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to