Setting rpid and from for a gateway in its definition.
Hello. I use sip_from_display, sip_from_uri, sip_cid_type, origination_caller_id_name, and origination_caller_id_number to dinamically rewrite from and rpid headers. Like: sip_from_display=$${default_external_exit}$${default_areacode}${effective_caller_id_number} How can I place this in gateway definition for a profile to skip specifying this in dialplan? I want to use mod_lcr and all this fields does not feet in the column. I've tried to use <param name="from-user" value="$${default_external_exit}$${default_areacode}${effective_caller_id_number}"/> But this does not change after parsing XML and ${effective_caller_id_number} is not evaluated on calling thru gateway. Also tried: <variables> <variable name="sip_from_uri" direction="outbound"><![CDATA[<sip:$${default_external_exit}$${default_areacode}${effective_caller_id_number}@$${gateway_ip_v4_bind}>]]></variable> </variables> And this does not have any effect. How can accomplish this? Thank you.
This may sound obvious, but Have you tried making the table's field bigger? On Fri, Dec 16, 2016 at 10:35 PM Mimiko <vbvbrj@gmail.com> wrote:
Hello.
I use sip_from_display, sip_from_uri, sip_cid_type, origination_caller_id_name, and origination_caller_id_number to dinamically rewrite from and rpid headers. Like:
sip_from_display=$${default_external_exit}$${default_areacode}${effective_caller_id_number}
How can I place this in gateway definition for a profile to skip specifying this in dialplan? I want to use mod_lcr and all this fields does not feet in the column.
I've tried to use
<param name="from-user"
value="$${default_external_exit}$${default_areacode}${effective_caller_id_number}"/>
But this does not change after parsing XML and ${effective_caller_id_number} is not evaluated on calling thru gateway.
Also tried:
<variables> <variable name="sip_from_uri"
direction="outbound"><![CDATA[<sip:$${default_external_exit}$${default_areacode}${effective_caller_id_number}@ $${gateway_ip_v4_bind}>]]></variable> </variables>
And this does not have any effect.
How can accomplish this?
Thank you.
_________________________________________________________________________ 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
Yes, I did think about extending field. But the question is, would ${effective_caller_id_number} be resolved when lcr is called? I dont think that preprocessed vars would be. On 16.12.2016 23:37, David Villasmil wrote:
This may sound obvious, but Have you tried making the table's field bigger? On Fri, Dec 16, 2016 at 10:35 PM Mimiko <vbvbrj@gmail.com <mailto:vbvbrj@gmail.com>> wrote:
Hello.
I use sip_from_display, sip_from_uri, sip_cid_type, origination_caller_id_name, and origination_caller_id_number to dinamically rewrite from and rpid headers. Like:
sip_from_display=$${default_external_exit}$${default_areacode}${effective_caller_id_number}
How can I place this in gateway definition for a profile to skip specifying this in dialplan? I want to use mod_lcr and all this fields does not feet in the column.
-- Mimiko desu.
participants (2)
-
David Villasmil
-
Mimiko