my trunk minutes used remains 00:00

savoip

Joined
Nov 15, 2009
Messages
4
Likes
0
Points
0
#1
hi,
first i have added a trunk in Asterisk, then added the same one in A2B, it's an IAX2, so i put the following info:
LABEL: TEST
TECH: IAX2
IP/HOST: (the name of the trunk in Asterisk) 999
( i tried both its name, and its IP, same results )

then i added the necessary code in extensions.conf:

[macro-dialout-trunk-predial-hook]
exten => s,1,GotoIf($["${OUT_${DIAL_TRUNK}:4:4}" = "A2B/"]?custom-freepbx-a2billing,${OUTNUM},1:2)
exten => s,2,MacroExit

[custom-freepbx-a2billing]
exten => _X.,1,DeadAGI(a2billing.php|${OUT_${DIAL_TRUNK}:8})
exten => _X.,n,Hangup()


now in my calls log i see this:

-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/5060-b7b10940", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/5060-b7b10940", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] GotoIf("SIP/5060-b7b10940", "0?custom-freepbx-a2billing|0554329218|1:2") in new stack
-- Goto (macro-dialout-trunk-predial-hook,s,2)
-- Executing [s@macro-dialout-trunk-predial-hook:2] MacroExit("SIP/5060-b7b10940", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/5060-b7b10940", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/5060-b7b10940", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/5060-b7b10940", "SIP/10001/0554329218|300|") in new stack



i am still missing something?
i still cant figure out why the MINUTES USED in my A2B trunk still 00:00

please let me know what to do.

thanks all for any help.
 

Members online

No members online now.

Forum statistics

Threads
30,952
Messages
130,980
Members
17,654
Latest member
janko67
Top