[Freeswitch-users] Changing display name in From header ?
Dušan Dragić
dragic.dusan at gmail.com
Sun Aug 24 23:48:56 MSD 2014
Try with sip_from_display and sip_invite_from_uri instead of
sip_from_uri, something like:
sip_from_display=Anonymous
sip_invite_from_uri=<sip:anonymous at anonymous.invalid>
origination_caller_id_name=9094445555
origination_caller_id_number=9094445555
On 24 August 2014 19:02, Tim Smith <gb10hkzo-fs1 at yahoo.co.uk> wrote:
> Hi,
>
> What magic needs to be done to change the display name in the From header ?
>
> I've tried outbound_caller_name, effective_caller_id_name and all sorts of other combinations under the sun and yet I can't get the Freeswitch to comply !!!!
>
> Here's what the relevant section of my XML dial plan looks like:
>
>
> <condition field="${privacy}" expression="yes" break="never">
> <action application="export" data="outbound_caller_name=Anonymous"/>
> <action application="export" data="sip_from_uri=<sip:anonymous at anonymous.invalid>"/>
> <action application="export" data="sip_cid_type=pid"/>
> <action application="export" data="origination_caller_id_name=${outbound_caller_id_number}"/>
> <action application="export" data="origination_caller_id_number=${outbound_caller_id_number}"/>
> <anti-action application="set" data="sip_cid_type=none"/>
> <anti-action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
> <anti-action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
> </condition>
>
>
> Basically, I need the From header to look like :
> From: "Anonymous" <sip:anonymous at anonymous.invalid>
>
> and PID to look like :
>
> P-Asserted-Identity: "9094445555" <sip:9094445555 at 1.2.3.4>
>
> _________________________________________________________________________
> 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
--
Dušan Dragić
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list