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

Lyubo Popov lpopov at blasterphone.com
Mon Feb 12 18:31:50 UTC 2018


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>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

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_
> number=$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
Website: http://www.blastervoip.com.br/
============================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180212/89030853/attachment.html>


More information about the FreeSWITCH-users mailing list