event subscribe forever?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

event subscribe forever?

robert

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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: event subscribe forever?

Richard Phernambucq
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]).  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].
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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: event subscribe forever?

xiaofeng
In reply to this post by robert


On Wed, Sep 13, 2017 at 7:43 AM, Mundkowsky, Robert <[hidden email]> 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?


You probably can subscribe an event in the opensips config script.

 

 

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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--
xiaofeng

--
gpg key fingerprint:
2048R/5E63005B
C84F 671F 70B7 7330 4726  5EC8 02BC CBA2 5E63 005B

--
trans-zh_cn mailing list
[hidden email]
https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: event subscribe forever?

robert
In reply to this post by Richard Phernambucq

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:[hidden email]] On Behalf Of Richard Phernambucq
Sent: Wednesday, September 13, 2017 2:01 AM
To: [hidden email]
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]).  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].

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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 



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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: event subscribe forever?

robert
In reply to this post by Richard Phernambucq

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: [hidden email]
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 [[hidden email]] On Behalf Of Richard Phernambucq
Sent: Wednesday, September 13, 2017 2:01 AM
To: [hidden email]
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]).  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].

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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 



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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: event subscribe forever?

robert
In reply to this post by xiaofeng

Thanks, that seems to work.

 

Robert Mundkowsky

 

From: Users [mailto:[hidden email]] On Behalf Of xiaofeng
Sent: Wednesday, September 13, 2017 5:53 AM
To: OpenSIPS users mailling list <[hidden email]>
Subject: Re: [OpenSIPS-Users] event subscribe forever?

 

 

 

On Wed, Sep 13, 2017 at 7:43 AM, Mundkowsky, Robert <[hidden email]> 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?

 

You probably can subscribe an event in the opensips config script.

 

 

 

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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



 

--

xiaofeng

--
gpg key fingerprint:
2048R/5E63005B
C84F 671F 70B7 7330 4726  5EC8 02BC CBA2 5E63 005B

--
trans-zh_cn mailing list
[hidden email]
https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn



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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users