Disconnect after command DIAL

My config:

exten => _X.,1,Log(Notice,“Start a call xx”)
exten => _X.,n,Dial(SIP/${EXTEN},7,S(63))
exten => _X.,n,Log(Notice,“Stop dialing xx…”)
exten => _X.,n,Hangup

I calling via CLI (it dosent matter via CLI or CALL-file)
channel originate local/123@xx application playback welcome

And after answer the asterisk to do disconnect:

_-- Executing [123@xx:1] Log("Local/123@xx-0000002a;2", "Notice,"Start a call xx"") in new stack_

[Sep 20 14:38:31] NOTICE[2783][C-00000554]: Ext. 123:1 @ xx: “Start a call xx”
_ – Executing [123@xx:2] Dial(“Local/123@xx-0000002a;2”, “SIP/,7,S(63)”) in new stack_
_ – Setting call duration limit to 63.000 seconds._
_ == Using SIP RTP CoS mark 5_
_ – Called SIP/
_ – SIP/ answered Local/123@xx-0000002a;2_
_ – Launching playback(welcome) on Local/123@xx-0000002a;1_
_ – <Local/123@xx-0000002a;1> Playing ‘welcome.slin’ (language ‘en’)_
_ > 0x7f2b70058470 – Probation passed - setting RTP source address to
_ == Spawn extension (xx, 123, 2) exited non-zero on ‘Local/123@xx-0000002a;2’_

Could you please help me with the disconnect.
i can’t understand what happend

Your log shows a successful call.

Note that the dialplan will not normally continue after a successful Dial and that Dial retains control until one party hangs up.

Also, you should not use screen scrapes, as they do not contain time stamps.

1 Like

No, duration is 0 sec