<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You can also add the following gateway parameter in your gateway params:<div><br></div><div><param name="extension" value="auto_to_user"/></div><div><br></div><div>With this, FS will use the To field as the destination_number.</div><div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#1C00FF">David Ponzone </font><font class="Apple-style-span" color="#000000" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Direction Technique</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a></span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 01 74 03 18 97</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">gsm: 06 66 98 76 34</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><br></font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client<span class="Apple-converted-space"> </span></font><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#FF0000">IP</font></font><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 0811 46 26 26</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span style="text-decoration: underline; "><a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149); "> - <span style="color: rgb(0, 34, 243); text-decoration: underline; "><a href="BLOCKED::http://www.ipeva-studio.com/">www.ipeva-studio.com</a></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span" style="text-decoration: underline; "><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: justify; font: normal normal normal 10px/normal Arial; color: rgb(192, 192, 192); "><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div><div style="text-decoration: underline; text-align: justify; "><font class="Apple-style-span" color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"> </div><br><div><div>Le 27/07/2010 à 21:05, Robert M. Niczyporuk a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">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 <a href="sip:alamakota@">sip:alamakota@</a>[.....deleted.......];transport=udp;line=eccbc87e SIP/2.0<br> Method: INVITE<br> Request-URI: <a href="sip:alamakota@">sip:alamakota@</a>[.....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: <<a href="sip:x.x.x.x:5060;transport=udp">sip:x.x.x.x:5060;transport=udp</a>><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> _______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></body></html>