Hello, I am moving from realtime chan_sip to pjsip and one of the problem I am facing is the lack of "sipregs". With chan_sip, when an extension registers, the server where it has registered to is stored in sipregs. Is there something similar in pjsip? How can I find on which server the pjsip extension has registered to? Leandro -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160702/14021d45/attachment.html>
Hi Leandro, I believe if you check /usr/local/src/astersisk-13.9.1/contrib/mysql you will find a .SQL file that would build the default tables for you. Looking in the file, it appears there is a table created called `sippeers` which has a column `regserver VARCHAR(20),` It will also create the other PJSIP-related tables such as ps_endpoints, ps_aors, etc. I could be mistaken but perhaps `sippeers` is the table you?re looking for. Thanks Derek B. From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Leandro Dardini Sent: July 2, 2016 2:59 PM To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Subject: [asterisk-users] Registration server with PJSIP Hello, I am moving from realtime chan_sip to pjsip and one of the problem I am facing is the lack of "sipregs". With chan_sip, when an extension registers, the server where it has registered to is stored in sipregs. Is there something similar in pjsip? How can I find on which server the pjsip extension has registered to? Leandro -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160702/45d1fdd6/attachment.html>
On 2016-07-02 15:16, Derek Bolichowski wrote:> Hi Leandro, > > I believe if you check /usr/local/src/astersisk-13.9.1/contrib/mysql you will find a .SQL file that would build the default tables for you. > > Looking in the file, it appears there is a table created called `sippeers` which has a column `regserver VARCHAR(20),` > > It will also create the other PJSIP-related tables such as ps_endpoints, ps_aors, etc. > > I could be mistaken but perhaps `sippeers` is the table you're looking for. > > Thanks > > Derek B. > > FROM: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] ON BEHALF OF Leandro Dardini > SENT: July 2, 2016 2:59 PM > TO: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> > SUBJECT: [asterisk-users] Registration server with PJSIP > > Hello, > > I am moving from realtime chan_sip to pjsip and one of the problem I am facing is the lack of "sipregs". With chan_sip, when an extension registers, the server where it has registered to is stored in sipregs. > > Is there something similar in pjsip? How can I find on which server the pjsip extension has registered to?Actually sippeers is the table for realtime sip and not related to pjsip at all. I do not know if there is an equivalent field for the pjsip tables. -- Telecomunicaciones Abiertas de M?xico S.A. de C.V. Carlos Ch?vez dCAP #1349 +52 (55)9116-91161 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160703/a7148e05/attachment.html>
On Sat, Jul 2, 2016 at 12:59 PM, Leandro Dardini <ldardini at gmail.com> wrote:> Hello, > I am moving from realtime chan_sip to pjsip and one of the problem I am > facing is the lack of "sipregs". With chan_sip, when an extension > registers, the server where it has registered to is stored in sipregs. > > Is there something similar in pjsip? How can I find on which server the > pjsip extension has registered to? >Incoming registrations for pjsip are stored in the ps_contacts table. In Asterisk 13.10, a new column (reg_server) was added to store the registration server. Since 13.10 hasn't been released yet, you'll need to download the latest release candidate which is RC1. [1] RC2 should be released later in the week. [1] http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13.10.0-rc1.tar.gz> > Leandro > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- George Joseph Digium, Inc. | Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160704/28d765fd/attachment.html>