[Freeswitch-users] Setting rpid and from for a gateway in its definition.

David Villasmil david.villasmil.work at gmail.com
Sat Dec 17 00:37:35 MSK 2016


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 at 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 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/20161216/cf71f15c/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list