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@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@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@10.11X.X.X:5068;transport=tcp>;tag=UB7tNX0mmBt7j


Thanks


_________________________________________________________________________


Professional FreeSWITCH Consulting Services:


consulting@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@lists.freeswitch.org


http://lists.freeswitch.org/mailman/listinfo/freeswitch-users


UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users


http://www.freeswitch.org