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

GerryGerry

Member
Joined
Dec 26, 2015
Messages
38
Reaction score
5
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
38
Reaction score
5
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/*[email protected]_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

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,317
Messages
136,960
Members
14,542
Latest member
k0dean