[asterisk-users] SIP Outdial Not Detecting Ringing Line

Deric Page Deric.Page at nisc.coop
Mon Apr 5 14:30:09 CDT 2010


First off, I also posted this on the digium forums so if anyone here
also reads those, sorry for the cross-post.

When I place an outbound call using SIP to my cell phone, asterisk
immediately starts processing the dialplan without waiting for the call
to be answered. We could handle this on DAHDI using callprogress, but I
don't know of a similar setting for SIP.

Here is the contents of sip.conf:

		[general]
		allowoverlap=no
		bindport=5060
		bindaddr=0.0.0.0
		srvlookup=yes
		
		register => YYYY:XXXX@*.*.*.*/***

		[sip_inbound]
		type=friend
		context=ivr
		host=dynamic
		
		[sip_outbound]
		username=XXXX
		fromuser=XXXX
		secret=XXXX
		fromdomain=X.X.X.X
		type=friend
		host=X.X.X.X
		canreinvite=no
		disallow=all
		allow=ilbc
		allow=g729
		allow=gsm
		allow=g723
		allow=ulaw
		call-limit=8

extensions.conf:

		[outdial]
		exten => dial,1,NoOp(Dial String = ${DIAL_STRING})
		exten => dial,n,NoOp(Dial Timeout = ${DIAL_TIMEOUT})
		exten => dial,n,Dial(${DIAL_STRING}, ${DIAL_TIMEOUT})
		exten => dial,n,NoOp(Dial Status = ${DIALSTATUS})
		exten => dial,n,Agi(agi://localhost/Outdial.agi)
		exten => dial,n,Hangup()
		
		exten => answer,1,NoOp(Dial Status = ${DIALSTATUS})
		exten => answer,n,Agi(agi://localhost/Outdial.agi)
		exten => answer,n,Hangup()

Here are the results I'm seeing in the CLI:

		== Manager 'XXXXXXXX' logged on from 127.0.0.1
		    -- Executing [dial at outdial:1]
NoOp("Local/dial at outdial-fe23;2", "Dial String =
SIP/sip_outbound/912345557890") in new stack
		    -- Executing [dial at outdial:2]
NoOp("Local/dial at outdial-fe23;2", "Dial Timeout = 45") in new stack
		    -- Executing [dial at outdial:3]
Dial("Local/dial at outdial-fe23;2", "SIP/sip_outbound/912345557890, 45")
in new stack
		  == Using SIP RTP CoS mark 5
		    -- Called sip_outbound/912345557890
		    -- Remote UNIX connection
		    -- Remote UNIX connection disconnected
		    -- SIP/sip_outbound-00000120 answered
Local/dial at outdial-fe23;2
		       > Channel Local/dial at outdial-fe23;1 was answered.
		    -- Executing [answer at outdial:1]
NoOp("Local/dial at outdial-fe23;1", "Dial Status = ") in new stack
		    -- Executing [answer at outdial:2]
AGI("Local/dial at outdial-fe23;1", "agi://localhost/Outdial.agi") in new
stack

Does anyone have any ideas about why this may be happening?

Thanks.

Deric Page
deric.page at nisc.coop
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100405/e9174986/attachment.htm 


More information about the asterisk-users mailing list