<html v="urn:schemas-microsoft-com:vml" o="urn:schemas-microsoft-com:office:office" w="urn:schemas-microsoft-com:office:word" m="http://schemas.microsoft.com/office/2004/12/omml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="Generator" content="Microsoft Word 15 (filtered medium)" /><style><!--
/* Font Definitions */
@font-face
 {font-family:"Cambria Math";
 panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
 {font-family:Calibri;
 panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
 {margin:0cm;
 margin-bottom:.0001pt;
 font-size:11.0pt;
 font-family:"Calibri","sans-serif";
 mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
 {mso-style-priority:99;
 color:#0563C1;
 text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
 {mso-style-priority:99;
 color:#954F72;
 text-decoration:underline;}
span.EmailStyle17
 {mso-style-type:personal-compose;
 font-family:"Calibri","sans-serif";
 color:windowtext;}
..MsoChpDefault
 {mso-style-type:export-only;
 font-family:"Calibri","sans-serif";
 mso-fareast-language:EN-US;}
@page WordSection1
 {size:612.0pt 792.0pt;
 margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
 {page:WordSection1;}
--></style></head><body lang="FR" link="#0563C1" vlink="#954F72">Hi Vasco, <br>
<br>
That's because Asterisk uses sip:a@local.ip as the Contact URI in the AoR binding it requests from the registrar. When the registrar does a lookup(), it changes to the request URI to be equivalent to the registrant's contact, just as it's supposed to. <br>
<br>
But, you can easily get around this:<br>
<br>
$var(old_did) = $rU;<br>
lookup() etc. <br>
$rU = $var(old_did);<br>
t_relay() etc. <br>
<br>
-- Alex<br>
<br><br><div class="gmail_quote">On 17 April 2014 02:23:42 GMT+04:00, Vasco Mendes <vasco.m@innovation-tic.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class="WordSection1"><p class="MsoNormal">Hi,</p><p></p><p class="MsoNormal"></p><p> </p><p class="MsoNormal">I created an incoming trunk between iptel and my asterisk. Whatever the account is on iptel I always have in the from of received INVITE « sip :s@mypublicip :5060 ». « s » is not a recognized DID on my asterisk. Why do I receive this « s » in the from ??</p><p></p><p class="MsoNormal"></p><p> </p><p class="MsoNormal">Many thanks for your help,</p><p></p><p class="MsoNormal">Vasco<span lang="EN-US" style="mso-fareast-language:FR"><p></p></span></p><p class="MsoNormal"></p><p> </p></div>
<br /><br />
<hr style="border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;" />

 
  
  
 
<table style="border-collapse:collapse;border:none;"><tbody><tr><td style="border:none;padding:0px 15px 0px 8px">
   <a href="http://www.avast.com/">
    <img border="0" src="http://static.avast.com/emails/avast-mail-stamp.png" />
   </a>
  </td><td>
   <p style="color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;">
    Ce courrier Ã©lectronique ne contient aucun virus ou logiciel malveillant parce que la protection <a href="http://www.avast.com/">Antivirus avast!</a> est active.
   </p>
  </td></tr></tbody></table>
<br />
<p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br />sr-users@lists.sip-router.org<br /><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br /></pre></blockquote></div><br>
--<br>
Sent from my mobile, and thus lacking in the refinement one might expect from a fully fledged keyboard. <br>
<br>
Alex Balashov - Principal <br>
Evariste Systems LLC<br>
235 E Ponce de Leon Ave<br>
Suite 106<br>
Decatur, GA 30030<br>
United States<br>
Tel: +1-678-954-0671<br>
Web: <a href="http://www.evaristesys.com">http://www.evaristesys.com</a>/, <a href="http://www.alexbalashov.com">http://www.alexbalashov.com</a></body></html>