<p dir="ltr">hi,<br>
thanks a lot, that solved my problem! <br>
but i am still wondering if it´s possible to read and modify sip header fields with FS at inbound calls.</p>
<p dir="ltr">best,<br>
thomas</p>
<div class="gmail_quote">Am 29.04.2016 8:54 nachm. schrieb "Tanguy" <<a href="mailto:phenix@vfemail.net">phenix@vfemail.net</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hello<br>
<br>
I think you may add this line in your gateway configuration.<br>
<br>
<param name="extension" value="auto_to_user"/><br>
<br>
Then you will be able to use a standard dialplan with
destination_number<br>
<br>
<br>
<br>
On 29/04/2016 14:47, thomas peterseil wrote:<br>
</div>
<blockquote type="cite">
<p dir="ltr">hello,<br>
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:</p>
<p dir="ltr">---------------------</p>
<p dir="ltr"><include>
<br>
<extension
name="public_test1">
<br>
<condition
regex="all">
<br>
<regex field="destination_number"
expression="^provider1$"/> <br>
<regex field="${sip_h_To}"
expression="43717072377"/>
<br>
<br>
<action application="set"
data="effective_caller_id_number=7021"/>
<br>
<action application="set"
data="effective_caller_id_name=thomas"/> <br>
<action
application="answer"/>
<br>
<action application="transfer" data="6011 XML
inbound1 "/> <br>
</condition>
<br>
</extension></p>
<p dir="ltr">----------------</p>
<p dir="ltr">the To field in the SIP header looks like this:</p>
<p dir="ltr">To: <<a href="mailto:sip%3A43717072377@193.43.148.37" target="_blank">sip:43717072377@193.43.148.37</a>>
</p>
<p dir="ltr">thanks a lot for help!</p>
<p dir="ltr">best regards,<br>
thomas</p>
<br>
<fieldset></fieldset>
<br>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div>