SOLVED Retrieve call back after dialling external number and external call ended

GerryGerry

Member
Joined
Dec 26, 2015
Messages
57
Reaction score
9
I have the following in my custom IVR dialplan (asterisk 13.6.0)
Code:
exten => 8,1,Set(TIMEOUT(digit)=1)
    same => n,Macro(dialout-trunk,7,*001)
    same => n,Goto(*033,main)

the first part works well and the call is connected correctly to another 'external' pbx BUT when the call is finished (other pbx hangs up) the local call is also terminated rather than continuing through to the next part of the dialplan and executing the 'Goto(*033,main)'. If I comment out the dialout-trunk line it works fine. Any help appreciated as always
 
Last edited:

GerryGerry

Member
Joined
Dec 26, 2015
Messages
57
Reaction score
9
This is now resolved. I replaced the Macro(dialout-trunk) app with the Dial app using the 'g' option. Working code now looks as follows:-
Code:
exten => 8,1,Set(TIMEOUT(digit)=1)
    same => n,Dial(SIP/*001@REMOTE_PBX,10,g)
    same => n,Goto(*033,main)
Using the dial with a named trunk also has the advantage thae should the trunk get a new ID in the future this code fragment won't need updating:)
 
Last edited:

Members online

No members online now.

Forum statistics

Threads
25,781
Messages
167,507
Members
19,201
Latest member
troutpocket
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top