<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><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: <sip:02XXXXXX@kamailioIP:5060></div><div>Contact: <sip:1053212@asteriskIP:5060></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>