[Freeswitch-users] combining multiple SIP providers
Anita Hall
anita.hall at simmortel.com
Wed Apr 11 19:06:28 MSD 2012
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 at 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 at 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 at 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 at 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 at 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 at avimarcus.net> wrote:
>>>
>>> As Mitch stated, opensips isn't necessary.
>>> -Avi
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>>
>>>
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at 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 at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>>
>>>
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at 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 at 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 at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120411/42ba2415/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list