[Kamailio-Users] Registration delays when using Kamailio proxy

Vikram Ragukumar vragukumar at signalogic.com
Wed Feb 3 21:38:00 CET 2010


Daniel,

Thank you for your response.

Daniel-Constantin Mierla wrote:
> Hello,
> 
> what version are you using? Do you have big traffic on it?
I am using version 1.5, and there isn't much traffic.

> Usual delays are coming from:
> - lot of debugging with non-asynchronous syslog
This was a very useful tip. Turns out that HD access times were very poor

hdparm -t /dev/hda output
Timing buffered disk reads:   12 MB in  3.48 seconds =   3.45 MB/sec

I tested registration times after setting debug=0 in the kamailio.cfg 
file, and registrations were much quicker. I plan on working around this 
issue by switching to AHCI mode from IDE mode.

Once again, Thank you very much.
Vikram.

> On 2/3/10 1:14 AM, vragukumar at signalogic.com wrote:
>> Hello,
>>
>> Here is some more information from wireshark,
>>
>> "No.","Time","Source","Destination","Protocol","Info"
>> "1","0.000000","x_lite_softphone","SIP_proxy","SIP","Request: REGISTER
>> sip:SIP_server"
>> "2","0.000012","x_lite_softphone","SIP_proxy","SIP","Request: REGISTER
>> sip:SIP_server"
>> "5","0.818876","SIP_proxy","SIP_server","SIP","Request: REGISTER
>> sip:SIP_server"
>> "6","0.818886","SIP_proxy","SIP_server","SIP","Request: REGISTER
>> sip:SIP_server"
>> "7","0.824475","SIP_server","SIP_proxy","SIP","Status: 200 OK    (1
>> bindings)"
>> "15","2.635788","SIP_proxy","x_lite_softphone","SIP","Status: 200 
>> OK    (1
>> bindings)"
>>
>> Looking at the timestamps for these SIP messages
>> - It takes the proxy 0.8s to relay REGISTER request to SIP server
>> - It takes the proxy 1.8s to relay 200 OK to the softphone
>>
>> These time durations appear to be very long.
>> What are the expected time durations for these relay times? What might be
>> causing relay times to be so large ?
>>
>> Thanks in advance.
>>
>> Regards,
>> Vikram.
>>
>>   
>>> Hello,
>>>
>>> I am using an x-lite softphone to register with my SIP domain,
>>>
>>> (a) Without an outbound proxy - Registration is successful and takes
>>> about 3 seconds
>>> (b) With an outbound proxy - Registration is successful but takes nearly
>>> 15 seconds
>>> I briefly describe below the sequence of SIP messages while using the
>>> outbound proxy
>>>
>>> Register softphone ->  proxy
>>> Register proxy ->  SIP server
>>> Register softphone ->  proxy
>>> 407 Proxy authentication reqd. SIP server ->  proxy
>>> Register softphone ->  proxy
>>> 407 Proxy authentication reqd. proxy ->  softphone
>>> Register softphone ->  proxy (With Digest response)
>>> Register proxy ->  SIP server (With Digest response)
>>> 200 OK Sip server ->  proxy
>>> Register softphone ->  proxy (With Digest response)
>>>
>>> I am attaching a log with wireshark captures that show SIP messages
>>> exchanged between the SIP server,SIP proxy and the x-lite softphone. The
>>> log shows several messages being duplicated (REGISTER, 200 OK)
>>>
>>> 1) Why does the softphone continue to send REGISTER messages after
>>> receiving a 200 OK response ? (almost 15 repetitions of REGISTER after
>>> receiving 200 OK)
>>>
>>> 2) What is the reason for the delay in registration times with/without
>>> the proxy ?
>>>
>>> Thanks and Regards,
>>> Vikram.
>>>
>>>
>>> _______________________________________________
>>> Kamailio (OpenSER) - Users mailing list
>>> Users at lists.kamailio.org
>>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>>      
>>
>> _______________________________________________
>> Kamailio (OpenSER) - Users mailing list
>> Users at lists.kamailio.org
>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>
>>    
> 





More information about the sr-users mailing list