Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 11:47 am
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Elastix 2.4 with A2Billing 1.9.4 Cuprum
PostPosted: Mon Dec 16, 2013 4:40 am 
Offline

Joined: Mon Dec 16, 2013 1:17 am
Posts: 3
Hi Guys,

I'm using Elastix with following version detail :
Kernel
Linux(x86_64)-2.6.18-371.1.2.el5

Elastix
elastix-2.4.0-2
elastix-portknock-0.0.1-0
elastix-my_extension-2.4.0-3
elastix-pbx-2.4.0-7
elastix-reports-2.4.0-4
elastix-vtigercrm-5.2.1-7
elastix-firstboot-2.4.0-3
elastix-fax-2.4.0-3
elastix-security-2.4.0-6
elastix-agenda-2.4.0-11
elastix-im-2.4.0-2
elastix-addons-2.4.0-6
elastix-extras-2.4.0-2
elastix-a2billing-1.9.4-5
elastix-asterisk-sounds-1.2.3-1
elastix-framework-2.4.0-11
elastix-system-2.4.0-11
elastix-email_admin-2.4.0-5

RoundCubeMail
RoundCubeMail-0.3.1-12

Mail
postfix-2.3.3-6.el5
cyrus-imapd-2.3.7-12.el5_7.2

IM
openfire-3.7.1-1

FreePBX
freePBX-2.8.1-17

Asterisk
asterisk-11.6.0-1
asterisk-perl-0.10-2
asterisk-addons-11.6.0-1

FAX
hylafax-4.3.10-2rhel5
iaxmodem-1.2.0-2

DRIVERS
dahdi-2.6.1-6
rhino-0.99.6-0.b2
wanpipe-util-7.0.5-0

and A2Billing 1.9.4 (Cuprum)

I'd like to configure simple billing system with this Elastix and A2Billing
So i follow this instruction by SysAdminMan Blog
http://sysadminman.net/blog/2010/using- ... astix-1307
Step 1, 2, 3, 4, 5, 6, 7 is going fine
I can tell because in step 4, there is a testing to do outgoing call, and my outgoing is just fine

in step 4
MyTrunk is '7001-Flexi428'
Outbound Route is '081212151---' go through trunk '7001-Flexi428'
and the outgoing call is working well

then i proceed to step 5, 6, 7 which concern about the configuration of a2billing
5 = creating a trunk in a2billing
6 = creating a customer in a2billing
7 = creating call plan and rate card in a2billing

i can still follow the instruction and understand every of it till step 8

When entering step 8, i do the following :
1. create custom trunk with ”custom dial string“ is 'Local/$OUTNUM$@a2billing/n'
2. edit my 081212151--- outgoing route's trunk from '7001-Flexi428' into that custom trunk
3. set my account number from a2billing to elastix extension 306 account code, which is '5914667295'
306 is my testing extension i create in Elastix

it goes weird when i can't find any a2billing.conf in /etc/asterisk/, but i can find it on /etc/ which only consist database configuration just like Matt, the administrator of sysadminman.net said
Quote :
matt Post author25 October 2012 at 8:32 am
Those instructions are a for an older version of a2billing than you are running. The a2billing.conf file now lives under /etc, but it only contains database connection details, all other configuration settings are now stored in the MySQL database.
If A2Billing is not running in ‘realtime’ mode (non realtime mode will be the default), when you create a SIP account in a2billing those details are written to a file called additional_a2billing_sip.conf. You need to make sure that Asterisk config file is being loaded by Asterisk. There will be a line saying – “#include additional_a2billing_sip.conf’ in one of the other Asterisk config files.

without proceeding to those remaining instruction, i tried to call from my x-Lite registered as 306 to dest number 081212151---
but i got 'all circuits are busy now
--
localhost*CLI>
== Using SIP VIDEO TOS bits 136
== Using SIP VIDEO CoS mark 6
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [081212151650@from-internal:1] Macro("SIP/306-00000b2a", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/306-00000b2a", "AMPUSER=306") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/306-00000b2a", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/306-00000b2a", "1?Set(REALCALLERIDNUM=306)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/306-00000b2a", "AMPUSER=306") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/306-00000b2a", "AMPUSERCIDNAME=Danny Mobile") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/306-00000b2a", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/306-00000b2a", "AMPUSERCID=306") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/306-00000b2a", "CALLERID(all)="Danny Mobile" <306>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/306-00000b2a", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/306-00000b2a", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("SIP/306-00000b2a", "CALLERID(number)=306") in new stack
-- Executing [s@macro-user-callerid:20] Set("SIP/306-00000b2a", "CALLERID(name)=Danny Mobile") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("SIP/306-00000b2a", "Using CallerID "Danny Mobile" <306>") in new stack
-- Executing [081212151650@from-internal:2] NoOp("SIP/306-00000b2a", "Calling Out Route: call-a2billing") in new stack
-- Executing [081212151650@from-internal:3] Set("SIP/306-00000b2a", "MOHCLASS=default") in new stack
-- Executing [081212151650@from-internal:4] Set("SIP/306-00000b2a", "_NODEST=") in new stack
-- Executing [081212151650@from-internal:5] Macro("SIP/306-00000b2a", "record-enable,306,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/306-00000b2a", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/306-00000b2a", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/306-00000b2a", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/306-00000b2a", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("SIP/306-00000b2a", "1?MacroExit()") in new stack
-- Executing [081212151650@from-internal:6] Macro("SIP/306-00000b2a", "dialout-trunk,9,081212151650,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/306-00000b2a", "DIAL_TRUNK=9") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/306-00000b2a", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/306-00000b2a", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/306-00000b2a", "DIAL_NUMBER=081212151650") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/306-00000b2a", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/306-00000b2a", "OUTBOUND_GROUP=OUT_9") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/306-00000b2a", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/306-00000b2a", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/306-00000b2a", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/306-00000b2a", "outbound-callerid,9") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/306-00000b2a", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/306-00000b2a", "0?Set(REALCALLERIDNUM=306)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/306-00000b2a", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/306-00000b2a", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/306-00000b2a", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/306-00000b2a", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/306-00000b2a", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/306-00000b2a", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/306-00000b2a", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/306-00000b2a", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/306-00000b2a", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/306-00000b2a", "0?sub-flp-9,s,1") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/306-00000b2a", "OUTNUM=081212151650") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/306-00000b2a", "custom=AMP") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/306-00000b2a", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/306-00000b2a", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/306-00000b2a", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/306-00000b2a", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/306-00000b2a", "1?customtrunk") in new stack
-- Goto (macro-dialout-trunk,s,22)
-- Executing [s@macro-dialout-trunk:22] Set("SIP/306-00000b2a", "pre_num=AMP:Local/") in new stack
-- Executing [s@macro-dialout-trunk:23] Set("SIP/306-00000b2a", "the_num=OUTNUM") in new stack
-- Executing [s@macro-dialout-trunk:24] Set("SIP/306-00000b2a", "post_num=@a2billing/n") in new stack
-- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/306-00000b2a", "1?outnum:skipoutnum") in new stack
-- Goto (macro-dialout-trunk,s,26)
-- Executing [s@macro-dialout-trunk:26] Set("SIP/306-00000b2a", "the_num=081212151650") in new stack
-- Executing [s@macro-dialout-trunk:27] Dial("SIP/306-00000b2a", "Local/081212151650@a2billing/n,300,") in new stack
-- Couldn't call Local/081212151650@a2billing/n
== Everyone is busy/congested at this time (0:0/0/0)
-- Executing [s@macro-dialout-trunk:28] NoOp("SIP/306-00000b2a", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0") in new stack
-- Executing [s@macro-dialout-trunk:29] Goto("SIP/306-00000b2a", "s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/306-00000b2a", "RC=0") in new stack
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/306-00000b2a", "0,1") in new stack
-- Goto (macro-dialout-trunk,0,1)
-- Executing [0@macro-dialout-trunk:1] Goto("SIP/306-00000b2a", "continue,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/306-00000b2a", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,continue,3)
-- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/306-00000b2a", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 0 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:4] Set("SIP/306-00000b2a", "CALLERID(number)=306") in new stack
-- Executing [081212151650@from-internal:7] Macro("SIP/306-00000b2a", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Progress("SIP/306-00000b2a", "") in new stack
-- Executing [s@macro-outisbusy:2] GotoIf("SIP/306-00000b2a", "0?emergency,1") in new stack
-- Executing [s@macro-outisbusy:3] GotoIf("SIP/306-00000b2a", "0?intracompany,1") in new stack
-- Executing [s@macro-outisbusy:4] Playback("SIP/306-00000b2a", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
-- <SIP/306-00000b2a> Playing 'all-circuits-busy-now.gsm' (language 'en')
> 0x2b01a4719d70 -- Probation passed - setting RTP source address to 192.168.5.101:45638
-- <SIP/306-00000b2a> Playing 'pls-try-call-later.gsm' (language 'en')
-- Executing [s@macro-outisbusy:5] Congestion("SIP/306-00000b2a", "20") in new stack
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'SIP/306-00000b2a' in macro 'outisbusy'
== Spawn extension (from-internal, 081212151650, 7) exited non-zero on 'SIP/306-00000b2a'
-- Executing [h@from-internal:1] Macro("SIP/306-00000b2a", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/306-00000b2a", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("SIP/306-00000b2a", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/306-00000b2a", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,28)
-- Executing [s@macro-hangupcall:28] NoOp("SIP/306-00000b2a", "End of MEETME check") in new stack
-- Executing [s@macro-hangupcall:29] GotoIf("SIP/306-00000b2a", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] NoOp("SIP/306-00000b2a", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:35] GotoIf("SIP/306-00000b2a", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,41)
-- Executing [s@macro-hangupcall:41] NoOp("SIP/306-00000b2a", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:42] GotoIf("SIP/306-00000b2a", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,45)
-- Executing [s@macro-hangupcall:45] GotoIf("SIP/306-00000b2a", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,48)
-- Executing [s@macro-hangupcall:48] GotoIf("SIP/306-00000b2a", "1?theend") in new stack
-- Goto (macro-hangupcall,s,50)
-- Executing [s@macro-hangupcall:50] AGI("SIP/306-00000b2a", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <SIP/306-00000b2a>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:51] Hangup("SIP/306-00000b2a", "") in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/306-00000b2a' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/306-00000b2a'
localhost*CLI>
--

I wonder how to manage the Elastix v2.4 with this a2billing v1.9.4
because the old version guide doesn't help much with very few clue to follow

For additional,
in /etc/asterisk/additional_a2billing_sip.conf is always empty no matter i add customers in a2billing (customer > add:search > add customer)
I wonder if there is something wrong with this situation


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 
Predictive Dialer


All times are UTC


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group