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,
Hi! You could do a sequence of Dial cmds and dispatch the various hangup causes. If a device is busy, the time delay is pretty short. Then you can decide whether inviting another device makes any sense. jg Am 15.04.2013 11:08, schrieb Santi Anton:> 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, > > -- > _____________________________________________________________________ > -- 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 >
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>
If I correctly understood your question, the only way I can think of to force extension 102 to stop ringing (because of extension 101 rejecting incoming call) is to pass Asterisk a soft hangup command (using CLI or AMI) with appropriate ringing channel identification. Hop this helps. 2013/4/15 Santi Anton <Santi.Anton at quarea.com>> 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, > > -- > _____________________________________________________________________ > -- 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130415/d7da7eec/attachment.htm>