So I’ve finally got some time like everyone else and my project is trying to get this to work:
IAX call -->
IF call flow is NIGHT, --> send to IVR - this bit works!
IF call flow is DAY, --> send to custom destination which then dials the number they were originally trying to reach - this bit doesn’t work
Log looks like this
[2020-05-16 22:45:30] VERBOSE[1289] chan_iax2.c: Accepting UNAUTHENTICATED call from 192.168.1.2:4569
[2020-05-16 22:45:30] VERBOSE[4858][C-000000f3] pbx.c: Executing [4002@from-iax-partner-pbx:1] Goto("IAX2/home_to_ste-6567", "app-daynight,3,1") in new stack
[2020-05-16 22:45:30] VERBOSE[4858][C-000000f3] pbx_builtins.c: Goto (app-daynight,3,1)
[2020-05-16 22:45:30] VERBOSE[4858][C-000000f3] pbx.c: Executing [3@app-daynight:1] GotoIf("IAX2/home_to_ste-6567", "0?ivr-2,s,1:from-internal,,1") in new stack
[2020-05-16 22:45:30] VERBOSE[4858][C-000000f3] pbx_builtins.c: Goto (from-internal,3,1)
[2020-05-16 22:45:30] WARNING[4858][C-000000f3] pbx.c: Channel 'IAX2/home_to_ste-6567' sent to invalid extension but no invalid handler: context,exten,priority=from-internal,3,1
[2020-05-16 22:45:30] VERBOSE[4858][C-000000f3] pbx.c: Executing [h@from-internal:1] Macro("IAX2/home_to_ste-6567", "hangupcall") in new stack
[2020-05-16 22:45:30] VERBOSE[4858][C-000000f3] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("IAX2/home_to_ste-6567", "1?theend") in new stack
[2020-05-16 22:45:30] VERBOSE[4858][C-000000f3] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2020-05-16 22:45:30] VERBOSE[4858][C-000000f3] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("IAX2/home_to_ste-6567", "0?Set(CDR(recordingfile)=)") in new stack
[2020-05-16 22:45:30] VERBOSE[4858][C-000000f3] pbx.c: Executing [s@macro-hangupcall:4] NoOp("IAX2/home_to_ste-6567", " montior file= ") in new stack
[2020-05-16 22:45:30] VERBOSE[4858][C-000000f3] pbx.c: Executing [s@macro-hangupcall:5] GotoIf("IAX2/home_to_ste-6567", "1?skipagi") in new stack
[2020-05-16 22:45:30] VERBOSE[4858][C-000000f3] pbx_builtins.c: Goto (macro-hangupcall,s,7)
[2020-05-16 22:45:30] VERBOSE[4858][C-000000f3] pbx.c: Executing [s@macro-hangupcall:7] Hangup("IAX2/home_to_ste-6567", "") in new stack
[2020-05-16 22:45:30] VERBOSE[4858][C-000000f3] app_macro.c: Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'IAX2/home_to_ste-6567' in macro 'hangupcall'
[2020-05-16 22:45:30] VERBOSE[4858][C-000000f3] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on 'IAX2/home_to_ste-6567'
[2020-05-16 22:45:30] VERBOSE[4858][C-000000f3] chan_iax2.c: Hungup 'IAX2/home_to_ste-6567'
and this is the target for my custom destination:-
from-internal,${CALLERID(dnid)},1
any tips most welcome!! thanks