<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 &quot;Tanguy&quot; &lt;<a href="mailto:phenix@vfemail.net">phenix@vfemail.net</a>&gt;:<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>
      &lt;param name=&quot;extension&quot; value=&quot;auto_to_user&quot;/&gt;<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">&lt;include&gt;                                                                                                
        <br>
        &lt;extension
        name=&quot;public_test1&quot;&gt;                                                                   
        <br>
                &lt;condition
        regex=&quot;all&quot;&gt;                                                                          
        <br>
                &lt;regex  field=&quot;destination_number&quot;
        expression=&quot;^provider1$&quot;/&gt;                               <br>
                &lt;regex  field=&quot;${sip_h_To}&quot;
        expression=&quot;43717072377&quot;/&gt;                                           
        <br>
                                                                                                                 
        <br>
                        &lt;action application=&quot;set&quot;
        data=&quot;effective_caller_id_number=7021&quot;/&gt;                       
        <br>
                        &lt;action application=&quot;set&quot;
        data=&quot;effective_caller_id_name=thomas&quot;/&gt;              <br>
                        &lt;action
        application=&quot;answer&quot;/&gt;                                                           
        <br>
                        &lt;action application=&quot;transfer&quot; data=&quot;6011 XML
        inbound1 &quot;/&gt;                              <br>
               
        &lt;/condition&gt;                                                                                     
        <br>
        &lt;/extension&gt;</p>
      <p dir="ltr">----------------</p>
      <p dir="ltr">the To field in the SIP header looks like this:</p>
      <p dir="ltr">To: &lt;<a href="mailto:sip%3A43717072377@193.43.148.37" target="_blank">sip:43717072377@193.43.148.37</a>&gt;
      </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>