<div dir="ltr"><div>On 2 February 2015 at 15:12, Joshua Colp <span dir="ltr"><<a href="mailto:jcolp@digium.com" target="_blank">jcolp@digium.com</a>></span> wrote:<br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">Sunny wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hello,<br>
<br>
<br>
In Asterisk 11 it is possible to set extensions on DB table (sipppers)<br>
and also in sip.conf.<br>
<br>
But in Asterisk 13 apparently this is not possible: as I tried to set in<br>
ps_endpoints and also in pjsip.conf but only the realtime endpoints are<br>
loaded.<br>
<br>
Is there a way to use realtime + static modes at the same time for the<br>
ps_endpoints lookup using PJSIP.<br>
</blockquote>
<br></div></div>
Yes. The sorcery.conf file controls this and allows specifying multiple things. It would be like follows:<br>
<br>
[res_pjsip]<br>
endpoint=realtime,ps_endpoints<br>
endpoint=config,pjsip.conf,<u></u>criteria=type=endpoint<br>
<br>
Realtime will get queried first followed by the configuration file. If you want to change the order then swap their placement.<br>
<br>
Cheers,<span class=""><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" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a><br>
<br>
-- <br>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" 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" 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" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</font></span></blockquote></div><br></div><div class="gmail_extra"><div>Yeah, it works now. Thank you Joshua!</div><div><br></div><div>However I'm getting following error:</div><div>[2015-02-02 16:55:56] ERROR[32605] res_sorcery_config.c: Could not create an object of type 'endpoint' with id '192.168.1.3' from configuration file 'pjsip.conf'</div><div><br></div><div>my endpoint is defined as:</div><div>[192.168.1.3]</div><div>type = endpoint</div><div>transport=simpletrans</div><div>context = inbound</div><div>dtmf_mode = inband</div><div>disallow = all</div><div>allow = alaw</div><div>allow = ulaw</div><div>aors = 192.168.1.3</div><div><br></div><div>Thanks,<br></div></div></div>