Is this normal? Reconnect every 5 minutes?

OK
Oli Kah
Wed, Jun 22, 2016 3:50 PM

Hi there,

currently I am using pjsua with Python 2.7 and everything works quite nicely. However what is strange is that pjsua seems to reconnect to the SIP server every 5 minutes?! Is this a default behaviour that can be configured somehow or what might be going on here?

What I see is that the SIP status becomes resent every 5 minutes (200 OK) although I do not manually invoke a reconnect! I assume pjsip internally and automatically reconnects to the server. But why does it do that?

Thank you =)

Kind regards,

Oliver

HR
Harald Radke
Wed, Jun 22, 2016 4:35 PM

without any further information its hard to say whats going on, but coult it be the periodically refreshed register?

Regards, Harry

Von meinem iPad gesendet

Am 22.06.2016 um 17:50 schrieb Oli Kah mj_fn@web.de:

Hi there,

currently I am using pjsua with Python 2.7 and everything works quite nicely. However what is strange is that pjsua seems to reconnect to the SIP server every 5 minutes?! Is this a default behaviour that can be configured somehow or what might be going on here?

What I see is that the SIP status becomes resent every 5 minutes (200 OK) although I do not manually invoke a reconnect! I assume pjsip internally and automatically reconnects to the server. But why does it do that?

Thank you =)

Kind regards,
Oliver


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

without any further information its hard to say whats going on, but coult it be the periodically refreshed register? Regards, Harry Von meinem iPad gesendet > Am 22.06.2016 um 17:50 schrieb Oli Kah <mj_fn@web.de>: > > Hi there, > > currently I am using pjsua with Python 2.7 and everything works quite nicely. However what is strange is that pjsua seems to reconnect to the SIP server every 5 minutes?! Is this a default behaviour that can be configured somehow or what might be going on here? > > What I see is that the SIP status becomes resent every 5 minutes (200 OK) although I do not manually invoke a reconnect! I assume pjsip internally and automatically reconnects to the server. But why does it do that? > > Thank you =) > > Kind regards, > Oliver > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
DV
David Villasmil Govea
Wed, Jun 22, 2016 4:45 PM

Look at the "expire" in the register, i guess it's at 600 seconds (5
minutes). If so, yes, It's completely normal.
On Wed, Jun 22, 2016 at 12:36 PM Harald Radke harryrat@gmx.de wrote:

without any further information its hard to say whats going on, but coult
it be the periodically refreshed register?

Regards, Harry

Von meinem iPad gesendet

Am 22.06.2016 um 17:50 schrieb Oli Kah mj_fn@web.de:

Hi there,

currently I am using pjsua with Python 2.7 and everything works quite
nicely. However what is strange is that pjsua seems to reconnect to the SIP
server every 5 minutes?! Is this a default behaviour that can be configured
somehow or what might be going on here?

What I see is that the SIP status becomes resent every 5 minutes (200 OK)
although I do not manually invoke a reconnect! I assume pjsip internally
and automatically reconnects to the server. But why does it do that?

Thank you =)

Kind regards,
Oliver


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Look at the "expire" in the register, i guess it's at 600 seconds (5 minutes). If so, yes, It's completely normal. On Wed, Jun 22, 2016 at 12:36 PM Harald Radke <harryrat@gmx.de> wrote: > without any further information its hard to say whats going on, but coult > it be the periodically refreshed register? > > Regards, Harry > > Von meinem iPad gesendet > > Am 22.06.2016 um 17:50 schrieb Oli Kah <mj_fn@web.de>: > > Hi there, > > currently I am using pjsua with Python 2.7 and everything works quite > nicely. However what is strange is that pjsua seems to reconnect to the SIP > server every 5 minutes?! Is this a default behaviour that can be configured > somehow or what might be going on here? > > What I see is that the SIP status becomes resent every 5 minutes (200 OK) > although I do not manually invoke a reconnect! I assume pjsip internally > and automatically reconnects to the server. But why does it do that? > > Thank you =) > > Kind regards, > Oliver > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
OK
Oli Kah
Wed, Jun 22, 2016 7:53 PM

Ah, ok, thank you :) ...didn't know that a SIP connection could expire. That may be the case... I'll have a look!

But this auto-reconnect that is performed on expiration would not happen when there is an active call ongoing, right?

Currently I am using pjsip only as a kind of notification service and not to actually talk to someone. But I plan to do this, too at some point.

In the log files where I save the status that comes back from pjsua I saw these "200 OK"s which occur periodically and precisely every 5 minutes (=300 sec) - that looked a bit surprising to me.

But I'll see if there is an expiration time that might explain this behaviour.

Thanks!
Oli

Gesendet: Mittwoch, 22. Juni 2016 um 18:45 Uhr
Von: "David Villasmil Govea" <david.villasmil@gmail.com>
An: "pjsip list" <pjsip@lists.pjsip.org>
Betreff: Re: [pjsip] Is this normal? Reconnect every 5 minutes?

Look at the "expire" in the register, i guess it's at 600 seconds (5 minutes). If so, yes, It's completely normal. On Wed, Jun 22, 2016 at 12:36 PM Harald Radke <harryrat@gmx.de> wrote:

without any further information its hard to say whats going on, but coult it be the periodically refreshed register?

Regards, Harry

Von meinem iPad gesendet

Am 22.06.2016 um 17:50 schrieb Oli Kah <mj_fn@web.de>:

Hi there,

currently I am using pjsua with Python 2.7 and everything works quite nicely. However what is strange is that pjsua seems to reconnect to the SIP server every 5 minutes?! Is this a default behaviour that can be configured somehow or what might be going on here?

What I see is that the SIP status becomes resent every 5 minutes (200 OK) although I do not manually invoke a reconnect! I assume pjsip internally and automatically reconnects to the server. But why does it do that?

Thank you =)

Kind regards,

Oliver

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

RP
Rodrigo Pimenta Carvalho
Wed, Jun 22, 2016 8:18 PM

This behaviour is a SIP one. This is normal.

I don't know how to reconfigure pjsip to change the frequency of SIP REGISTERs.

The SIP REGISTER message is necessary to tell to the SIP proxy (SIP server) that the client is still alive. That is, the SIP server has the condition to knows that the client is still online. If the register expires and there is no more SIP REGISTERS, the SIP server will consider that the client is offline and will delete the client register from the registrar. Is the client that should decide how long a register will be valid. In the current case, I guess 300 secs is hardcoded somewhere.

Best regards.

RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979


De: pjsip pjsip-bounces@lists.pjsip.org em nome de Oli Kah mj_fn@web.de
Enviado: quarta-feira, 22 de junho de 2016 16:53
Para: pjsip@lists.pjsip.org
Assunto: Re: [pjsip] Is this normal? Reconnect every 5 minutes?

Ah, ok, thank you :) ...didn't know that a SIP connection could expire. That may be the case... I'll have a look!
But this auto-reconnect that is performed on expiration would not happen when there is an active call ongoing, right?

Currently I am using pjsip only as a kind of notification service and not to actually talk to someone. But I plan to do this, too at some point.
In the log files where I save the status that comes back from pjsua I saw these "200 OK"s which occur periodically and precisely every 5 minutes (=300 sec)  - that looked a bit surprising to me.

But I'll see if there is an expiration time that might explain this behaviour.

Thanks!
Oli

Gesendet: Mittwoch, 22. Juni 2016 um 18:45 Uhr
Von: "David Villasmil Govea" david.villasmil@gmail.com
An: "pjsip list" pjsip@lists.pjsip.org
Betreff: Re: [pjsip] Is this normal? Reconnect every 5 minutes?
Look at the "expire" in the register, i guess it's at 600 seconds (5 minutes). If so, yes, It's completely normal.
On Wed, Jun 22, 2016 at 12:36 PM Harald Radke harryrat@gmx.de wrote:
without any further information its hard to say whats going on, but coult it be the periodically refreshed register?

Regards, Harry

Von meinem iPad gesendet

Am 22.06.2016 um 17:50 schrieb Oli Kah mj_fn@web.de:

Hi there,

currently I am using pjsua with Python 2.7 and everything works quite nicely. However what is strange is that pjsua seems to reconnect to the SIP server every 5 minutes?! Is this a default behaviour that can be configured somehow or what might be going on here?

What I see is that the SIP status becomes resent every 5 minutes (200 OK) although I do not manually invoke a reconnect! I assume pjsip internally and automatically reconnects to the server. But why does it do that?

Thank you =)

Kind regards,
Oliver


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

This behaviour is a SIP one. This is normal. I don't know how to reconfigure pjsip to change the frequency of SIP REGISTERs. The SIP REGISTER message is necessary to tell to the SIP proxy (SIP server) that the client is still alive. That is, the SIP server has the condition to knows that the client is still online. If the register expires and there is no more SIP REGISTERS, the SIP server will consider that the client is offline and will delete the client register from the registrar. Is the client that should decide how long a register will be valid. In the current case, I guess 300 secs is hardcoded somewhere. Best regards. RODRIGO PIMENTA CARVALHO Inatel Competence Center Software Ph: +55 35 3471 9200 RAMAL 979 ________________________________ De: pjsip <pjsip-bounces@lists.pjsip.org> em nome de Oli Kah <mj_fn@web.de> Enviado: quarta-feira, 22 de junho de 2016 16:53 Para: pjsip@lists.pjsip.org Assunto: Re: [pjsip] Is this normal? Reconnect every 5 minutes? Ah, ok, thank you :) ...didn't know that a SIP connection could expire. That may be the case... I'll have a look! But this auto-reconnect that is performed on expiration would not happen when there is an active call ongoing, right? Currently I am using pjsip only as a kind of notification service and not to actually talk to someone. But I plan to do this, too at some point. In the log files where I save the status that comes back from pjsua I saw these "200 OK"s which occur periodically and precisely every 5 minutes (=300 sec) - that looked a bit surprising to me. But I'll see if there is an expiration time that might explain this behaviour. Thanks! Oli Gesendet: Mittwoch, 22. Juni 2016 um 18:45 Uhr Von: "David Villasmil Govea" <david.villasmil@gmail.com> An: "pjsip list" <pjsip@lists.pjsip.org> Betreff: Re: [pjsip] Is this normal? Reconnect every 5 minutes? Look at the "expire" in the register, i guess it's at 600 seconds (5 minutes). If so, yes, It's completely normal. On Wed, Jun 22, 2016 at 12:36 PM Harald Radke <harryrat@gmx.de> wrote: without any further information its hard to say whats going on, but coult it be the periodically refreshed register? Regards, Harry Von meinem iPad gesendet Am 22.06.2016 um 17:50 schrieb Oli Kah <mj_fn@web.de>: Hi there, currently I am using pjsua with Python 2.7 and everything works quite nicely. However what is strange is that pjsua seems to reconnect to the SIP server every 5 minutes?! Is this a default behaviour that can be configured somehow or what might be going on here? What I see is that the SIP status becomes resent every 5 minutes (200 OK) although I do not manually invoke a reconnect! I assume pjsip internally and automatically reconnects to the server. But why does it do that? Thank you =) Kind regards, Oliver _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
MB
Michael Barthold
Thu, Jun 23, 2016 5:36 AM

You need this for several reasons. Mobile devices may change their ip quite frequently and this re-register updates your connection to the server.
You control that in the account config structure. AccountConfig.GetRegConfig().set... there you have the flags for registertimeout, and the intervals that control the sip engine.

300 is the default of pjsip.
Our mobile apps run at 90 seconds while active and switch to 900 (15 minutes) when in background/sleep.

mit freundlichen Grüßen | kind regards

Michael Barthold
Senior Software Architect

UNICOPE GmbH | Wien
T +43 5 06216-5285

[Leitbetriebe]

Von: pjsip [mailto:pjsip-bounces@lists.pjsip.org] Im Auftrag von Rodrigo Pimenta Carvalho
Gesendet: Mittwoch, 22. Juni 2016 22:19
An: pjsip@lists.pjsip.org
Betreff: Re: [pjsip] Is this normal? Reconnect every 5 minutes?

This behaviour is a SIP one. This is normal.

I don't know how to reconfigure pjsip to change the frequency of SIP REGISTERs.

The SIP REGISTER message is necessary to tell to the SIP proxy (SIP server) that the client is still alive. That is, the SIP server has the condition to knows that the client is still online. If the register expires and there is no more SIP REGISTERS, the SIP server will consider that the client is offline and will delete the client register from the registrar. Is the client that should decide how long a register will be valid. In the current case, I guess 300 secs is hardcoded somewhere.

Best regards.

RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979


De: pjsip <pjsip-bounces@lists.pjsip.orgmailto:pjsip-bounces@lists.pjsip.org> em nome de Oli Kah <mj_fn@web.demailto:mj_fn@web.de>
Enviado: quarta-feira, 22 de junho de 2016 16:53
Para: pjsip@lists.pjsip.orgmailto:pjsip@lists.pjsip.org
Assunto: Re: [pjsip] Is this normal? Reconnect every 5 minutes?

Ah, ok, thank you :) ...didn't know that a SIP connection could expire. That may be the case... I'll have a look!
But this auto-reconnect that is performed on expiration would not happen when there is an active call ongoing, right?

Currently I am using pjsip only as a kind of notification service and not to actually talk to someone. But I plan to do this, too at some point.
In the log files where I save the status that comes back from pjsua I saw these "200 OK"s which occur periodically and precisely every 5 minutes (=300 sec)  - that looked a bit surprising to me.

But I'll see if there is an expiration time that might explain this behaviour.

Thanks!
Oli

Gesendet: Mittwoch, 22. Juni 2016 um 18:45 Uhr
Von: "David Villasmil Govea" <david.villasmil@gmail.commailto:david.villasmil@gmail.com>
An: "pjsip list" <pjsip@lists.pjsip.orgmailto:pjsip@lists.pjsip.org>
Betreff: Re: [pjsip] Is this normal? Reconnect every 5 minutes?
Look at the "expire" in the register, i guess it's at 600 seconds (5 minutes). If so, yes, It's completely normal.
On Wed, Jun 22, 2016 at 12:36 PM Harald Radke harryrat@gmx.de wrote:
without any further information its hard to say whats going on, but coult it be the periodically refreshed register?

Regards, Harry

Von meinem iPad gesendet

Am 22.06.2016 um 17:50 schrieb Oli Kah mj_fn@web.de:

Hi there,

currently I am using pjsua with Python 2.7 and everything works quite nicely. However what is strange is that pjsua seems to reconnect to the SIP server every 5 minutes?! Is this a default behaviour that can be configured somehow or what might be going on here?

What I see is that the SIP status becomes resent every 5 minutes (200 OK) although I do not manually invoke a reconnect! I assume pjsip internally and automatically reconnects to the server. But why does it do that?

Thank you =)

Kind regards,
Oliver


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.orgmailto:pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

You need this for several reasons. Mobile devices may change their ip quite frequently and this re-register updates your connection to the server. You control that in the account config structure. AccountConfig.GetRegConfig().set... there you have the flags for registertimeout, and the intervals that control the sip engine. 300 is the default of pjsip. Our mobile apps run at 90 seconds while active and switch to 900 (15 minutes) when in background/sleep. mit freundlichen Grüßen | kind regards Michael Barthold Senior Software Architect ---------------------------------------------- UNICOPE GmbH | Wien T +43 5 06216-5285 ---------------------------------------------- [Leitbetriebe] Von: pjsip [mailto:pjsip-bounces@lists.pjsip.org] Im Auftrag von Rodrigo Pimenta Carvalho Gesendet: Mittwoch, 22. Juni 2016 22:19 An: pjsip@lists.pjsip.org Betreff: Re: [pjsip] Is this normal? Reconnect every 5 minutes? This behaviour is a SIP one. This is normal. I don't know how to reconfigure pjsip to change the frequency of SIP REGISTERs. The SIP REGISTER message is necessary to tell to the SIP proxy (SIP server) that the client is still alive. That is, the SIP server has the condition to knows that the client is still online. If the register expires and there is no more SIP REGISTERS, the SIP server will consider that the client is offline and will delete the client register from the registrar. Is the client that should decide how long a register will be valid. In the current case, I guess 300 secs is hardcoded somewhere. Best regards. RODRIGO PIMENTA CARVALHO Inatel Competence Center Software Ph: +55 35 3471 9200 RAMAL 979 ________________________________ De: pjsip <pjsip-bounces@lists.pjsip.org<mailto:pjsip-bounces@lists.pjsip.org>> em nome de Oli Kah <mj_fn@web.de<mailto:mj_fn@web.de>> Enviado: quarta-feira, 22 de junho de 2016 16:53 Para: pjsip@lists.pjsip.org<mailto:pjsip@lists.pjsip.org> Assunto: Re: [pjsip] Is this normal? Reconnect every 5 minutes? Ah, ok, thank you :) ...didn't know that a SIP connection could expire. That may be the case... I'll have a look! But this auto-reconnect that is performed on expiration would not happen when there is an active call ongoing, right? Currently I am using pjsip only as a kind of notification service and not to actually talk to someone. But I plan to do this, too at some point. In the log files where I save the status that comes back from pjsua I saw these "200 OK"s which occur periodically and precisely every 5 minutes (=300 sec) - that looked a bit surprising to me. But I'll see if there is an expiration time that might explain this behaviour. Thanks! Oli Gesendet: Mittwoch, 22. Juni 2016 um 18:45 Uhr Von: "David Villasmil Govea" <david.villasmil@gmail.com<mailto:david.villasmil@gmail.com>> An: "pjsip list" <pjsip@lists.pjsip.org<mailto:pjsip@lists.pjsip.org>> Betreff: Re: [pjsip] Is this normal? Reconnect every 5 minutes? Look at the "expire" in the register, i guess it's at 600 seconds (5 minutes). If so, yes, It's completely normal. On Wed, Jun 22, 2016 at 12:36 PM Harald Radke <harryrat@gmx.de> wrote: without any further information its hard to say whats going on, but coult it be the periodically refreshed register? Regards, Harry Von meinem iPad gesendet Am 22.06.2016 um 17:50 schrieb Oli Kah <mj_fn@web.de>: Hi there, currently I am using pjsua with Python 2.7 and everything works quite nicely. However what is strange is that pjsua seems to reconnect to the SIP server every 5 minutes?! Is this a default behaviour that can be configured somehow or what might be going on here? What I see is that the SIP status becomes resent every 5 minutes (200 OK) although I do not manually invoke a reconnect! I assume pjsip internally and automatically reconnects to the server. But why does it do that? Thank you =) Kind regards, Oliver _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org<mailto:pjsip@lists.pjsip.org> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
OK
Oli Kah
Thu, Jun 23, 2016 11:45 AM

Okay, thank you for the information :) And yes, that sounds pretty reasonable. I just wanted to be sure it's not anything else.

Cheers,

Oli

Gesendet: Donnerstag, 23. Juni 2016 um 07:36 Uhr
Von: "Michael Barthold" <Michael.Barthold@unicope.com>
An: "pjsip list" <pjsip@lists.pjsip.org>
Betreff: Re: [pjsip] Is this normal? Reconnect every 5 minutes?

You need this for several reasons. Mobile devices may change their ip quite frequently and this re-register updates your connection to the server.

You control that in the account config structure. AccountConfig.GetRegConfig().set… there you have the flags for registertimeout, and the intervals that control the sip engine.

300 is the default of pjsip.

Our mobile apps run at 90 seconds while active and switch to 900 (15 minutes) when in background/sleep.

mit freundlichen Grüßen | kind regards

Michael Barthold

Senior Software Architect

----------------------------------------------
UNICOPE GmbH | Wien

T +43 5 06216-5285

----------------------------------------------
Leitbetriebe

Von: pjsip [mailto:pjsip-bounces@lists.pjsip.org] Im Auftrag von Rodrigo Pimenta Carvalho
Gesendet: Mittwoch, 22. Juni 2016 22:19
An: pjsip@lists.pjsip.org
Betreff: Re: [pjsip] Is this normal? Reconnect every 5 minutes?

This behaviour is a SIP one. This is normal.

I don't know how to reconfigure pjsip to change the frequency of SIP REGISTERs.

The SIP REGISTER message is necessary to tell to the SIP proxy (SIP server) that the client is still alive. That is, the SIP server has the condition to knows that the client is still online. If the register expires and there is no more SIP REGISTERS, the SIP server will consider that the client is offline and will delete the client register from the registrar. Is the client that should decide how long a register will be valid. In the current case, I guess 300 secs is hardcoded somewhere.

Best regards.

RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979


De: pjsip <pjsip-bounces@lists.pjsip.org> em nome de Oli Kah <mj_fn@web.de>
Enviado: quarta-feira, 22 de junho de 2016 16:53
Para: pjsip@lists.pjsip.org
Assunto: Re: [pjsip] Is this normal? Reconnect every 5 minutes?

Ah, ok, thank you :) ...didn't know that a SIP connection could expire. That may be the case... I'll have a look!

But this auto-reconnect that is performed on expiration would not happen when there is an active call ongoing, right?

Currently I am using pjsip only as a kind of notification service and not to actually talk to someone. But I plan to do this, too at some point.

In the log files where I save the status that comes back from pjsua I saw these "200 OK"s which occur periodically and precisely every 5 minutes (=300 sec) - that looked a bit surprising to me.

But I'll see if there is an expiration time that might explain this behaviour.

Thanks!
Oli

Gesendet: Mittwoch, 22. Juni 2016 um 18:45 Uhr
Von: "David Villasmil Govea" <david.villasmil@gmail.com>
An: "pjsip list" <pjsip@lists.pjsip.org>
Betreff: Re: [pjsip] Is this normal? Reconnect every 5 minutes?

Look at the "expire" in the register, i guess it's at 600 seconds (5 minutes). If so, yes, It's completely normal.

On Wed, Jun 22, 2016 at 12:36 PM Harald Radke <<a>harryrat@gmx.de</a>> wrote:

without any further information its hard to say whats going on, but coult it be the periodically refreshed register?

Regards, Harry

Von meinem iPad gesendet

Am 22.06.2016 um 17:50 schrieb Oli Kah <<a>mj_fn@web.de</a>>:

Hi there,

currently I am using pjsua with Python 2.7 and everything works quite nicely. However what is strange is that pjsua seems to reconnect to the SIP server every 5 minutes?! Is this a default behaviour that can be configured somehow or what might be going on here?

What I see is that the SIP status becomes resent every 5 minutes (200 OK) although I do not manually invoke a reconnect! I assume pjsip internally and automatically reconnects to the server. But why does it do that?

Thank you =)

Kind regards,

Oliver

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
<a>pjsip@lists.pjsip.org</a>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
<a>pjsip@lists.pjsip.org</a>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org