[Freeswitch-users] Set b-leg CallerID using from in a 300 Multiple Choices reply

Lyubo Popov lpopov at blasterphone.com
Mon Feb 12 18:58:13 UTC 2018


I am grateful for your help Joseph! I am new in FS with VCS and using the
default configs provided by Jerasoft but I see the possibilities are
endless and I may abandon MVTS (my current SBC) for good if I can manage to
configure the FS the way I need it.

Re.
Lyubo Popov

On Mon, Feb 12, 2018 at 4:39 PM, Jospeh Waite <joelists at tm.net.uk> wrote:

> Hi L.Popov
>
> Any other queries then please let me know.
>
> I am working on a full config for FS with very good Jerasoft integration.
>
> I have a custom collector which makes routing to local extensions and also
> domain based call routing work very well.
>
> Soon as it’s finished I will let you know.
>
> Regards
>
> On 12 Feb 2018, at 18:31, Lyubo Popov <lpopov at blasterphone.com> wrote:
>
> I am also using Jerasoft so I am going to try this out on my setup. Great
> help! Thank you!
>
> Re.,
> L.Popov
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
>
> On Mon, Feb 12, 2018 at 4:20 PM, Jospeh Waite <joelists at tm.net.uk> wrote:
>
>> Hi L.Popov
>>
>> Now this would depend in what format your redirect server is sending the
>> reply back. In my case I’m using Jerasoft VCS which is sending the
>> re-written caller id in a per contact form with src_number= set.
>>
>> I use the following in my redirect catching dial plan
>>
>>        <condition field="${sip_redirect_contact_0}"
>> expression="src_number=(.+)\;(.+)$">
>>             <action application="set" data="effective_caller_id_name
>> =$1"/>
>>             <action application="set" data="effective_caller_id_numb
>> er=$1"/>
>>         </condition>
>>
>>         <condition field="${sip_redirect_contact_0}"
>> expression="^<(.+)\>(.+)$">
>>             <action application="bridge" data="{sip_invite_from_uri=sip:$
>> {effective_caller_id_number}@${sip_network_ip}}sofia/external/$1" />
>>         </condition>
>>
>> This catches the src_number in the first condition and updates the
>> caller_id and then bridges the call in the second.
>>
>> The one drawback is you would have to replicate this for each response
>> your likely to have in the 300 response. So if it gives 3 different options
>> to send the call to you would have to copy this 3 times, changing the
>> sip_redirect_contact_0 and increasing the number on the end for each one.
>>
>> Regards
>>
>> On 12 Feb 2018, at 18:07, Lyubo Popov <lpopov at blasterphone.com> wrote:
>>
>> Hello Joseph,
>>
>> I am having the same problem and would like to resurrect this post. Does
>> someone knows how to do that? I send one CallerID to redirect server where
>> this is being rewritten and receive another from it in the 300 response and
>> would like to update this CID before sending to termination (b-leg)
>>
>> Re.,
>> L.Popov
>>
>>
>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free.
>> www.avast.com
>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
>>
>> On Tue, Jul 11, 2017 at 4:32 PM, Joseph Waite <joelists at tm.net.uk> wrote:
>>
>>> Hi Guys
>>>
>>> I am trying to use the From field in a 300 Multiple Choices message to
>>> set the outbound CallerID in the re-directed b-leg
>>>
>>> So call comes into FreeSwitch, gets sent out to a SIP Redirect server
>>> which replies with a 300 Multiple choices.
>>> I need to pull the number from the From field of this 300 Response and
>>> use it to set the From field, raid & Paid fields in the re-directed invite.
>>>
>>> Any help would be very much appreciated.
>>>
>>> Regards
>>> ____________________________________________________________
>>> _____________
>>> 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
>>
>>
>>
>>
>> --
>> Atenciosamente,
>> ============================
>> Lyubo Popov
>> CEO - BlasterPhone LLC
>> Tel: 4003-1556 ( Outside Brazil 55 11 4003-1556)
>> iNum: +883 510001-354111 <+883%20510%20001%20354%20111>
>> Website: http://www.blastervoip.com.br/
>> ============================
>> _________________________________________________________________________
>> 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
>>
>
>
>
> --
> Atenciosamente,
> ============================
> Lyubo Popov
> CEO - BlasterPhone LLC
> Tel: 4003-1556 ( Outside Brazil 55 11 4003-1556)
> iNum: +883 510001-354111 <+883%20510%20001%20354%20111>
> Website: http://www.blastervoip.com.br/
> ============================
> _________________________________________________________________________
> 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
>



-- 
Atenciosamente,
============================
Lyubo Popov
CEO - BlasterPhone LLC
Tel: 4003-1556 ( Outside Brazil 55 11 4003-1556)
iNum: +883 510001-354111
Website: http://www.blastervoip.com.br/
============================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180212/189eddcd/attachment.html>


More information about the FreeSWITCH-users mailing list