[asterisk-users] Multiple Outbound SIP Trunks
I have 3 sip trunks registered with an outside provider, however asterisk always seems to work when going out the third trunk. Any way to round-robin this so that we can make more than one outbound call at a time? Thanks in advance, Aaron ___ --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
Re: [asterisk-users] Multiple Outbound SIP Trunks
- Original Message - From: Aaron Anderson [mailto:[EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion [mailto:[EMAIL PROTECTED] Sent: Fri, 28 Jul 2006 03:52:59 -0300 Subject: [asterisk-users] Multiple Outbound SIP Trunks I have 3 sip trunks registered with an outside provider, however asterisk always seems to work when going out the third trunk. Any way to round-robin this so that we can make more than one outbound call at a time? Currently chan_sip has no capability to group together outbound trunks as you can in zaptel. This is mostly due to the fact that on SIP you don't know that you can't send someone a call until you send it to them, or you keep track on your side based on predetermined rules. You might need to end up using the GROUP capability to limit each trunk to one call each and have failover to the next. [macro-call-trunk] exten = s,1,GotoIf($[${GROUP_COUNT(${ARG1})}=0]?avail:busy) exten = s,n(avail),Set(GROUP()=${ARG1}) exten = s,n,Dial(${ARG2}||t) exten = s,n,Hangup exten = s,n(busy),Noop() exten = _1NXXNXX,1,Macro(call-trunk|trunk-1|SIP/[EMAIL PROTECTED]) exten = _1NXXNXX,n,Macro(call-trunk|trunk-2|SIP/[EMAIL PROTECTED]) exten = _1NXXNXX,n,Macro(call-trunk|trunk-3|SIP/[EMAIL PROTECTED]) This is just really quickly done... Basically the macro checks to see if the group count for the trunk is 0, if it is then the current call is set to use the group (which means the next time group_count gets called while this call is up, it'll return 1) and the destination is dialed. Otherwise it gets returned to the dialplan and it tries the next trunk. There may be other solutions out there but you could expand on this one so that a trunk could support, for example, 2 outbound calls at a time. You would just see if the group_count is equal to 2 and if so jump to busy, otherwise avail. Thanks in advance, Aaron Joshua Colp Digium ___ --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
Re: [Asterisk-Users] Multiple Outbound SIP Trunks
Hi all, In case you have a number of trunks there is a software named astbill (www.astbill.com) in which you can configure the trunks and decide their costs and it will automatically choose the most suitable trunk. Thx MAG Pikoro wrote: By "trunk" I mean each trunk is a different account on the same SIP provider. Yes, they only allow one call per account. We are an internet provider so I can obtain as many trunks(accounts) as I need. Cheers asterisk wrote: On Tue, 15 Nov 2005, Pikoro wrote: There will be no discrimination or routes based on outbound calling, like a certain trunk for international calls, another for local calls, etc... Only a group of 10 SIP trunks to be rotated for all outbound calls. Can you explain what you mean by a "SIP trunk"? I took it to mean different accounts or providers. ___ --Bandwidth and Colocation sponsored by Easynews.com -- 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 ___ --Bandwidth and Colocation sponsored by Easynews.com -- 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 -- Thx MAG ___ --Bandwidth and Colocation sponsored by Easynews.com -- 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
Re: [Asterisk-Users] Multiple Outbound SIP Trunks
How can I set up a group of outbound trunks which will rotate use dependant on how many outbound calls need to be made. You could do this by writing a simple (but laboriously long) macro to try the accounts in order, dialing via the first available one. There would be a dial() command followed by a test of DIALSTATUS with jumps to the next account. You could also break the users up into two or three groups affected to a smaller number of accounts, the number being equal to the number of users in the group. The most obvious solution on the same provider would be to just have one account per phone and dial out on that. ___ --Bandwidth and Colocation sponsored by Easynews.com -- 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
[Asterisk-Users] Multiple Outbound SIP Trunks
Here is my situation: I have an office with around 10 users. Inbound calls will come in via 4 PSTN lines. Outbound calls will be routed across a maximum of 10 SIP trunks. How can I set up a group of outbound trunks which will rotate use dependant on how many outbound calls need to be made. There will be no discrimination or routes based on outbound calling, like a certain trunk for international calls, another for local calls, etc... Only a group of 10 SIP trunks to be rotated for all outbound calls. For example: Customer Support person 1 makes an outbound call on trunk1 (selected randomly by asterisk). Tech support person 1 needs to make an outbound call but for some reason is getting routed to trunk1 instead of to the next available open SIP trunk. Can anyone offer any suggestions, links, websites, or conf files that I could refer to in order to make all of this work. Thanks in advance. ___ --Bandwidth and Colocation sponsored by Easynews.com -- 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
Re: [Asterisk-Users] Multiple Outbound SIP Trunks
On Tue, 15 Nov 2005, Pikoro wrote: There will be no discrimination or routes based on outbound calling, like a certain trunk for international calls, another for local calls, etc... Only a group of 10 SIP trunks to be rotated for all outbound calls. Can you explain what you mean by a SIP trunk? SIP just has addresses - sometimes slightly hidden away in sip.conf behind a SIP peer. So if you Dial(SIP/remotehost/number), a SIP invite is sent to the host IP address defined in the SIP peer in sip.conf. If you Dial(SIP/[EMAIL PROTECTED]) then the invite is sent to the host hostname. Normally it makes no difference to either side how many other calls may already by in progress between the two sides. Steve ___ --Bandwidth and Colocation sponsored by Easynews.com -- 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
Re: [Asterisk-Users] Multiple Outbound SIP Trunks
On Tue, 15 Nov 2005, Pikoro wrote: There will be no discrimination or routes based on outbound calling, like a certain trunk for international calls, another for local calls, etc... Only a group of 10 SIP trunks to be rotated for all outbound calls. Can you explain what you mean by a SIP trunk? I took it to mean different accounts or providers. ___ --Bandwidth and Colocation sponsored by Easynews.com -- 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
Re: [Asterisk-Users] Multiple Outbound SIP Trunks
Original Message From: [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Tuesday, November 15, 2005 2:27 PM Subject: Re: [Asterisk-Users] Multiple Outbound SIP Trunks On Tue, 15 Nov 2005, Pikoro wrote: There will be no discrimination or routes based on outbound calling, like a certain trunk for international calls, another for local calls, etc... Only a group of 10 SIP trunks to be rotated for all outbound calls. Can you explain what you mean by a SIP trunk? SIP just has addresses - sometimes slightly hidden away in sip.conf behind a SIP peer. So if you Dial(SIP/remotehost/number), a SIP invite is sent to the host IP address defined in the SIP peer in sip.conf. If you Dial(SIP/[EMAIL PROTECTED]) then the invite is sent to the host hostname. Normally it makes no difference to either side how many other calls may already by in progress between the two sides. Some providers allow only one outgoing call at a time. Leif ___ --Bandwidth and Colocation sponsored by Easynews.com -- 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
Re: [Asterisk-Users] Multiple Outbound SIP Trunks
By "trunk" I mean each trunk is a different account on the same SIP provider. Yes, they only allow one call per account. We are an internet provider so I can obtain as many trunks(accounts) as I need. Cheers asterisk wrote: On Tue, 15 Nov 2005, Pikoro wrote: There will be no discrimination or routes based on outbound calling, like a certain trunk for international calls, another for local calls, etc... Only a group of 10 SIP trunks to be rotated for all outbound calls. Can you explain what you mean by a "SIP trunk"? I took it to mean different accounts or providers. ___ --Bandwidth and Colocation sponsored by Easynews.com -- 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 ___ --Bandwidth and Colocation sponsored by Easynews.com -- 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