<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">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>