<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 26 Mar 2014, at 16:32, Mickael MONSIEUR <<a href="mailto:mickael.monsieur@gmail.com">mickael.monsieur@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hello,<div><br><div><div>I installed kamailio and asterisk with the tutorial of asipto. </div><div>For alias numbers I configured the module alias_db. </div><div><br></div><div>Everything works because Asterisk outgoing call is directed at Kamailio, then Kamailio is sending to the alias registered (table location) </div>
<div><br></div><div>Only the number alias appears in the "To" (02XXXXXX) and not in the INVITE URI. It only shows "s" ... is it possible to force writing 02XXXXXX instead of "s" ?</div></div></div></div></blockquote><div><br></div>Who sets the "s" in the request URI? Asterisk use "s" when there's no extension given in the dialplan. </div><div><br></div><div>/O<br><blockquote type="cite"><div dir="ltr"><div>
<div><br></div><div>Example:</div><div><br></div><div><div>INVITE <a href="http://sip:s@10.1.0.191:5060/">sip:s@10.1.0.191:5060</a> SIP/2.0</div><div>Max-Forwards: 69</div><div>From: "0475XXXXXX" <<a href="mailto:sip%3A1053212@sip.domain.com">sip:1053212@sip.domain.com</a>>;tag=as7df9ab18</div>
<div>To: <<a href="sip:02XXXXXX@kamailioIP:5060">sip:02XXXXXX@kamailioIP:5060</a>></div><div>Contact: <<a href="sip:1053212@asteriskIP:5060">sip:1053212@asteriskIP:5060</a>></div><div>Call-ID: <a href="mailto:344d42bd16975a54141d11f635bdfc71@sip.domain.com">344d42bd16975a54141d11f635bdfc71@sip.domain.com</a></div>
<div>CSeq: 102 INVITE</div><div>Date: Wed, 26 Mar 2014 15:06:01 GMT</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH</div><div>Supported: replaces, timer</div><div>Content-Type: application/sdp</div>
<div>Content-Length: 252</div></div><div><br></div></div><div>Because without it, Asterisk servers behind Kamailio not will route the call to the correct extension but to the "s". Asterisk ignores the "To" apparently this is strange ...<br>
</div><div><br></div><div>Thank you,</div><div>Mickael</div></div>
_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br></blockquote></div><br></body></html>