Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Loss of devices registration (pjsip)


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
serov.d.p at gmail.com
Guest





PostPosted: Mon Mar 21, 2016 12:58 pm    Post subject: [asterisk-users] Loss of devices registration (pjsip) Reply with quote

Good day.

Asterisk 13.7.2, res_pjsip.
There is a problem of loss of registration of several devices. This
happens not on all devices, but problem devices a lot.
Below is the log of registration of a contact of one device.

Is suspect two things:
1. delete a contact after the contact is added. But, like, it's a
feature of code that may already be fixed.
2. deleting a contact much earlier than the 90 seconds specified during
the registration

Would be grateful for any clues.

Dmitriy Serov.

expiration settings:
[common-aor](!)
type=aor
qualify_frequency=60
default_expiration=120
maximum_expiration=600
minimum_expiration=90

log:
[2016-03-21 20:39:58] VERBOSE[30251] res_pjsip_registrar.c: Added
contact 'sip:17367@46.39.229.18:37910' to AOR '17367' with expiration of
90 seconds
[2016-03-21 20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/sip:17367@46.39.229.18:37910 has been created
[2016-03-21 20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/sip:17367@46.39.229.18:27143 has been deleted
[2016-03-21 20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/sip:17367@46.39.229.18:37910 is now Reachable. RTT:
41.882 msec
[2016-03-21 20:41:01] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/sip:17367@46.39.229.18:37910 is now Unreachable. RTT:
0.000 msec
[2016-03-21 20:41:06] VERBOSE[3827] res_pjsip_registrar.c: Added contact
'sip:17367@46.39.229.18:60105' to AOR '17367' with expiration of 90 seconds
[2016-03-21 20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/sip:17367@46.39.229.18:60105 has been created
[2016-03-21 20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/sip:17367@46.39.229.18:37910 has been deleted
[2016-03-21 20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/sip:17367@46.39.229.18:60105 is now Reachable. RTT:
44.031 msec
[2016-03-21 20:42:09] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/sip:17367@46.39.229.18:60105 is now Unreachable. RTT:
0.000 msec
[2016-03-21 20:42:14] VERBOSE[3827] res_pjsip_registrar.c: Added contact
'sip:17367@46.39.229.18:52836' to AOR '17367' with expiration of 90 seconds
[2016-03-21 20:42:14] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/sip:17367@46.39.229.18:52836 has been created
[2016-03-21 20:42:14] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/sip:17367@46.39.229.18:60105 has been deleted
[2016-03-21 20:42:14] VERBOSE[28019] res_pjsip/pjsip_configuration.c:
Contact 17367/sip:17367@46.39.229.18:52836 is now Reachable. RTT:
40.032 msec


--
_____________________________________________________________________
-- 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
Back to top
ctrlz.network at gmail...
Guest





PostPosted: Mon Mar 21, 2016 2:49 pm    Post subject: [asterisk-users] Loss of devices registration (pjsip) Reply with quote

Hello guys,


I need some help.


I have a client coming who wants to assign 5 different numbers to one virtual employee SIP phone at his desk or softphone (Zoiper).


which I can assign for the incoming or outgoing both.


but the problem is which I might not understanding enough, that,
 
e.g. when line 1 calls the virtual employee will answer “hello this is xyz company how can I help you”
when line 2 calls the virtual employee will answer “hello this is abc company how can I help you”
 
So it is important the employee can recognize which line is calling as they cannot say the wrong company name by mistake!


please let me know if there is any possible ways. 


currently I have my freeepbx server which I have installed in a VPS server. so all my ZOIPER extension is registered to the Freepbx server with IAX protocol. and I have another Asterisk server at my local office for using SIP phones. basically my both server are connected with IAX protocol as SIP port are blocked in my country.


please help if it's possible. thanks in advance


On Mon, Mar 21, 2016 at 11:58 PM, Dmitriy Serov <serov.d.p@gmail.com (serov.d.p@gmail.com)> wrote:
Quote:
Good day.

Asterisk 13.7.2, res_pjsip.
There is a problem of loss of registration of several devices. This happens not on all devices, but problem devices a lot.
Below is the log of registration of a contact of one device.

Is suspect two things:
1. delete a contact after the contact is added. But, like, it's a feature of code that may already be fixed.
2. deleting a contact much earlier than the 90 seconds specified during the registration

Would be grateful for any clues.

Dmitriy Serov.

expiration settings:
[common-aor](!)
type=aor
qualify_frequency=60
default_expiration=120
maximum_expiration=600
minimum_expiration=90

log:
[2016-03-21 20:39:58] VERBOSE[30251] res_pjsip_registrar.c: Added contact 'sip:17367@46.39.229.18:37910' to AOR '17367' with expiration of 90 seconds
[2016-03-21 20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 has been created
[2016-03-21 20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:27143 has been deleted
[2016-03-21 20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 is now Reachable.  RTT: 41.882 msec
[2016-03-21 20:41:01] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 is now Unreachable.  RTT: 0.000 msec
[2016-03-21 20:41:06] VERBOSE[3827] res_pjsip_registrar.c: Added contact 'sip:17367@46.39.229.18:60105' to AOR '17367' with expiration of 90 seconds
[2016-03-21 20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:60105 has been created
[2016-03-21 20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 has been deleted
[2016-03-21 20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:60105 is now Reachable.  RTT: 44.031 msec
[2016-03-21 20:42:09] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:60105 is now Unreachable.  RTT: 0.000 msec
[2016-03-21 20:42:14] VERBOSE[3827] res_pjsip_registrar.c: Added contact 'sip:17367@46.39.229.18:52836' to AOR '17367' with expiration of 90 seconds
[2016-03-21 20:42:14] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:52836 has been created
[2016-03-21 20:42:14] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:60105 has been deleted
[2016-03-21 20:42:14] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:52836 is now Reachable.  RTT: 40.032 msec


--
_____________________________________________________________________
-- 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
Back to top
pete at fiberphone.co.nz
Guest





PostPosted: Mon Mar 21, 2016 3:12 pm    Post subject: [asterisk-users] Loss of devices registration (pjsip) Reply with quote

Many desk phones support multiple simultaneous SIP registrations. You could use BLF buttons for each SIP registration and the operator uses the LEDs as their queue as to which account is ringing. Alternatively the phone's UI may be able to indicate which account is ringing without the need for BLFs.

Another option is to re-write the CALLERID(num) or CALLERID(name) to indicate the inbound line (eg prepend a string or number).

Hopefully that gives you some food for thought Smile

Pete

Quote:
On 22/03/2016, at 8:49 am, somsad khan <ctrlz.network@gmail.com (ctrlz.network@gmail.com)> wrote:
<snip>
I have a client coming who wants to assign 5 different numbers to one virtual employee SIP phone at his desk or softphone (Zoiper).



Quote:
<snip>

please let me know if there is any possible ways.


Back to top
rmudgett at digium.com
Guest





PostPosted: Mon Mar 21, 2016 3:18 pm    Post subject: [asterisk-users] Loss of devices registration (pjsip) Reply with quote

On Mon, Mar 21, 2016 at 2:49 PM, somsad khan <ctrlz.network@gmail.com (ctrlz.network@gmail.com)> wrote:
Quote:
Hello guys,


I need some help.


I have a client coming who wants to assign 5 different numbers to one virtual employee SIP phone at his desk or softphone (Zoiper).


which I can assign for the incoming or outgoing both.


but the problem is which I might not understanding enough, that,
 
e.g. when line 1 calls the virtual employee will answer “hello this is xyz company how can I help you”
when line 2 calls the virtual employee will answer “hello this is abc company how can I help you”
 
So it is important the employee can recognize which line is calling as they cannot say the wrong company name by mistake!


please let me know if there is any possible ways. 


currently I have my freeepbx server which I have installed in a VPS server. so all my ZOIPER extension is registered to the Freepbx server with IAX protocol. and I have another Asterisk server at my local office for using SIP phones. basically my both server are connected with IAX protocol as SIP port are blocked in my country.


please help if it's possible. thanks in advance


Please do not hijack threads.


Richard
Back to top
ctrlz.network at gmail...
Guest





PostPosted: Mon Mar 21, 2016 3:29 pm    Post subject: [asterisk-users] Loss of devices registration (pjsip) Reply with quote

hello Pete Mundy,

thanks alot for your idea and reply. but unfortunately none of our SIP phone have the facilities to use multiple line and UI.


I can see incoming numbers on my softphone(Zoiper) when a incoming call hits. I liked your incoming caller ID customize idea.


Is it possible to add company name with incoming numbers. so that company name or any signal will appear with incoming call numbers, will be easy to identify by employee that call is coming into which number. 


thank you   


On Tue, Mar 22, 2016 at 2:12 AM, Pete Mundy <pete@fiberphone.co.nz (pete@fiberphone.co.nz)> wrote:
Quote:


Many desk phones support multiple simultaneous SIP registrations. You could use BLF buttons for each SIP registration and the operator uses the LEDs as their queue as to which account is ringing. Alternatively the phone's UI may be able to indicate which account is ringing without the need for BLFs.


Another option is to re-write the CALLERID(num) or CALLERID(name) to indicate the inbound line (eg prepend a string or number).


Hopefully that gives you some food for thought Smile


Pete



Quote:
On 22/03/2016, at 8:49 am, somsad khan <ctrlz.network@gmail.com (ctrlz.network@gmail.com)> wrote:
<snip>

I have a client coming who wants to assign 5 different numbers to one virtual employee SIP phone at his desk or softphone (Zoiper).



Quote:
<snip>
Quote:

please let me know if there is any possible ways. 





--
_____________________________________________________________________
-- 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
Back to top
george.joseph at fairv...
Guest





PostPosted: Mon Mar 21, 2016 3:32 pm    Post subject: [asterisk-users] Loss of devices registration (pjsip) Reply with quote

On Mon, Mar 21, 2016 at 11:58 AM, Dmitriy Serov <serov.d.p@gmail.com (serov.d.p@gmail.com)> wrote:
Quote:
Good day.

Asterisk 13.7.2, res_pjsip.
There is a problem of loss of registration of several devices. This happens not on all devices, but problem devices a lot.
Below is the log of registration of a contact of one device.

Is suspect two things:
1. delete a contact after the contact is added. But, like, it's a feature of code that may already be fixed.
2. deleting a contact much earlier than the 90 seconds specified during the registration

Would be grateful for any clues.

Dmitriy Serov.

expiration settings:
[common-aor](!)
type=aor
qualify_frequency=60
default_expiration=120
maximum_expiration=600
minimum_expiration=90

log:
[2016-03-21 20:39:58] VERBOSE[30251] res_pjsip_registrar.c: Added contact 'sip:17367@46.39.229.18:37910' to AOR '17367' with expiration of 90 seconds
​The client just registered​
 
Quote:
[2016-03-21 20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 has been created
​We added a new contact​
 
Quote:
[2016-03-21 20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:27143 has been deleted
​We deleted the old contact​
 
Quote:
[2016-03-21 20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 is now Reachable.  RTT: 41.882 msec
​We qualified the contact successfully​
 
Quote:
[2016-03-21 20:41:01] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 is now Unreachable.  RTT: 0.000 msec
​At the next qualify, we couldn't reach the contact



Quote:
[2016-03-21 20:41:06] VERBOSE[3827] res_pjsip_registrar.c: Added contact 'sip:17367@46.39.229.18:60105' to AOR '17367' with expiration of 90 seconds
​The client just registered​
 ​(again)​


Quote:
[2016-03-21 20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:60105 has been created
​We added a new contact​
 
 [2016-03-21 20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 has been deleted
​We deleted the old contact​
 

Quote:
[2016-03-21 20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:60105 is now Reachable.  RTT: 44.031 msec
​We qualified the contact successfully​
 
Quote:
[2016-03-21 20:42:09] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:60105 is now Unreachable.  RTT: 0.000 msec
​At the next qualify, we couldn't reach the contact



​This looks like a client that's going to sleep or a firewall that's timing out connections.  Asterisk is only deleting the contact on the next successful register because it's replacing it.  You need to figure out why the qualify is failing and why the client keeps registering.
Back to top
ctrlz.network at gmail...
Guest





PostPosted: Mon Mar 21, 2016 3:35 pm    Post subject: [asterisk-users] Loss of devices registration (pjsip) Reply with quote

I have added CID name prefix on inbound route. and it works fine Smile now I can simply forward five incoming routes to one extension. and as far as I guess, if I add CID name prefix for every number. it should work Smile thanks alot  Smile 

On Tue, Mar 22, 2016 at 2:28 AM, somsad khan <ctrlz.network@gmail.com (ctrlz.network@gmail.com)> wrote:
Quote:
hello Pete Mundy,

thanks alot for your idea and reply. but unfortunately none of our SIP phone have the facilities to use multiple line and UI.


I can see incoming numbers on my softphone(Zoiper) when a incoming call hits. I liked your incoming caller ID customize idea.


Is it possible to add company name with incoming numbers. so that company name or any signal will appear with incoming call numbers, will be easy to identify by employee that call is coming into which number. 


thank you   


On Tue, Mar 22, 2016 at 2:12 AM, Pete Mundy <pete@fiberphone.co.nz (pete@fiberphone.co.nz)> wrote:


Quote:


Many desk phones support multiple simultaneous SIP registrations. You could use BLF buttons for each SIP registration and the operator uses the LEDs as their queue as to which account is ringing. Alternatively the phone's UI may be able to indicate which account is ringing without the need for BLFs.


Another option is to re-write the CALLERID(num) or CALLERID(name) to indicate the inbound line (eg prepend a string or number).


Hopefully that gives you some food for thought Smile


Pete



Quote:
On 22/03/2016, at 8:49 am, somsad khan <ctrlz.network@gmail.com (ctrlz.network@gmail.com)> wrote:
<snip>

I have a client coming who wants to assign 5 different numbers to one virtual employee SIP phone at his desk or softphone (Zoiper).



Quote:
<snip>
Quote:

please let me know if there is any possible ways. 







--
_____________________________________________________________________
-- 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



Back to top
pete at fiberphone.co.nz
Guest





PostPosted: Mon Mar 21, 2016 7:37 pm    Post subject: [asterisk-users] Loss of devices registration (pjsip) Reply with quote

Somsad,

Yep. That's why I suggested it as another option Smile

These links may help:

http://www.voip-info.org/wiki/view/Asterisk+Detailed+Variable+List
(see CALLERID(num) and CALLERID(name))

http://www.voip-info.org/wiki/view/Asterisk+cmd+Set

Pete

Quote:
On 22/03/2016, at 9:28 am, somsad khan <ctrlz.network@gmail.com> wrote:

Is it possible to add company name with incoming numbers. so that company name or any signal will appear with incoming call numbers, will be easy to identify by employee that call is coming into which number.


--
_____________________________________________________________________
-- 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
Back to top
pete at fiberphone.co.nz
Guest





PostPosted: Mon Mar 21, 2016 9:42 pm    Post subject: [asterisk-users] Loss of devices registration (pjsip) Reply with quote

Good result! Glad it worked for you Smile
Pete
Quote:
On 22/03/2016, at 9:34 am, somsad khan <ctrlz.network@gmail.com (ctrlz.network@gmail.com)> wrote:
I have added CID name prefix on inbound route. and it works fine Smile now I can simply forward five incoming routes to one extension. and as far as I guess, if I add CID name prefix for every number. it should work Smile thanks alot Smile
On Tue, Mar 22, 2016 at 2:28 AM, somsad khan <ctrlz.network@gmail.com (ctrlz.network@gmail.com)> wrote:
Quote:
hello Pete Mundy,
thanks alot for your idea and reply. but unfortunately none of our SIP phone have the facilities to use multiple line and UI.

I can see incoming numbers on my softphone(Zoiper) when a incoming call hits. I liked your incoming caller ID customize idea.

Is it possible to add company name with incoming numbers. so that company name or any signal will appear with incoming call numbers, will be easy to identify by employee that call is coming into which number.

thank you

On Tue, Mar 22, 2016 at 2:12 AM, Pete Mundy <pete@fiberphone.co.nz (pete@fiberphone.co.nz)> wrote:

Quote:

Many desk phones support multiple simultaneous SIP registrations. You could use BLF buttons for each SIP registration and the operator uses the LEDs as their queue as to which account is ringing. Alternatively the phone's UI may be able to indicate which account is ringing without the need for BLFs.

Another option is to re-write the CALLERID(num) or CALLERID(name) to indicate the inbound line (eg prepend a string or number).

Hopefully that gives you some food for thought Smile

Pete

Quote:
On 22/03/2016, at 8:49 am, somsad khan <ctrlz.network@gmail.com (ctrlz.network@gmail.com)> wrote:
<snip>
I have a client coming who wants to assign 5 different numbers to one virtual employee SIP phone at his desk or softphone (Zoiper).



Quote:
<snip>
Quote:

please let me know if there is any possible ways.






-- _____________________________________________________________________ -- 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




-- _____________________________________________________________________-- 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/helloasterisk-users mailing listTo UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
george.joseph at fairv...
Guest





PostPosted: Mon Mar 21, 2016 10:05 pm    Post subject: [asterisk-users] Loss of devices registration (pjsip) Reply with quote

Now do you mind if we get back to the original purpose of this thread before it was hijacked?


Dmitriy...  See my response further back. Smile




On Mon, Mar 21, 2016 at 8:42 PM, Pete Mundy <pete@fiberphone.co.nz (pete@fiberphone.co.nz)> wrote:
Quote:


Good result! Glad it worked for you Smile

Pete


Quote:
On 22/03/2016, at 9:34 am, somsad khan <ctrlz.network@gmail.com (ctrlz.network@gmail.com)> wrote:

I have added CID name prefix on inbound route. and it works fine Smile now I can simply forward five incoming routes to one extension. and as far as I guess, if I add CID name prefix for every number. it should work Smile thanks alot  Smile 

On Tue, Mar 22, 2016 at 2:28 AM, somsad khan <ctrlz.network@gmail.com (ctrlz.network@gmail.com)> wrote:
Quote:
hello Pete Mundy,

thanks alot for your idea and reply. but unfortunately none of our SIP phone have the facilities to use multiple line and UI.


I can see incoming numbers on my softphone(Zoiper) when a incoming call hits. I liked your incoming caller ID customize idea.


Is it possible to add company name with incoming numbers. so that company name or any signal will appear with incoming call numbers, will be easy to identify by employee that call is coming into which number. 


thank you   


On Tue, Mar 22, 2016 at 2:12 AM, Pete Mundy <pete@fiberphone.co.nz (pete@fiberphone.co.nz)> wrote:


Quote:


Many desk phones support multiple simultaneous SIP registrations. You could use BLF buttons for each SIP registration and the operator uses the LEDs as their queue as to which account is ringing. Alternatively the phone's UI may be able to indicate which account is ringing without the need for BLFs.


Another option is to re-write the CALLERID(num) or CALLERID(name) to indicate the inbound line (eg prepend a string or number).


Hopefully that gives you some food for thought Smile


Pete



Quote:
On 22/03/2016, at 8:49 am, somsad khan <ctrlz.network@gmail.com (ctrlz.network@gmail.com)> wrote:
<snip>

I have a client coming who wants to assign 5 different numbers to one virtual employee SIP phone at his desk or softphone (Zoiper).



Quote:
<snip>
Quote:

please let me know if there is any possible ways. 







--
_____________________________________________________________________
-- 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






--
_____________________________________________________________________
-- 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







--
_____________________________________________________________________
-- 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
Back to top
ish at pack-net.co.uk
Guest





PostPosted: Tue Mar 22, 2016 5:14 am    Post subject: [asterisk-users] Loss of devices registration (pjsip) Reply with quote

On 21 March 2016 at 20:32, George Joseph <george.joseph@fairview5.com (george.joseph@fairview5.com)> wrote:
Quote:



On Mon, Mar 21, 2016 at 11:58 AM, Dmitriy Serov <serov.d.p@gmail.com (serov.d.p@gmail.com)> wrote:
Quote:
Good day.

Asterisk 13.7.2, res_pjsip.
There is a problem of loss of registration of several devices. This happens not on all devices, but problem devices a lot.
Below is the log of registration of a contact of one device.

Is suspect two things:
1. delete a contact after the contact is added. But, like, it's a feature of code that may already be fixed.
2. deleting a contact much earlier than the 90 seconds specified during the registration

Would be grateful for any clues.

Dmitriy Serov.

expiration settings:
[common-aor](!)
type=aor
qualify_frequency=60
default_expiration=120
maximum_expiration=600
minimum_expiration=90

log:
[2016-03-21 20:39:58] VERBOSE[30251] res_pjsip_registrar.c: Added contact 'sip:17367@46.39.229.18:37910' to AOR '17367' with expiration of 90 seconds
​The client just registered​
 
Quote:
[2016-03-21 20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 has been created
​We added a new contact​
 
Quote:
[2016-03-21 20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:27143 has been deleted
​We deleted the old contact​
 
Quote:
[2016-03-21 20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 is now Reachable.  RTT: 41.882 msec
​We qualified the contact successfully​
 
Quote:
[2016-03-21 20:41:01] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 is now Unreachable.  RTT: 0.000 msec
​At the next qualify, we couldn't reach the contact



Quote:
[2016-03-21 20:41:06] VERBOSE[3827] res_pjsip_registrar.c: Added contact 'sip:17367@46.39.229.18:60105' to AOR '17367' with expiration of 90 seconds
​The client just registered​
 ​(again)​


Quote:
[2016-03-21 20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:60105 has been created
​We added a new contact​
 
 [2016-03-21 20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 has been deleted
​We deleted the old contact​
 

Quote:
[2016-03-21 20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:60105 is now Reachable.  RTT: 44.031 msec
​We qualified the contact successfully​
 
Quote:
[2016-03-21 20:42:09] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:60105 is now Unreachable.  RTT: 0.000 msec
​At the next qualify, we couldn't reach the contact



​This looks like a client that's going to sleep or a firewall that's timing out connections.  Asterisk is only deleting the contact on the next successful register because it's replacing it.  You need to figure out why the qualify is failing and why the client keeps registering.












Check if the router or firewall has a UDP port timeout option and increase it by a lot (I usually up it to an hour).
 





--
Quote:
Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)161 660 2350
f: +44 (0)161 660 9825
e: ish@pack-net.co.uk (ish@pack-net.co.uk)
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
Back to top
serov.d.p at gmail.com
Guest





PostPosted: Tue Mar 22, 2016 5:36 am    Post subject: [asterisk-users] Loss of devices registration (pjsip) Reply with quote

Thanks, George Joseph!

Now a lot clearer the reasons for this behavior.
It turns out that in the case of devices there are two ways to understand that they are "alive":
1. Registration from device to server
2. qualify from the server to the client
And the second way does not seems superfluous. Since calling to the device this way will be used. if qualify doesn't working, then this call will not take place.

Most likely the problem is that the device is behind two NAT (from your ISP and your own router).
Can you advise how to configure the client in this case? Is it necessary to use a stun (did not seem to help, and it only works in the case of RTP) or proxy?

Thanks.

21.03.2016 23:32, George Joseph пишет:

Quote:



On Mon, Mar 21, 2016 at 11:58 AM, Dmitriy Serov <serov.d.p@gmail.com (serov.d.p@gmail.com)> wrote:
Quote:
Good day.

Asterisk 13.7.2, res_pjsip.
There is a problem of loss of registration of several devices. This happens not on all devices, but problem devices a lot.
Below is the log of registration of a contact of one device.

Is suspect two things:
1. delete a contact after the contact is added. But, like, it's a feature of code that may already be fixed.
2. deleting a contact much earlier than the 90 seconds specified during the registration

Would be grateful for any clues.

Dmitriy Serov.

expiration settings:
[common-aor](!)
type=aor
qualify_frequency=60
default_expiration=120
maximum_expiration=600
minimum_expiration=90

log:
[2016-03-21 20:39:58] VERBOSE[30251] res_pjsip_registrar.c: Added contact 'sip:17367@46.39.229.18:37910 ([email]sip:17367@46.39.229.18:37910[/email])' to AOR '17367' with expiration of 90 seconds
​The client just registered​
 
Quote:
[2016-03-21 20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 has been created
​We added a new contact​
 
Quote:
[2016-03-21 20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:27143 has been deleted
​We deleted the old contact​
 
Quote:
[2016-03-21 20:39:58] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 is now Reachable.  RTT: 41.882 msec
​We qualified the contact successfully​
 
Quote:
[2016-03-21 20:41:01] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 is now Unreachable.  RTT: 0.000 msec
​At the next qualify, we couldn't reach the contact



Quote:
[2016-03-21 20:41:06] VERBOSE[3827] res_pjsip_registrar.c: Added contact 'sip:17367@46.39.229.18:60105' to AOR '17367' with expiration of 90 seconds
​The client just registered​
  ​(again)​


Quote:
[2016-03-21 20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:60105 has been created
​We added a new contact​
 
 [2016-03-21 20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:37910 ([email]sip:17367@46.39.229.18:37910[/email]) has been deleted
​We deleted the old contact​
 

Quote:
[2016-03-21 20:41:06] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:60105 is now Reachable.  RTT: 44.031 msec
​We qualified the contact successfully​
 
Quote:
[2016-03-21 20:42:09] VERBOSE[28019] res_pjsip/pjsip_configuration.c: Contact 17367/sip:17367@46.39.229.18:60105 is now Unreachable.  RTT: 0.000 msec
​At the next qualify, we couldn't reach the contact



​This looks like a client that's going to sleep or a firewall that's timing out connections.  Asterisk is only deleting the contact on the next successful register because it's replacing it.  You need to figure out why the qualify is failing and why the client keeps registering.










Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services