Hello,<br><br>I'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 'To:" 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: <<a href="mailto:sip%3A555555555@appsm.ngn.yyyy.pl">sip:555555555@appsm.ngn.yyyy.pl</a>>;tag=SD3lb8e01-118520006-1280255979518-<br>
To: "ab"<sip:<b>223517864</b>@<a href="http://yyyyy.pl">yyyyy.pl</a>;line=eccbc87e><br> Call-ID: SD3lb8e01-b5526ec70ec5846b8f02e61df8d8eb32-aovtv90<br> CSeq: 177862656 INVITE<br> Contact: <sip:x.x.x.x:5060;transport=udp><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's always the same string (in this case it's alamakota@...........), independently of callee DID.<br><br>Question is: How to route those calls based on 'To' field (more precisely - based on User Part of the 'To' field) ?????<br>
Dialplan with simple condition "destination_number" of course doesn't work.... <br>Is there a solution?<br>(Using Asterisk I'm able to analyse whole INVITE message, substract 'To' field and then route via value in this field...)<br>
<br>Thanks for any help<br>-- <br>rniczypo<br>