Hi, How do I cause the dial plan to dial a different extension if the first either never picks up or presses ignore or what have you? For example, something like this: exten => context,1,Dial(SIP/a@b.com) exten => context,2,Dial(SIP/b@c.com) Currently, if the first number doesn't answer, the session is closed. Thanks Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061010/d5c1a52e/attachment.htm
Mark Price wrote:> Hi, > > How do I cause the dial plan to dial a different extension if the first > either never picks up or presses ignore or what have you? > For example, something like this: > > exten => context,1,Dial(SIP/a@b.com) > exten => context,2,Dial(SIP/b@c.com) > > Currently, if the first number doesn't answer, the session is closed. > > Thanks > MarkYou need to specify a timeout on at least the first dial command. From 'show application dial': "Unless there is a timeout specified, the Dial application will wait indefinitely until one of the called channels answers, the user hangs up, or if all of the called channels are busy or unavailable. Dialplan executing will continue if no requested channels can be called, or if the timeout expires." 'show application dial' on the command line will tell you how and where to put the necessary options. -Dave
> exten => context,1,Dial( SIP/a@b.com) > exten => context,2,Dial(SIP/b@c.com) > > Currently, if the first number doesn't answer, the session is closed.Specify a time out. Without it * will not continue to priority 2 if a@b.com is reachable but does not answer. exten => context,1,Dial(SIP/a@b.com,20) exten => context,2,Dial(SIP/b@c.com,20)
Simple Exten => 1234,1,Dial(SIP/2@b.com,90) ; This will ring thier phone for 90 seconds Exten => 1234,2,Noop("If user dosent pick up do something here") Exten => 1234,102,Dial(SIP/b@b.com,90) ; WIll ring user B if User is Busy or hits the reject button Exten => 1234,103,Noop("If user dosent pick up do something here") Exten => 1234,203,Noop("If user B is busy or rejects call do something here") ----- Original Message ----- From: Mark Price To: Asterisk Users Sent: Tuesday, October 10, 2006 7:28 PM Subject: [asterisk-users] sequential Dial() commands Hi, How do I cause the dial plan to dial a different extension if the first either never picks up or presses ignore or what have you? For example, something like this: exten => context,1,Dial( SIP/a@b.com) exten => context,2,Dial(SIP/b@c.com) Currently, if the first number doesn't answer, the session is closed. Thanks Mark ------------------------------------------------------------------------------ _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- 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/20061010/bf7163f4/attachment.htm