Hi everyone: I've searching for a while and haven't found what i need. The thing is that i have a tdm422p with the two fxo ports connected to the pstn. I want my sip users to be able to call other numbers(any number) in the pstn through my zap fxo channels. I have a big number of sip users so as you can imagine there will be congestion when some of them(more than two!!) want to call outside, that is why i want to be able to put those outgoing calls in a queue. For example if i want to call someone in the pstn and the fxo port is already in use, i want to be placed in a queue and when the channel is free my call is routed to the aproppiated destination. As far as i have read the queues are not for this kind of stuffs, there are just agents or extensions that attend the calls in the queue and nothing more. am i wrong??? Any help will be useful. thanks in advance!! eve __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.espanol.yahoo.com/
Hi Eve -> The thing is that i have a tdm422p with the two fxo > ports connected to the pstn. I want my sip users to be > able to call other numbers(any number) in the pstn > through my zap fxo channels. I have a big number of > sip users so as you can imagine there will be > congestion when some of them(more than two!!) want to > call outside, that is why i want to be able to put > those outgoing calls in a queue. For example if i want > to call someone in the pstn and the fxo port is > already in use, i want to be placed in a queue and > when the channel is free my call is routed to the > aproppiated destination. As far as i have read the > queues are not for this kind of stuffs, there are > just agents or extensions that attend the calls in the > queue and nothing more. am i wrong???I think your suspicions may be correct. You could add your ZAP channels as members in queues.conf, maybe something like this: members => ZAP/1, and then use queue() on your outbound extensions. The problem is how will your agents, in this case your ZAP trunks, know to "pick up the line" when they are not busy. You'd have to get these lines to somehow go offhook if they're not already busy. Maybe you can do this with an AGI script. I don't know, I've never tried to artificially control hook status. Personally, I'd probably just skip the whole queue idea and get some cheap SIP or IAX trunks and fall back to them when the ZAP lines are busy. - Noah
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Floyd wrote:> Hi everyone: > > I've searching for a while and haven't found what i > need. > The thing is that i have a tdm422p with the two fxo > ports connected to the pstn. I want my sip users to be > able to call other numbers(any number) in the pstn > through my zap fxo channels. I have a big number of > sip users so as you can imagine there will be > congestion when some of them(more than two!!) want to > call outside, that is why i want to be able to put > those outgoing calls in a queue. For example if i want > to call someone in the pstn and the fxo port is > already in use, i want to be placed in a queue and > when the channel is free my call is routed to the > aproppiated destination. As far as i have read the > queues are not for this kind of stuffs, there are > just agents or extensions that attend the calls in the > queue and nothing more. am i wrong??? > Any help will be useful. > thanks in advance!!You could probably do this using the Local channel. You'd create a context, say outbound, to take calls from the queue and connect them to a Zap channel, with 2 extensions in that context--one for each channel. Then you add each of those extensions as members of the queue: member => Local/1 at outbound/n member => Local/2 at outbound/n Make sure your dialplan in outbound returns Busy if the Zap channel is busy. The tricky part would be passing the dialed number through... But if you set an inheriting channel var, it should go through the queue and into the Local channel to your outbound extension. Sorry I don't have any code for you... I haven't done it yet; I'm just putting the idea out there. Hope this helps! Good luck. - -- C. Chad Wallace, B.Sc. The Lodging Company http://www.skihills.com/ OpenPGP Public Key ID: 0x262208A0 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGjWCTKeSNHCYiCKARAtdgAKCVUs6OF2KIpjbpwQFrwr2E4NatVACfWh6I 9XwYqQ7cc5gwVznybIglBGs=miEL -----END PGP SIGNATURE-----
Floyd wrote:> Hi everyone: > > I've searching for a while and haven't found what i > need. > The thing is that i have a tdm422p with the two fxo > ports connected to the pstn. I want my sip users tobe> able to call other numbers(any number) in the pstn > through my zap fxo channels. I have a big number of > sip users so as you can imagine there will be > congestion when some of them(more than two!!) wantto> call outside, that is why i want to be able to put > those outgoing calls in a queue. For example if iwant> to call someone in the pstn and the fxo port is > already in use, i want to be placed in a queue and > when the channel is free my call is routed to the > aproppiated destination. As far as i have read the > queues are not for this kind of stuffs, there are > just agents or extensions that attend the calls inthe> queue and nothing more. am i wrong??? > Any help will be useful. > thanks in advance!!Hi, first of all i would like to thanks to C. Chad Wallace Noah and Rob Schall. I just solve the problem of the outgoing call queue. Following the instructions from Chad i did something like this in my extensions.conf: exten => _9XXXXXXX,1,Answer exten => _9XXXXXXX,2,Set(_number=${EXTEN:1}) exten => _9XXXXXXX,3,Wait(2) exten => _9XXXXXXX,4,NoOP(${number}) exten => _9XXXXXXX,5,Queue(Myqueue) exten => _9XXXXXXX,6,Hangup I also have a context like this [outbound] exten => 1,1,NoOP(${number}) exten => 1,2,Dial(Zap/G2/${number},30,t) exten => 2,1,NoOP(${number}) exten => 2,2,Dial(Zap/G2/${number},30,t) Finally in queues.conf [myqueue] member => Local/1 at outbound/n member => Local/2 at outbound/n And it worked perfect!!!!!!!!!! I have my outgoing calls routed ok and the variable travells throgh the queue without problems.. thanks!! Eve __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.espanol.yahoo.com/