keepalive packet is disabled when registration failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello,
my version pjsip is 1.8.5 and i trying solve problem when client lost network 
connection and try reconect to server (re-register). I have default
re-register timer value 300 seconds and UDP keep alive packet is set to 15s.
When my client is disconnected from network still send UDP packet every 15 
seconds...When is connected to network is reachable to 15s because is send UDP 
keep alive packet and my PBX asterix set client status to ONLINE. After this 
step i can call...but when client is not connected to 300s (when re-register 
timer expired and client try re-register) registration faild and UDP timer is 
stoped. Then only every 300 seconds client try re-register and only after 
sucesfull registration is client ONLINE.

here is part of log:

 10:10:03.084    tsx0x2a581c  Retransmit timer event                                                                                                                                          
 10:10:03.086    tsx0x2a581c  Retransmiting Request msg REGISTER/cseq=22781 
(tdta0x2a4300), count=9, restart?=1                                                                               
 10:10:03.089   pjsua_core.c  TX 478 bytes Request msg REGISTER/cseq=22781 
(tdta0x2a4300) to UDP 192.168.32.123:5060:                                                                         
REGISTER sip:192.168.32.123 SIP/2.0                                                                                                                                                           
Via: SIP/2.0/UDP 192.168.32.17:5060;rport;branch=z9hG4bKPjY603ZyZ-
f9BsHHmNyI8OyPSfoFqSq01f                                                                                                    
Max-Forwards: 70                                                                                                                                                                              
From: <sip:pc2@192.168.32.123>;tag=S6MYEkV8uIE2pZk-nNIi4G8BSfzufBNa                                                                                                                           
To: <sip:pc2 at 192.168.32.123>                                                                                                                                                                  
Call-ID: OApLPwz6p3cQhYOBk8FxbmXgoFUjMWcx                                                                                                                                                     
CSeq: 22781 REGISTER                                                                                                                                                                          
Contact: <sip:pc2 at 192.168.32.17:5060>                                                                                                                                                         
Expires: 300                                                                                                                                                                                  
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, 
MESSAGE, OPTIONS                                                                                                    
Content-Length:  0                                                                                                                                                                            
                                                                                                                                                                                              
                                                                                                                                                                                              
--end msg--                                                                                                                                                                                   
 10:10:03.494    tsx0x2a581c  Timeout timer event                                                                                                                                             
 10:10:03.496    tsx0x2a581c  State changed from Calling to Terminated, 
event=TIMER                                                                                                           
 10:10:03.497    pjsua_acc.c  SIP registration failed, status=408 (Request 
Timeout)                                                                                                           
                                                                                                                                                                                              
 10:10:03.504    tsx0x2a581c  Timeout timer event                                                                                                                                             
 10:10:03.505    tsx0x2a581c  State changed from Terminated to Destroyed, 
event=TIMER                                                                                                         
 10:10:03.505   tdta0x2a4300  Destroying txdata Request msg 
REGISTER/cseq=22781 (tdta0x2a4300)                                                                                                
 10:10:03.506    tsx0x2a581c  Transaction destroyed!


Exists some way how can i set UDP keep alive packet still active?
Or i have to change re-register timer to 15 seconds? it's good idea? 
Set re-registration timer for short time.


thanks

















[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux