Hello,<br><br>I&#39;ve got simple problem.<br>My ITSP, when sends me an INVITE message, puts a destination DID (e.g. 223517864, 223517865) only in a field &#39;To:&quot; of the INVITE message.<br><br>So it looks like:<br>---------------------------------------------------------------------------------------------------------------------------------------------------<br>
Session Initiation Protocol<br>    Request-Line: INVITE sip:alamakota@[.....deleted.......];transport=udp;line=eccbc87e SIP/2.0<br>        Method: INVITE<br>        Request-URI: sip:alamakota@[.....deleted.......];transport=udp;line=eccbc87e<br>
        [Resent Packet: False]<br>    Message Header<br>        Via: SIP/2.0/UDP x.x.x.x:5060;branch=z9hG4bKedjaoo2068qhogsrm5o1.1<br>        From: &lt;<a href="mailto:sip%3A555555555@appsm.ngn.yyyy.pl">sip:555555555@appsm.ngn.yyyy.pl</a>&gt;;tag=SD3lb8e01-118520006-1280255979518-<br>
        To: &quot;ab&quot;&lt;sip:<b>223517864</b>@<a href="http://yyyyy.pl">yyyyy.pl</a>;line=eccbc87e&gt;<br>        Call-ID: SD3lb8e01-b5526ec70ec5846b8f02e61df8d8eb32-aovtv90<br>        CSeq: 177862656 INVITE<br>        Contact: &lt;sip:x.x.x.x:5060;transport=udp&gt;<br>
        Allow: ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,REFER,NOTIFY,UPDATE<br>        Accept: multipart/mixed,application/media_control+xml,application/sdp<br>        Supported: timer<br>        Min-SE: 60<br>        Max-Forwards: 9<br>
        Content-Type: application/sdp<br>        Content-Length: 332<br>    Message Body<br>----------------------------------------------------------------------------------------------------------------------------------------------------------<br clear="all">
<br>In Request-Line there&#39;s always the same string (in this case it&#39;s alamakota@...........), independently of callee DID.<br><br>Question is: How to route those calls based on &#39;To&#39; field (more precisely - based on User Part of the &#39;To&#39; field)  ?????<br>
Dialplan with simple condition &quot;destination_number&quot; of course doesn&#39;t work.... <br>Is there a solution?<br>(Using Asterisk I&#39;m able to analyse whole INVITE message, substract &#39;To&#39; field and then route via value in this field...)<br>
<br>Thanks for any help<br>-- <br>rniczypo<br>