<p dir="ltr">Tell us your provider, so we can avoid it :)</p>
<div class="gmail_quote">Le 29 avr. 2016 9:04 AM, "Alex Balashov" <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The standards are quite clear that To is a cosmetic header and is not to be used for any routing.<br>
<br>
Only the Request URI provides "DNIS". If your SIP provider isn't differentiating it based on the number dialed, ask them to enable that.<br>
<br>
--<br>
Alex Balashov | Principal | Evariste Systems LLC<br>
1447 Peachtree Street NE, Suite 700<br>
Atlanta, GA 30309<br>
United States<br>
<br>
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
Sent from my BlackBerry.<br>
Original Message <br>
From: thomas peterseil<br>
Sent: Friday, April 29, 2016 08:48<br>
To: FreeSWITCH Users Help<br>
Reply To: FreeSWITCH Users Help<br>
Subject: [Freeswitch-users] "To field" in sip header<br>
<br>
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:<br>
<br>
---------------------<br>
<br>
<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><br>
<br>
----------------<br>
<br>
the To field in the SIP header looks like this:<br>
<br>
To: <<a href="mailto:sip%3A43717072377@193.43.148.37">sip:43717072377@193.43.148.37</a>><br>
<br>
thanks a lot for help!<br>
<br>
best regards,<br>
thomas<br>
<br>
<br>
<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></blockquote></div>