Luki
2005-Mar-16 16:23 UTC
[Asterisk-Users] Dial multiple extensions, but different variables/timeouts
Hi everyone, I'm wondering I would accomplish the following: I want to dial several SIP extensions simultaneously, HOWEVER, for different times (say ext 10 for 15 sec and ext 11 for 30 sec), and potentially with different headers (such as ALERT_INFO) and codecs for each extension. Obviously whoever picks up first gets the call. After the longest timeout expires (30 sec in this example) I want to move to the next priority, say voice mail. I think this is pushing the ability of the Dial application a bit, but I'm curious to hear what suggestions others have. I have already patched the Dial app some time ago to allow me to pass different variables for each extension (SIP_CODEC and ALERT_INFO) and this works quite well -- but I don't think this is the cleanest way of doing it. I could certainly tweak it to have different timeouts per extension, but I'm looking for ideas/feedback before I do this. Thanks... --Luki
Henry Devito
2005-Mar-16 17:35 UTC
[Asterisk-Users] Dial multiple extensions, but different variables/timeouts
Check the WIKI there is an example of how to do this very thing. I implemented it on a customer a few months back and it works great. http://www.voip-info.org/wiki-Cisco+7940-7960+auto-answer+config ----- Original Message ----- From: "Luki" <lugosoft@gmail.com> To: <asterisk-users@lists.digium.com> Sent: Wednesday, March 16, 2005 5:23 PM Subject: [Asterisk-Users] Dial multiple extensions,but different variables/timeouts> Hi everyone, > > I'm wondering I would accomplish the following: I want to dial several > SIP extensions simultaneously, HOWEVER, for different times (say ext > 10 for 15 sec and ext 11 for 30 sec), and potentially with different > headers (such as ALERT_INFO) and codecs for each extension. Obviously > whoever picks up first gets the call. After the longest timeout > expires (30 sec in this example) I want to move to the next priority, > say voice mail. > > I think this is pushing the ability of the Dial application a bit, but > I'm curious to hear what suggestions others have. I have already > patched the Dial app some time ago to allow me to pass different > variables for each extension (SIP_CODEC and ALERT_INFO) and this works > quite well -- but I don't think this is the cleanest way of doing it. > I could certainly tweak it to have different timeouts per extension, > but I'm looking for ideas/feedback before I do this. > > Thanks... > --Luki > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
C F
2005-Mar-16 18:01 UTC
[Asterisk-Users] Dial multiple extensions, but different variables/timeouts
try the local channel. the local channel allows you to have: [default] exten => 123,1,Dial(${DEVICE1},30,tr) exten => 124,1,Dial(${DEVICE2},45,tr) exten => 125,1,Dial(Local/123@default&Local/124@default) that will go thru the dial plan of 123 and 124. However, when I tested it for what I wanted to use it, it didn't realy work the way I wanted. Try it and if it works, please post back, with examples. Thanks C F On Wed, 16 Mar 2005 15:23:22 -0800, Luki <lugosoft@gmail.com> wrote:> Hi everyone, > > I'm wondering I would accomplish the following: I want to dial several > SIP extensions simultaneously, HOWEVER, for different times (say ext > 10 for 15 sec and ext 11 for 30 sec), and potentially with different > headers (such as ALERT_INFO) and codecs for each extension. Obviously > whoever picks up first gets the call. After the longest timeout > expires (30 sec in this example) I want to move to the next priority, > say voice mail. > > I think this is pushing the ability of the Dial application a bit, but > I'm curious to hear what suggestions others have. I have already > patched the Dial app some time ago to allow me to pass different > variables for each extension (SIP_CODEC and ALERT_INFO) and this works > quite well -- but I don't think this is the cleanest way of doing it. > I could certainly tweak it to have different timeouts per extension, > but I'm looking for ideas/feedback before I do this. > > Thanks... > --Luki > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >