<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">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
cite="mid:CAH5f_ds2t9ur7sNoF-6pA8r6pBs6C-OUMVcsO-yX+k0rRxtojw@mail.gmail.com"
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 moz-do-not-send="true"
href="mailto:sip%3A43717072377@193.43.148.37">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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
</body>
</html>