[Kamailio-Users] Registration delays when using Kamailio proxy

Daniel-Constantin Mierla miconda at gmail.com
Wed Feb 3 11:20:43 CET 2010


Hello,

what version are you using? Do you have big traffic on it?

Usual delays are coming from:
- slow dns
- slow database
- lot of debugging with non-asynchronous syslog
- bad config file

You can use benchmark module to get executing time of parts in 
configuration file. If you can share config, some people here on mailing 
list may have some hints about the cause.

Cheers,
Daniel


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

-- 
Daniel-Constantin Mierla
eLearning class for Kamailio 3.0.0
Starting Feb 8, 2010
* http://www.asipto.com/




More information about the Users mailing list