Hi Joe,
Thanks for trying to help, I really appreciate it!
I did just recheck it. I'll just post how my predial-hook (these lines are in extensions.conf) looks like this:
Code:
[macro-dialout-trunk-predial-hook]
; Modified to support outbound calling for A2B
; original line: exten => s,n(skipoutnum),Dial(${pre_num:4}${the_num}${post_num},300,${DIAL_TRUNK_OPTIONS})
; added function
exten => s,n(skipoutnum),GotoIf($["${pre_num}" = "AMP:A2B/"]?a2bdial:skipoutnumnormal) ; Checks for A2B custom trunk and dials it.
exten => s,n(a2bdial),DeadAGI(a2billing.php|2|${OUTNUM}) ; Dials out via the a2billing.php script.
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s,n(skipoutnumnormal),Dial(${pre_num:4}${the_num}${post_num},300,${DIAL_TRUNK_OPTIONS})
; end of modified additions
As I made some minor changes to predial-hook in DeadAGI (in this line: exten => s,n(a2bdial),DeadAGI(a2billing.php|2|${OUTNUM}) ), I attach the new output from Asterisk.
Attachment:
File comment: rechecked -> predial hook
rechecked.txt [7.87 KiB]
Downloaded 462 times
Should I put it somewhere else? I don't think so, because all other files are controlled by FreePBX and are automatically generated. BTW. in Custom Trunk String I Put A2B/$OUTNUM$ - why in GotoIf() there is AMP:A2B/? When I point out a route I point it to A2B/$OUTNUM$, not to AMP:A2B/$OUTNUM.
Thanks in advance.
Jakub