Hi,<br><br>I would suggest you to use Asterisk Application SIPGetHeader in your Dialplan for incoming calls from &quot;plugandtel&quot;.<br><br><a href="http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+SIPGetHeader">
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+SIPGetHeader</a><br><br>Something like<br><b><br>exten=&gt;_[a-z].,1,SIPGetHeader(Var_TO=To)<br>exten=&gt;_[a-z].,2,Dial(SIP/${Var_TO})<br><br>Please be aware that this application as a different name in asterisk 
1.4.<br><br>Learn from CLI &gt; show application ?<br><br>Hope it helps,<br><br>Best regards,<br>MoutaPT<br><br><br></b><br><div class="gmail_quote">On Nov 14, 2007 3:02 PM, Marc LEURENT &lt;<a href="mailto:lftsy@free.fr">
lftsy@free.fr</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">We are using 2 different incoming trunks.<br>The first one is 
<a href="http://alsion.com" target="_blank">alsion.com</a> and is sending INVITE with phone number in<br>the INVITE line whereas plugandtel put the callee number only inside the<br>To: Section.<br><br><br><br>Marco Mouta a écrit :
<br><div><div></div><div class="Wj3C7c">&gt; Could you describe in detail how did you fall into this situation, I mean<br>&gt; the real example which SIP phone sends this invite? Is registered in<br>&gt; asterisk? it is a non-registered sip phone trying to dial a sip user at your
<br>&gt; * box?<br>&gt;<br>&gt; If this is an issue with a specific hardware outside of your asterisk, &nbsp;may<br>&gt; be something not well configured ... describe it a bit more in detail.<br>&gt;<br>&gt; If you don&#39;t have anyworkaround for this Invite format I would use OpenSER
<br>&gt; in front of Asterisk to handle this invites and replace to SIP URI with info<br>&gt; from the tag TO: ...<br>&gt;<br>&gt; Any way if you provide more details may be someone in the Mailing list is<br>&gt; able to help u out;)
<br>&gt;<br>&gt; Best regards<br>&gt; MoutaPT<br>&gt;<br>&gt; On Nov 13, 2007 6:14 PM, Marc LEURENT &lt;<a href="mailto:lftsy@free.fr">lftsy@free.fr</a>&gt; wrote:<br>&gt;<br>&gt;&gt; Good evening!<br>&gt;&gt; I was wondering one thing,
<br>&gt;&gt; I&#39;m using freepbx to configure my asterisk server and I have a problem<br>&gt;&gt; with some inbound calls.<br>&gt;&gt;<br>&gt;&gt; When I receive a call to an INVITE <a href="mailto:sip:01xxxxxx@myip.com">
sip:01xxxxxx@myip.com</a> I an set an<br>&gt;&gt; inbound route! It matches a DID number.<br>&gt;&gt;<br>&gt;&gt; How can I route an INVITE <a href="mailto:sip:s@myip.com">sip:s@myip.com</a>? The number only appear in the
<br>&gt;&gt; To: Section.<br>&gt;&gt;<br>&gt;&gt; Thanks!<br>&gt;&gt;<br>&gt;&gt; Example:<br>&gt;&gt;<br>&gt;&gt; With this one, I cannot route it (there is only the number to be reached<br>&gt;&gt; in the To: section)<br>
&gt;&gt; #<br>&gt;&gt; U <a href="http://217.36.112.145:5060" target="_blank">217.36.112.145:5060</a> -&gt; <a href="http://192.168.95.235:5060" target="_blank">192.168.95.235:5060</a><br>&gt;&gt; INVITE sip:s@192.168.95.235
:5060;transport=udp SIP/2.0.<br>&gt;&gt; Allow: UPDATE,REFER,INFO.<br>&gt;&gt; Call-ID: <a href="mailto:02975-TP-0223ae6d-6daf01263@sip.lecom.com">02975-TP-0223ae6d-6daf01263@sip.lecom.com</a>.<br>&gt;&gt; Contact: &lt;sip:
<a href="http://217.66.118.145:5060" target="_blank">217.66.118.145:5060</a>&gt;.<br>&gt;&gt; Content-Type: application/sdp.<br>&gt;&gt; CSeq: 34878212 INVITE.<br>&gt;&gt; From: &quot;0614740696&quot;<br>&gt;&gt; &lt;<a href="mailto:sip:0614740696@sip.lecom.com">
sip:0614740696@sip.lecom.com</a>;user=phone&gt;;tag=02975-US-0223ae6e-67d6c4495.<br>&gt;&gt; Max-Forwards: 31.<br>&gt;&gt; To: &lt;<a href="mailto:sip:0170080048@127.0.0.1">sip:0170080048@127.0.0.1</a>;user=phone&gt;.<br>
&gt;&gt; User-Agent: Cirpack/v4.41c (gw_sip).<br>&gt;&gt; Via: SIP/2.0/UDP <a href="http://217.36.112.145:5060" target="_blank">217.36.112.145:5060</a>;branch=z9hG4bK-744D-33B812.<br>&gt;&gt; Content-Length: 303.<br>&gt;&gt; .
<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Whereas with this one I can do it! (there is a number in the INVITE)<br>&gt;&gt; #<br>&gt;&gt; U <a href="http://87.98.202.114:5060" target="_blank">87.98.202.114:5060</a> -&gt; 
<a href="http://192.168.95.235:5060" target="_blank">192.168.95.235:5060</a><br>&gt;&gt; INVITE <a href="mailto:sip:0170704626@192.168.95.235">sip:0170704626@192.168.95.235</a> SIP/2.0.<br>&gt;&gt; Via: SIP/2.0/UDP <a href="http://87.98.202.114:5060" target="_blank">
87.98.202.114:5060</a>;branch=z9hG4bK1fd2c6b4;rport.<br>&gt;&gt; From: &quot;0158136741&quot; &lt;<a href="mailto:sip:0158136740@87.98.201.114">sip:0158136740@87.98.201.114</a>&gt;;tag=as25391ca7.<br>&gt;&gt; To: &lt;<a href="mailto:sip:0170704626@192.168.95.235">
sip:0170704626@192.168.95.235</a>&gt;.<br>&gt;&gt; Contact: &lt;<a href="mailto:sip:0158136741@87.98.201.114">sip:0158136741@87.98.201.114</a>&gt;.<br>&gt;&gt; Call-ID: <a href="mailto:4091f4686a9bbc4c5223fe9c6cf60a62@87.98.202.114">
4091f4686a9bbc4c5223fe9c6cf60a62@87.98.202.114</a>.<br>&gt;&gt; CSeq: 102 INVITE.<br>&gt;&gt; User-Agent: Asterisk PBX.<br>&gt;&gt; Max-Forwards: 70.<br>&gt;&gt; Date: Tue, 13 Nov 2007 18:07:00 GMT.<br>&gt;&gt; Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
<br>&gt;&gt; Content-Type: application/sdp.<br>&gt;&gt; Content-Length: 233.<br>&gt;&gt; .<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">
http://www.api-digital.com--</a><br>&gt;&gt;<br>&gt;&gt; asterisk-users mailing list<br>&gt;&gt; To UNSUBSCRIBE or update options visit:<br>&gt;&gt; &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br></div></div>&gt; ------------------------------------------------------------------------<br><div><div></div><div class="Wj3C7c">
&gt;<br>&gt; _______________________________________________<br>&gt; --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>&gt;<br>&gt; asterisk-users mailing list
<br>&gt; To UNSUBSCRIBE or update options visit:<br>&gt; &nbsp; &nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br>_______________________________________________
<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Esta mensagem (incluindo quaisquer anexos) pode conter informação confidencial para uso exclusivo do destinatário. Se não for o destinatário pretendido, não deverá usar, distribuir ou copiar este e-mail. Se recebeu esta mensagem por engano, por favor informe o emissor e elimine-a imediatamente. Obrigado.
<br><br>This e-mail message is intended only for individual(s) to whom it is addressed and may contain information that is privileged, confidential, proprietary, or otherwise exempt from disclosure under applicable law. If you believe you have received this message in error, please advise the sender by return e-mail and delete it from your mailbox. Thank you.