[Freeswitch-users] Quick Question
Michael Jerris
mike at jerris.com
Thu Jan 12 22:32:52 MSK 2017
you REALLY should not be using effective_* vars
use the originate_* ones on the dial string instead
> On Jan 12, 2017, at 2:27 PM, David Villasmil <david.villasmil.work at gmail.com> wrote:
>
> To set the 'from' header you need to use effective_caller_id_number or with origination_caller_id_number.
>
> Caveat is, effective_caller_id_number can ONLY be set BEFORE the bridge, like so:
>
> <action application="set" data="effective_caller_id_number=${caller_id_number}"/>
> <action application="set" data="effective_caller_id_name=${caller_id_number}"/>
> <action application="bridge" data="sofia/gateway/your-gateway/$1"/>
>
> if you set it on the bridge it will not work.
>
> And you can also use origination_caller_id_number, BUT you need to set it on the bridge itself:
>
> <action application="bridge" data="{origination_caller_id_number=${caller_id_number},origination_caller_id_name=${caller_id_number}}sofia/gateway/your'gateway/$1"/>
>
> hope it's clear.
>
> On Thu, Jan 12, 2017 at 10:56 AM Magnus Kelly <magnus.kelly at gmail.com <mailto:magnus.kelly at gmail.com>> wrote:
> Hello All,
>
> would be very helpful if someone could help me with quick reminder on how to change SIP header on bridge
>
> as in - incoming call on LegA Bridged to Leg B while changing the "ip:FreeSWITCH" to sip: +44xxxxxxxxxx
>
> now this format appears as default -
>
> From: "+44xxxxxxxxxx" <sip:FreeSWITCH at 10.11X.X.XX:5068;transport=tcp>;tag=UB7tNX0mmBt7j
>
> And I would like help to change it to be in this format -
>
> From: "+44xxxxxxxxxx " <sip: +44xxxxxxxxxx at 10.11X.X.X:5068;transport=tcp>;tag=UB7tNX0mmBt7j
>
>
> Thanks
>
>
> _________________________________________________________________________
>
>
> Professional FreeSWITCH Consulting Services:
>
>
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>
>
> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
>
>
>
>
>
> Official FreeSWITCH Sites
>
>
> http://www.freeswitch.org <http://www.freeswitch.org/>
>
>
> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
>
>
> http://www.cluecon.com <http://www.cluecon.com/>
>
>
>
>
>
> FreeSWITCH-users mailing list
>
>
> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>
>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>
>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>
>
> http://www.freeswitch.org <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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170112/429fb60f/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list