Hi Vasco,

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.

But, you can easily get around this:

$var(old_did) = $rU;
lookup() etc.
$rU = $var(old_did);
t_relay() etc.

-- Alex


On 17 April 2014 02:23:42 GMT+04:00, Vasco Mendes <vasco.m@innovation-tic.com> wrote:

Hi,

 

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 ??

 

Many thanks for your help,

Vasco

 




Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection Antivirus avast! est active.




SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

--
Sent from my mobile, and thus lacking in the refinement one might expect from a fully fledged keyboard.

Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0671
Web: http://www.evaristesys.com/, http://www.alexbalashov.com