[Asterisk-Users] long delay between "Ring Begin" and "SIP/XXX is ringing"

Rich Adamson radamson at routers.com
Wed Apr 5 09:02:34 MST 2006


> i have an asterisk install with a digium 4 port fxo card and cisco 7960
> sip phones -- running on a compaq Pentium III (Coppermine) at 800Mhz
> 256KB cache and 1GB of ram.
> 
> when a call comes in on zap/1-1 for example, the delay between when zap
> sees the line going to ring state, and when the desktop telephone rings
> can be as long as 7000 milliseconds (or about 3 or 4 rings on an ear
> piece).
> 
> below is some of the log -- note 2 seconds to get from Ring Begin to In
> Use and a total of 7 seconds before the sip phone rings.
> 
> anyway to speed this process up? 
> 
> cheers
> 
> charles
> 
> Apr  5 16:15:00 DEBUG[7010]: chan_zap.c:6639 do_monitor: Monitor
> doohicky got event Ring Begin on channel 1
> Apr  5 16:15:02 DEBUG[7010]: chan_zap.c:6639 do_monitor: Monitor
> doohicky got event Ring/Answered on channel 1
> Apr  5 16:15:02 DEBUG[6986]: devicestate.c:187 do_state_change: Changing
> state for Zap/1 - state 2 (In use)
> Apr  5 16:15:02 DEBUG[7549]: app_queue.c:471 changethread: Device
> 'Zap/1' changed to state '2' (In use)
>     -- Starting simple switch on 'Zap/1-1'
> Apr  5 16:15:05 NOTICE[7548]: chan_zap.c:6063 ss_thread: Got event 18
> (Ring Begin)...
> <snip>
> Apr  5 16:15:07 DEBUG[7012]: chan_sip.c:1447 __sip_semi_ack:
> (Provisional) Stopping retransmission (but retaining packet) on
> '7c062ef214528d5973dcbe320c3800a1 at 172.16.7.3' Request 102: Found
>     -- SIP/101-7014 is ringing

It would appear the progress is associated with waiting for callerid 
info. If you are in the US, callerid occurs between the first and second 
ring. That's about 7 seconds or so.

If your pstn line does not have callerid, then add statements into your 
zapata.conf file like 'usecallerid=no', 'immediate=yes', etc. I don't 
recall exactly which statements are needed, but start with the above two 
and see what you get for delays.







More information about the asterisk-users mailing list