[Freeswitch-users] "To field" in sip header

thomas peterseil thomas.peterseil at gmail.com
Sat Apr 30 13:51:26 MSD 2016


hi,
thanks a lot, that solved my problem!
but i am still wondering if it´s possible to read and modify sip header
fields with FS at inbound calls.

best,
thomas
Am 29.04.2016 8:54 nachm. schrieb "Tanguy" <phenix at vfemail.net>:

> Hello
>
> I think you may add this line in your gateway configuration.
>
> <param name="extension" value="auto_to_user"/>
>
> Then you will be able to use a standard dialplan with destination_number
>
>
>
> On 29/04/2016 14:47, thomas peterseil wrote:
>
> hello,
> i have a sip provider with multiple DID´s and they send me all calls with
> the same invite, only the To field in the SIP header is different. how can
> i read the To field in the SIP header to be able to make a call routing
> based on the To field? i tried the following rule but it doesnt work:
>
> ---------------------
>
> <include>
>
> <extension
> name="public_test1">
>
>         <condition
> regex="all">
>
>         <regex  field="destination_number"
> expression="^provider1$"/>
>         <regex  field="${sip_h_To}"
> expression="43717072377"/>
>
>
>                 <action application="set"
> data="effective_caller_id_number=7021"/>
>                 <action application="set"
> data="effective_caller_id_name=thomas"/>
>                 <action
> application="answer"/>
>
>                 <action application="transfer" data="6011 XML inbound1
> "/>
>
> </condition>
>
> </extension>
>
> ----------------
>
> the To field in the SIP header looks like this:
>
> To: <sip:43717072377 at 193.43.148.37>
>
> thanks a lot for help!
>
> best regards,
> thomas
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>
> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
>
> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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/20160430/7ef1df89/attachment.html 


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