<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Jan 4, 2015 at 3:29 PM, Antonio Gómez Soto <span dir="ltr"><<a href="mailto:antonio.gomez.soto@gmail.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=antonio.gomez.soto@gmail.com&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">antonio.gomez.soto@gmail.com</a>></span> 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"><div dir="ltr">Hello,<div><br></div><div>I am slightly confused by the difference between chan_sip and pjsip.</div><div>Especially the new (to me) objects aor and contact.</div><div><br></div><div>I am having trouble mapping them to the typical SIP configuration settings on a phone.</div></div></blockquote><div><br></div><div>There's some info on the wiki here...</div><div><a href="https://wiki.asterisk.org/wiki/display/AST/Migrating+from+chan_sip+to+res_pjsip" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Migrating+from+chan_sip+to+res_pjsip</a><br></div><div> </div><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 dir="ltr"><div><br></div><div>Suppose I have a phone with two line buttons, for two extension numbers. Now,</div><div>I think that means two 'endpoints' in pjsip right?</div></div></blockquote><div><br></div><div>Generally correct, if you set up 1 extension to 1 endpoint.</div><div> </div><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 dir="ltr"><div>But what exactly is the difference</div><div>between aor and contact?</div></div></blockquote><div><br></div><div>AORs contain contacts.  They can be permanent or dynamic.   You'd define permanent contacts for trunks or devices where the peer ip address is knon using the 'contact' parameter.   If you don't define any contacts, then dynamic is assumed and the aor/endpoint will accept inbound registrations.   You'd use dynamic for most phones.</div><div> </div><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 dir="ltr"><div>So why does aor have a max_contacts value?</div></div></blockquote><div><br></div><div>If you're accepting registrations, max contacts defines how many peers will be allowed to register.  For most scenarios it's 1 but you COULD have 2 devices register to the same endpoint.  When a call is sent to that endpoint, the first available contact will be dialed.</div><div><br></div><div> </div><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 dir="ltr"><div>And where do phone registrations fit in, where are those kept anyway?<br></div></div></blockquote><div><br></div><div>See above.</div><div><br></div><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 dir="ltr"><div><br></div><div>I hope someone can shed some light for me here.</div><div><br></div><div>Thanks,</div><div>Antonio</div><div><br><div><br></div></div></div></blockquote><div><br></div></div></div></div>