combining multiple SIP providers
Hi What is the best way to combine multiple SIP providers to achieve 1) Higher concurrency (for eg. 2 providers with 50 concurrent calling limits could be combined to give a limit of 100) 2) Redundancy (use another if one is down) I have a feeling that this will need some SIP Proxy like OpenSIPS but what could be the architecture ? Much thanks! regards, Anita
I assume you mean for outgoing. Redundancy is easy just place one after another in a dialplan as if the first completes the call it will break out of the dialplan and not hit the second, if the first fails with continue on fail it will try the second. As for higher concurrency if you don't need load based distribution and round robin will work you could just alternate between the two outgoing providers. If you want to keep track of how many calls per provider are active you could do so using scripting more easily (to query active calls before routing) or try to keep track using a database or the hash system (although I am not sure if you could write atomic code for the hash system to keep the counts exactly active). But it is definitely doable within FS without much hassle. ~mitch
On Mon, 9 Apr 2012 20:13:35 +0530 Anita Hall <anita.hall@simmortel.com> wrote:
I have a feeling that this will need some SIP Proxy like OpenSIPS but what could be the architecture ?
May be something like: http://wiki.freeswitch.org/wiki/Enterprise_deployment_OpenSIPS -- Hear about the young Chinese woman who just won the lottery? One fortunate cookie...
Is mod_distributor still being developed? That'll take care of you randomly routing between the two (or more) gateways. -BDF On Mon, Apr 9, 2012 at 10:57 AM, Avi Marcus <avi@avimarcus.net> wrote:
As Mitch stated, opensips isn't necessary. -Avi
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Brian D. Foster Endigo Computer LLC Email: bdfoster@endigotech.com Phone: 317-800-7876 Indianapolis, Indiana, USA This message contains confidential information and is intended for those listed in the "To:", "CC:", and/or "BCC:" fields of the message header. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
Theres that or mod_lcr or a number of ways to do it... But if you are using > 1 carrier if they have varying rates per prefix you probably want to go ahead and look at LCR so you can least cost route... Depending on volume this may save you some money K On 4/9/12 10:25 AM, "Brian Foster" <bdfoster@endigotech.com> wrote:
Is mod_distributor still being developed? That'll take care of you randomly routing between the two (or more) gateways.
-BDF
On Mon, Apr 9, 2012 at 10:57 AM, Avi Marcus <avi@avimarcus.net> wrote:
As Mitch stated, opensips isn't necessary. -Avi
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Agreed. mod_lcr used here w/ 15ish carriers. Seems like no two carriers ever have the same rate on the same route. -BDF On Mon, Apr 9, 2012 at 11:28 AM, Ken Rice <krice@freeswitch.org> wrote:
Theres that or mod_lcr or a number of ways to do it...
But if you are using > 1 carrier if they have varying rates per prefix you probably want to go ahead and look at LCR so you can least cost route... Depending on volume this may save you some money
K
On 4/9/12 10:25 AM, "Brian Foster" <bdfoster@endigotech.com> wrote:
Is mod_distributor still being developed? That'll take care of you randomly routing between the two (or more) gateways.
-BDF
On Mon, Apr 9, 2012 at 10:57 AM, Avi Marcus <avi@avimarcus.net> wrote:
As Mitch stated, opensips isn't necessary. -Avi
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Brian D. Foster Endigo Computer LLC Email: bdfoster@endigotech.com Phone: 317-800-7876 Indianapolis, Indiana, USA This message contains confidential information and is intended for those listed in the "To:", "CC:", and/or "BCC:" fields of the message header. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
Thanks everybody! Much appreciated :) mod_lcr is what I am trying first! regards, Anita On Mon, Apr 9, 2012 at 9:06 PM, Brian Foster <bdfoster@endigotech.com>wrote:
Agreed. mod_lcr used here w/ 15ish carriers. Seems like no two carriers ever have the same rate on the same route.
-BDF
On Mon, Apr 9, 2012 at 11:28 AM, Ken Rice <krice@freeswitch.org> wrote:
Theres that or mod_lcr or a number of ways to do it...
But if you are using > 1 carrier if they have varying rates per prefix you probably want to go ahead and look at LCR so you can least cost route... Depending on volume this may save you some money
K
On 4/9/12 10:25 AM, "Brian Foster" <bdfoster@endigotech.com> wrote:
Is mod_distributor still being developed? That'll take care of you randomly routing between the two (or more) gateways.
-BDF
On Mon, Apr 9, 2012 at 10:57 AM, Avi Marcus <avi@avimarcus.net> wrote:
As Mitch stated, opensips isn't necessary. -Avi
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Brian D. Foster Endigo Computer LLC Email: bdfoster@endigotech.com Phone: 317-800-7876 Indianapolis, Indiana, USA
This message contains confidential information and is intended for those listed in the "To:", "CC:", and/or "BCC:" fields of the message header. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I am back :) I tried both mod_distributor and mod_lcr (looks very promosing and I have some config missing for which I have opened another thread on the list). mod_distributor compiled and loads fine but the dialstring given on wiki can only be used from inside a Dialplan and not from the CLI / API <action application="bridge" data="sofia/gateway/${distributor(distributor_list)}/${destination_number}"/> When I try this with the originate command, I get invalid gateway. It looks like I have to expand the variable properly but how ? freeswitch@internal> originate {origination_caller_id_number=+911234567890}sofia/gateway/${distributor(knowbd3)}/00911234567890 &park() -ERR INVALID_GATEWAY 2012-04-11 20:29:56.196288 [DEBUG] switch_ivr_originate.c:1884 Parsing global variables 2012-04-11 20:29:56.196288 [DEBUG] switch_event.c:1522 Parsing variable [origination_caller_id_number]=[+911234567890] 2012-04-11 20:29:56.196288 [ERR] mod_sofia.c:4390 Invalid Gateway '%{distributor(knowbd3)}' # cat conf/autoload_configs/distributor.conf.xml <configuration name="distributor.conf" description="Distributor Configuration"> <lists> <list name="knowbd1" total-weight="1"> <node name="boloh" weight="1"/> </list> <list name="knowbd2" total-weight="1"> <node name="voxbeam" weight="1"/> </list> <list name="knowbd3" total-weight="3"> <node name="boloh" weight="1"/> <node name="voxbeam" weight="2"/> </list> </lists> </configuration> regards, Anita On Mon, Apr 9, 2012 at 9:33 PM, Anita Hall <anita.hall@simmortel.com> wrote:
Thanks everybody! Much appreciated :)
mod_lcr is what I am trying first!
regards, Anita
On Mon, Apr 9, 2012 at 9:06 PM, Brian Foster <bdfoster@endigotech.com>wrote:
Agreed. mod_lcr used here w/ 15ish carriers. Seems like no two carriers ever have the same rate on the same route.
-BDF
On Mon, Apr 9, 2012 at 11:28 AM, Ken Rice <krice@freeswitch.org> wrote:
Theres that or mod_lcr or a number of ways to do it...
But if you are using > 1 carrier if they have varying rates per prefix you probably want to go ahead and look at LCR so you can least cost route... Depending on volume this may save you some money
K
On 4/9/12 10:25 AM, "Brian Foster" <bdfoster@endigotech.com> wrote:
Is mod_distributor still being developed? That'll take care of you randomly routing between the two (or more) gateways.
-BDF
On Mon, Apr 9, 2012 at 10:57 AM, Avi Marcus <avi@avimarcus.net> wrote:
As Mitch stated, opensips isn't necessary. -Avi
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Brian D. Foster Endigo Computer LLC Email: bdfoster@endigotech.com Phone: 317-800-7876 Indianapolis, Indiana, USA
This message contains confidential information and is intended for those listed in the "To:", "CC:", and/or "BCC:" fields of the message header. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (6)
-
Anita Hall
-
Avi Marcus
-
Brian Foster
-
Bzzz
-
Ken Rice
-
Mitch Capper