[Freeswitch-users] Trunk for inbound connections

Rick Jarvis rick at magicmail.mooo.com
Tue Jan 24 16:14:35 MSK 2017


That’s a great help, thank you!

> On 24 Jan 2017, at 11:20, Vallimamod Abdullah <vma at vallimamod.org> wrote:
> 
> Hi,
> 
> I am not sure if I understand correctly but if you want to send the dialed number instead of the sip account name to a registered trunk, you have to set the "dial-string" accordingly in directory.
> 
> Here is what I use:
> 
> <param name="dial-string" value="{^^:sip_invite_domain=${dialed_domain}}${regex(${sofia_contact(*/${dialed_user})}|^(.+)/sip:.+@(.+)|%1/sip:${destination_number}@%2)}"/>
> 
> It uses regex call to replace the username in contact with the destination_number var. You will then get the destination_number in your outgoing invite r-uri and from, with an additional Route header with the contact value.
> 
> Hope this helps!
> 
> Best Regards,
> -- 
> Vallimamod Abdullah
> vma at vallimamod.org
> .
> 
>> On 24 Jan 2017, at 11:58, Rick Jarvis <rick at magicmail.mooo.com> wrote:
>> 
>> Bump! (Sorry, desperate for an answer on this)
>> 
>>> On 19 Jan 2017, at 16:16, Rick Jarvis <rick at magicmail.mooo.com> wrote:
>>> 
>>> Anyone know what the missing link is here, getting an inbound route to point successfully at a trunk (which is authenticating as a user in the directory)? I’m sure I’ve done this before countless times, but having a bit of a senior moment I think...
>>> 
>>>> On 18 Jan 2017, at 18:25, Rick Jarvis <rick at magicmail.mooo.com> wrote:
>>>> 
>>>> If I just set up a user, I get a problem where “gw+” is being added to the SIP header, so calls from me to the third party system fail… something that’s better described here: https://www.3cx.com/community/threads/configuring-freeswitch-as-a-voice-provider.19656/
>>>> 
>>>> That’s why I started wondering if creating a user wasn’t the right way to go..?
>>>> 
>>>> 
>>>>> On 18 Jan 2017, at 18:18, Sergey Safarov <s.safarov at gmail.com> wrote:
>>>>> 
>>>>> I use assignments ip address of remote system to FreeSwith user in directory.
>>>>> 
>>>>> 
>>>>> ср, 18 янв. 2017, 19:41 Rick Jarvis <rick at magicmail.mooo.com>:
>>>>> What is the best and cleanest method for providing a trunk for someone else to register into, in the most transparent way (i.e. cross-compatible, for providing a ITSP service to third party systems)?
>>>>> _________________________________________________________________________
>>>>> Professional FreeSWITCH Consulting Services:
>>>>> consulting at freeswitch.org
>>>>> http://www.freeswitchsolutions.com
>>>>> 
>>>>> Official FreeSWITCH Sites
>>>>> http://www.freeswitch.org
>>>>> http://confluence.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://confluence.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://confluence.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://confluence.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://confluence.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://confluence.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




Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list