Anton Teyhrib
2016-Dec-29 19:43 UTC
[asterisk-users] Saving endpoint statuses to database with pjsip and realtime
Hi all, Is there any native way to save endpoint statuses to database? I use asterisk 13 with pjsip and realtime, and didn't found proper way. I read that there is config parameter in sip.conf: rtupdate=yes. But how can I do that with pjsip? Or I should use sip.conf with pjsip simultaneously. Or is there any kind of hooks, which allows make custom action on endpoint status change. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161230/bc67aa1c/attachment.html>
Joshua Colp
2017-Jan-03 18:05 UTC
[asterisk-users] Saving endpoint statuses to database with pjsip and realtime
On Thu, Dec 29, 2016, at 03:43 PM, Anton Teyhrib wrote:> Hi all, > Is there any native way to save endpoint statuses to database? > I use asterisk 13 with pjsip and realtime, and didn't found proper way. > I read that there is config parameter in sip.conf: rtupdate=yes. But how > can I do that with pjsip? Or I should use sip.conf with pjsip > simultaneously. > Or is there any kind of hooks, which allows make custom action on > endpoint > status change. > Thanks.Qualify status itself is only kept locally. Information about the registered address and expiration time is kept as a contact in the ps_contacts table. If you want to react based on stuff you can use AMI to connect and receive events. What are you looking to achieve/do? -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Anton Teyhrib
2017-Jan-03 18:12 UTC
[asterisk-users] Saving endpoint statuses to database with pjsip and realtime
Hi Joshua! Thank you for response. I want to show user availability in external web application (ruby). I also found that ARI can do this. What is the best way to do that? ARI or AMI? 3 ???. 2017 ?. 11:06 PM ???????????? "Joshua Colp" <jcolp at digium.com> ???????: On Thu, Dec 29, 2016, at 03:43 PM, Anton Teyhrib wrote:> Hi all, > Is there any native way to save endpoint statuses to database? > I use asterisk 13 with pjsip and realtime, and didn't found proper way. > I read that there is config parameter in sip.conf: rtupdate=yes. But how > can I do that with pjsip? Or I should use sip.conf with pjsip > simultaneously. > Or is there any kind of hooks, which allows make custom action on > endpoint > status change. > Thanks.Qualify status itself is only kept locally. Information about the registered address and expiration time is kept as a contact in the ps_contacts table. If you want to react based on stuff you can use AMI to connect and receive events. What are you looking to achieve/do? -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk. org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170103/978cfd7b/attachment.html>
Joshua Colp
2017-Jan-03 18:13 UTC
[asterisk-users] Saving endpoint statuses to database with pjsip and realtime
On Tue, Jan 3, 2017, at 02:12 PM, Anton Teyhrib wrote:> Hi Joshua! > Thank you for response. > I want to show user availability in external web application (ruby). I > also > found that ARI can do this. What is the best way to do that? ARI or AMI?Either should be able to do what you need, but ARI would likely be easier to use. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org