<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-03-22 15:44 GMT+01:00 Joshua Colp <span dir="ltr"><<a href="mailto:jcolp@digium.com" target="_blank">jcolp@digium.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Olivier wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hello,<br>
<br>
I'm trying to understand how to configure Asterisk 13's PJSIP stack.<br>
I've read the pages in [1] and still have a couple of questions to ask.<br>
<br>
In my lab, I've configured an Asterisk 13 box to act as an ITSP box and<br>
another Asterisk 13 to act as an IPBX.<br>
<br>
I'm trying to configure the ITSP box such as it would accept incoming<br>
registrations and calls from any IP address (dynamic), if and only if<br>
IPBX provides both a username and a password.<br>
<br>
1. From experiments, I've found that OPTION messages sent by IPBX box<br>
have a From field which contains the following value :<br>
From: <<a href="mailto:sip%3Aasterisk@192.168.64.136" target="_blank">sip:asterisk@192.168.64.136</a><br></span>
<mailto:<a href="mailto:sip%253Aasterisk@192.168.64.136" target="_blank">sip%3Aasterisk@192.168.64.136</a>>>;tag=cf192aac-7799-4d6d-be1a-8297125ee595<span class=""><br>
Is it possible to change this "asterisk" in the above From field ?<br>
Aor section in [2] do not mention such setting.<br>
I couldn't see any undesirable side effects (beside WARNING messages on<br>
the ITSP box) from this.<br>
</span></blockquote>
<br>
This is controlled using from_user in the endpoint but does not currently work, there is a fix up[1] to improve this.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
2. From experiments, I've found that if INVITE messages from IPBX box do<br>
not contain a From field with a callerid matching the peer section in<br>
ITSP configuration, ITSP doesn't match incoming INVITE with appropriate<br>
endpoint.<br>
Is it possible and desirable to change ITSP box config so that any<br>
INVITE coming from the same IP+port attached to previous REGISTER would<br>
be matched appropriately ?<br>
</blockquote>
<br></span>
chan_pjsip does not currently support matching based on the IP address+port that a device has registered from. You can only explicitly configure this right now.<br>
<br>
[1] <a href="https://gerrit.asterisk.org/#/c/2373/" rel="noreferrer" target="_blank">https://gerrit.asterisk.org/#/c/2373/</a><span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Joshua Colp<br>
Digium, Inc. | Senior Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br>
Check us out at: <a href="http://www.digium.com" rel="noreferrer" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" rel="noreferrer" target="_blank">www.asterisk.org</a><br>
<br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
              <a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
  <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</font></span></blockquote></div><br><br></div><div class="gmail_extra">Thank you very much for those detailed and exact answers.<br></div></div>