When we 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.
I am not sure what exactly did you mean by asterisk immediately starts processing the dialplan without waiting for the call to be answered. If asterisk doesn’t process the dialplan, it won’t be able to execute the Dial() function to place the call.
I am not sure what exactly did you mean by asterisk immediately starts processing the dialplan without waiting for the call to be answered. If asterisk doesn’t process the dialplan, it won’t be able to execute the Dial() function to place the call.[/quote]
What I mean is that the Dial command executes and then the dialplan continues on to the next line assuming that the Dial command was answered even though it wasn’t. So, in the case of my extensions.conf:
[quote=“dericlp”]What I mean is that the Dial command executes and then the dialplan continues on to the next line assuming that the Dial command was answered even though it wasn’t. So, in the case of my extensions.conf:
== Manager 'XXXXXXXX' logged on from 127.0.0.1
-- Executing [dial@outdial:1] NoOp("Local/dial@outdial-fe23;2", "Dial String = SIP/sip_outbound/912345557890") in new stack
-- Executing [dial@outdial:2] NoOp("Local/dial@outdial-fe23;2", "Dial Timeout = 45") in new stack
-- Executing [dial@outdial:3] Dial("Local/dial@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@outdial-fe23;2
> Channel Local/dial@outdial-fe23;1 was answered.
-- Executing [answer@outdial:1] NoOp("Local/dial@outdial-fe23;1", "Dial Status = ") in new stack
-- Executing [answer@outdial:2] AGI("Local/dial@outdial-fe23;1", "agi://localhost/Outdial.agi") in new stack
You are missing important details. I guess you are using originate with local/dial@ as the channel and answer@ as the extension.
The call is being answered. If there is a problem here, it is with whatever provides the SIP to PSTN interface. However, to be absolutely sure, you should enable SIP debugging and confirm that the call really is being answered prematurely, by the SIP provider.