[OpenSIPS-Users] event subscribe forever?

Mundkowsky, Robert rmundkowsky at ets.org
Wed Sep 13 09:15:51 EDT 2017


But thanks for your inputs!  Was starting to think I was the only one on the forum.

Robert Mundkowsky

From: Mundkowsky, Robert
Sent: Wednesday, September 13, 2017 9:15 AM
To: users at lists.opensips.org
Subject: RE: [OpenSIPS-Users] event subscribe forever?

I was referring to subscribing to openSIPS events, not the SIP SUBSCRIBE message.

I believe I found the answer which is, you can subscribe in the openSIPS config file and then the subscribe is permanent by default where as if you try to subscribe via XMLRPC or such then the events must expire.  And trying to re-subscribe from XMLRPC has a few problems including seems openSIPS does not like you to have duplicate subscriptions, so you would have to unsubscribe and then re-subscribe and you might miss events between these actions.

Robert Mundkowsky

From: Users [mailto:users-bounces at lists.opensips.org] On Behalf Of Richard Phernambucq
Sent: Wednesday, September 13, 2017 2:01 AM
To: users at lists.opensips.org<mailto:users at lists.opensips.org>
Subject: Re: [OpenSIPS-Users] event subscribe forever?

Hi Robert,

Yes, you have to refresh your subscription periodically.

RFC 6665 3.1.1:

SUBSCRIBE requests SHOULD contain an "Expires" header field (defined

in [RFC3261<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftools.ietf.org%2Fhtml%2Frfc3261&data=02%7C01%7Crmundkowsky%40ets.org%7C50036eda55c34132602c08d4fa6d122b%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636408793756459224&sdata=spQV3PRjuq%2BIKZ4DUJtZ6hLVTt5OOtN1uC9mBUeIDFk%3D&reserved=0>]).  This expires value indicates the duration of the

subscription.  In order to keep subscriptions effective beyond the

duration communicated in the "Expires" header field, subscribers need

to refresh subscriptions on a periodic basis using a new SUBSCRIBE

request on the same dialog as defined in [RFC3261<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftools.ietf.org%2Fhtml%2Frfc3261&data=02%7C01%7Crmundkowsky%40ets.org%7C50036eda55c34132602c08d4fa6d122b%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636408793756459224&sdata=spQV3PRjuq%2BIKZ4DUJtZ6hLVTt5OOtN1uC9mBUeIDFk%3D&reserved=0>].
Greetz,
Richard
On 13-9-2017 01:43, Mundkowsky, Robert wrote:
Is there a way to subscribe to event forever?

Seems the default is 1 hour (for event_subscribe), so I guess you have to constantly re-subscribe to events?

Robert

________________________________

This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited.


Thank you for your compliance.

________________________________



_______________________________________________

Users mailing list

Users at lists.opensips.org<mailto:Users at lists.opensips.org>

http://lists.opensips.org/cgi-bin/mailman/listinfo/users<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fusers&data=02%7C01%7Crmundkowsky%40ets.org%7C50036eda55c34132602c08d4fa6d122b%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636408793756459224&sdata=LEGUGolDjawjru1oWGVdcEGqLLONBYGEXvR3bIeALwg%3D&reserved=0>


________________________________

This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited.


Thank you for your compliance.

________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170913/60b8a8b2/attachment-0001.html>


More information about the Users mailing list