asterisk2billing.org http://forum.asterisk2billing.org/ |
|
how to charge all my users asterisk with a2billing http://forum.asterisk2billing.org/viewtopic.php?f=15&t=10771 |
Page 1 of 1 |
Author: | djoumbe [ Fri Apr 04, 2014 6:35 am ] |
Post subject: | how to charge all my users asterisk with a2billing |
Hi I'm new in asterisk, and i'm not english man i speek badly, so excuse if i'm not very clearly. I install asterisk 1.8.13 and a2billing v2.0.7 in server sparc64 sunv240, i already create users and they can call correctly baut without change the call. But now need to charge all my users (local users) registrated in the same server. This is my figuration: -in the folder /etc/asterisk/extensions_a2billing.conf [a2billing] exten => _1xxx,1,Dial(Local/${EXTEN}@a2billing_callingcad/n,60,gr); pour similation d'un trunk local [a2billing] include => a2billing_callingcard include => a2billing_monitoring include => a2billing_voucher include => a2billing include => a2billing_saydid include => a2billing_echotest [a2billing_callingcard] ; CallingCard application exten => _1XXX,1,NoOp(A2Billing Start) exten => _1XXX,n,Wait(1) exten => _1XXX,n,AGI(a2billing.php,1) exten => _1XXX,n,Hangup . . . - -in the folder /etc/asterisk/sip.conf [1003] type=friend username=1003 secret=1003 host=dynamic callerid="Djoumbe1" language=fr context=a2billing disallow=all allow=ulaw allow=alaw allow=gsm dtmfmode = rfc2833 allow=h264 allow=h263 [1001] type=friend username=1001 secret=1001 host=dynamic callerid="prive" language=fr context=a2billing disallow=all allow=ulaw allow=alaw allow=gsm dtmfmode = rfc2833 allow=h264 allow=h263 . . . . -In a2billing i have create: 1-provider: internal 2-trunk: vers-trunk-local TECH:local IP/HOST:a2billing PROVIDER:internal 3-ratecard: local-sip-ratecad TRUNK: vers-trunk-loca 4-rates: j'ai mis le tarif, le trunk et le ratecard 5- dans customers j'ai crée des account numbers j'ai lié le callid 1003 avec un account number. This is the error message when i trying to make a call: -- Executing [1003@a2billing:1] Dial("SIP/1001-00000018", "Local/1003@a2billing_callingcad/n,60,gr") in new stack [Apr 2 19:31:11] NOTICE[20106]: chan_local.c:899 local_call: No such extension/context 1003@a2billing_callingcad while calling Local channel -- Couldn't call Local/1003@a2billing_callingcad/n == Everyone is busy/congested at this time (0:0/0/0) -- Executing [1003@a2billing:2] Wait("SIP/1001-00000018", "1") in new stack -- Executing [1003@a2billing:3] AGI("SIP/1001-00000018", "a2billing.php,1") in new stack -- Launched AGI Script /usr/share/asterisk/agi-bin/a2billing.php -- <SIP/1001-00000018> Playing 'prepaid-enter-pin-number.gsm' (language 'fr') -- Playing 'prepaid-no-card-entered' (escape_digits=#) (sample_offset 0) -- <SIP/1001-00000018> Playing 'prepaid-enter-pin-number.gsm' (language 'fr') -- Playing 'prepaid-no-card-entered' (escape_digits=#) (sample_offset 0) -- <SIP/1001-00000018> Playing 'prepaid-enter-pin-number.gsm' (language 'fr') -- <SIP/1001-00000018>AGI Script a2billing.php completed, returning 4 == Spawn extension (a2billing, 1003, 3) exited non-zero on 'SIP/1001-00000018' == Using SIP RTP CoS mark 5 -- Executing [1001@a2billing:1] Dial("SIP/1003-00000019", "Local/1001@a2billing_callingcad/n,60,gr") in new stack [Apr 2 19:31:58] NOTICE[20109]: chan_local.c:899 local_call: No such extension/context 1001@a2billing_callingcad while calling Local channel -- Couldn't call Local/1001@a2billing_callingcad/n == Everyone is busy/congested at this time (0:0/0/0) -- Executing [1001@a2billing:2] Wait("SIP/1003-00000019", "1") in new stack -- Executing [1001@a2billing:3] AGI("SIP/1003-00000019", "a2billing.php,1") in new stack -- Launched AGI Script /usr/share/asterisk/agi-bin/a2billing.php -- <SIP/1003-00000019> Playing 'prepaid-enter-pin-number.gsm' (language 'fr') [Apr 2 19:32:03] NOTICE[17222]: chan_sip.c:24850 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1001 -- Playing 'prepaid-no-card-entered' (escape_digits=#) (sample_offset 0) -- <SIP/1003-00000019> Playing 'prepaid-enter-pin-number.gsm' (language 'fr') -- Playing 'prepaid-no-card-entered' (escape_digits=#) (sample_offset 0) -- <SIP/1003-00000019> Playing 'prepaid-enter-pin-number.gsm' (language 'fr') -- <SIP/1003-00000019>AGI Script a2billing.php completed, returning 4 == Spawn extension (a2billing, 1001, 3) exited non-zero on 'SIP/1003-00000019' Labo-sunV240*CLI> root@Labo-sunV240:~# tail -f /var/log/a2billing/a2billing_agi.log ] [02/04/2014 19:31:44]:[CallerID:1001]:[CN:]:[[exit]] [02/04/2014 19:31:59]:[file:a2billing.php - line:117 - uniqueid:]:[CallerID:]:[CN:]:[IDCONFIG : 1] [02/04/2014 19:31:59]:[file:a2billing.php - line:118 - uniqueid:]:[CallerID:]:[CN:]:[MODE : standard] [02/04/2014 19:31:59]:[file:Class.A2Billing.php - line:712 - uniqueid:1396456318.725]:[CallerID:1003]:[CN:]:[ get_agi_request_parameter = 1003 ; SIP/1003-00000019 ; 1396456318.725 ; ; 1001] [02/04/2014 19:31:59]:[file:a2billing.php - line:165 - uniqueid:1396456318.725]:[CallerID:1003]:[CN:]:[[ANSWER CALL]] [02/04/2014 19:32:31]:[file:a2billing.php - line:613 - uniqueid:1396456318.725]:[CallerID:1003]:[CN:]:[[NO AUTH (CN:, cia_res:-1, CREDIT:)]] [02/04/2014 19:32:31]:[file:Class.A2Billing.php - line:246 - uniqueid:1396456318.725]:[CallerID:1003]:[CN:]:[HANGUP DETECTED! ] [02/04/2014 19:32:31]:[CallerID:1003]:[CN:]:[[exit]] [02/04/2014 19:34:39]:[file:a2billing.php - line:117 - uniqueid:]:[CallerID:]:[CN:]:[IDCONFIG : 1] [02/04/2014 19:34:39]:[file:a2billing.php - line:118 - uniqueid:]:[CallerID:]:[CN:]:[MODE : standard] [02/04/2014 19:34:39]:[file:Class.A2Billing.php - line:712 - uniqueid:1396456478.728]:[CallerID:1003]:[CN:]:[ get_agi_request_parameter = 1003 ; SIP/1003-0000001a ; 1396456478.728 ; ; 1001] [02/04/2014 19:34:39]:[file:a2billing.php - line:165 - uniqueid:1396456478.728]:[CallerID:1003]:[CN:]:[[ANSWER CALL]] [02/04/2014 19:35:11]:[file:a2billing.php - line:613 - uniqueid:1396456478.728]:[CallerID:1003]:[CN:]:[[NO AUTH (CN:, cia_res:-1, CREDIT:)]] [02/04/2014 19:35:11]:[file:Class.A2Billing.php - line:246 - uniqueid:1396456478.728]:[CallerID:1003]:[CN:]:[HANGUP DETECTED! ] [02/04/2014 19:35:11]:[CallerID:1003]:[CN:]:[[exit]] Si j'effectue un appel et j'entre un des numeros que j'ai créé dans customer j'obtiens ceci: -- Executing [1003@a2billing:1] Dial("SIP/1001-0000001b", "Local/1003@a2billing_callingcad/n,60,gr") in new stack [Apr 2 19:36:26] NOTICE[20120]: chan_local.c:899 local_call: No such extension/context 1003@a2billing_callingcad while calling Local channel -- Couldn't call Local/1003@a2billing_callingcad/n == Everyone is busy/congested at this time (0:0/0/0) -- Executing [1003@a2billing:2] Wait("SIP/1001-0000001b", "1") in new stack -- Executing [1003@a2billing:3] AGI("SIP/1001-0000001b", "a2billing.php,1") in new stack -- Launched AGI Script /usr/share/asterisk/agi-bin/a2billing.php -- <SIP/1001-0000001b> Playing 'prepaid-enter-pin-number.gsm' (language 'fr') -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0) -- <SIP/1001-0000001b> Playing 'digits/8.slin' (language 'fr') -- <SIP/1001-0000001b> Playing 'digits/hundred.slin' (language 'fr') -- <SIP/1001-0000001b> Playing 'digits/20.slin' (language 'fr') -- <SIP/1001-0000001b> Playing 'digits/6.slin' (language 'fr') -- <SIP/1001-0000001b> Playing 'digits/thousand.slin' (language 'fr') -- <SIP/1001-0000001b> Playing 'digits/4.slin' (language 'fr') -- <SIP/1001-0000001b> Playing 'digits/hundred.slin' (language 'fr') -- <SIP/1001-0000001b> Playing 'digits/40.slin' (language 'fr') -- <SIP/1001-0000001b> Playing 'digits/6.slin' (language 'fr') -- Playing 'credit' (escape_digits=#) (sample_offset 0) -- Playing 'vm-and' (escape_digits=#) (sample_offset 0) -- <SIP/1001-0000001b> Playing 'digits/20.slin' (language 'fr') -- <SIP/1001-0000001b> Playing 'digits/8.slin' (language 'fr') -- Playing 'prepaid-cents' (escape_digits=#) (sample_offset 0) -- <SIP/1001-0000001b> Playing 'prepaid-sipiax-press9.gsm' (language 'fr') -- <SIP/1001-0000001b> Playing 'prepaid-enter-dest.gsm' (language 'fr') -- <SIP/1001-0000001b> Playing 'prepaid-sipiax-press9.gsm' (language 'fr') -- <SIP/1001-0000001b> Playing 'prepaid-sipiax-enternumber.gsm' (language 'fr') -- Playing 'prepaid-sipiax-num-nomatch' (escape_digits=#) (sample_offset 0) -- <SIP/1001-0000001b> Playing 'prepaid-sipiax-press9.gsm' (language 'fr') -- <SIP/1001-0000001b> Playing 'prepaid-enter-dest.gsm' (language 'fr') [Apr 2 19:38:03] NOTICE[17222]: chan_sip.c:24850 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1001 -- Playing 'prepaid-dest-unreachable' (escape_digits=#) (sample_offset 0) -- <SIP/1001-0000001b>AGI Script a2billing.php completed, returning 4 == Spawn extension (a2billing, 1003, 3) exited non-zero on 'SIP/1001-0000001b' Labo-sunV240*CLI> thanks for your help |
Author: | jroper [ Fri Apr 04, 2014 10:13 am ] |
Post subject: | Re: how to charge all my users asterisk with a2billing |
Hi Code: [a2billing] exten => _1xxx,1,Dial(Local/${EXTEN}@a2billing_callingcad/n,60,gr); pour similation d'un trunk local You spelled callingcard wrong. I'd advise you create your SIP peers in a2billing. Yours Joe |
Author: | djoumbe [ Tue Apr 08, 2014 10:23 am ] |
Post subject: | Re: how to charge all my users asterisk with a2billing |
jroper wrote: Hi Code: [a2billing] exten => _1xxx,1,Dial(Local/${EXTEN}@a2billing_callingcad/n,60,gr); pour similation d'un trunk local You spelled callingcard wrong. I'd advise you create your SIP peers in a2billing. Yours Joe Hi joe; Please can you help me to give an example of SIP peers in a2billing? I try to create a custome and modify my file /etc/asterisk/extensions_a2billing.conf and now i have this message: [Apr 8 13:12:59] NOTICE[2539]: chan_sip.c:24850 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1003 -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0) -- <SIP/1003-00000007> Playing 'digits/8.gsm' (language 'en') -- <SIP/1003-00000007> Playing 'digits/hundred.gsm' (language 'en') -- <SIP/1003-00000007> Playing 'digits/20.gsm' (language 'en') -- <SIP/1003-00000007> Playing 'digits/6.gsm' (language 'en') -- <SIP/1003-00000007> Playing 'digits/thousand.gsm' (language 'en') -- <SIP/1003-00000007> Playing 'digits/4.gsm' (language 'en') -- <SIP/1003-00000007> Playing 'digits/hundred.gsm' (language 'en') -- <SIP/1003-00000007> Playing 'digits/40.gsm' (language 'en') -- <SIP/1003-00000007> Playing 'digits/6.gsm' (language 'en') -- Playing 'credit' (escape_digits=#) (sample_offset 0) -- Playing 'vm-and' (escape_digits=#) (sample_offset 0) -- <SIP/1003-00000007> Playing 'digits/20.gsm' (language 'en') -- <SIP/1003-00000007> Playing 'digits/8.gsm' (language 'en') -- Playing 'prepaid-cents' (escape_digits=#) (sample_offset 0) -- <SIP/1003-00000007> Playing 'prepaid-sipiax-press9.gsm' (language 'en') -- <SIP/1003-00000007> Playing 'prepaid-enter-dest.gsm' (language 'en') -- Playing 'prepaid-dest-unreachable' (escape_digits=#) (sample_offset 0) -- <SIP/1003-00000007> Playing 'prepaid-sipiax-press9.gsm' (language 'en') -- <SIP/1003-00000007> Playing 'prepaid-sipiax-enternumber.gsm' (language 'en') -- Playing 'prepaid-sipiax-num-nomatch' (escape_digits=#) (sample_offset 0) -- <SIP/1003-00000007> Playing 'prepaid-sipiax-press9.gsm' (language 'en') -- <SIP/1003-00000007> Playing 'prepaid-enter-dest.gsm' (language 'en') -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0) -- <SIP/1003-00000007> Playing 'digits/40.gsm' (language 'en') -- Playing 'prepaid-minutes' (escape_digits=#) (sample_offset 0) -- AGI Script Executing Application: (DIAL) Options: (local/a2billing/1001,60,HRrL(2400000:61000:30000)) > Limit Data for this call: > timelimit = 2400000 ms (2400.000 s) > play_warning = 61000 ms (61.000 s) > play_to_caller = yes > play_to_callee = no > warning_freq = 30000 ms (30.000 s) > start_sound = > warning_sound = timeleft > end_sound = [Apr 8 13:14:36] NOTICE[5051]: chan_local.c:899 local_call: No such extension/context a2billing@default while calling Local channel -- Couldn't call local/a2billing/1001 == Everyone is busy/congested at this time (0:0/0/0) -- Playing 'prepaid-dest-unreachable' (escape_digits=#) (sample_offset 0) -- <SIP/1003-00000007>AGI Script a2billing.php completed, returning 4 == Spawn extension (a2billing, 9, 3) exited non-zero on 'SIP/1003-00000007' |
Author: | jroper [ Tue Apr 08, 2014 11:15 am ] |
Post subject: | Re: how to charge all my users asterisk with a2billing |
Hi If you are new to all of this, then I would recommend that you consider a Managed Install as described at http://www.star2billing.com/consultancy/managed-install/ It's more expensive, but you will be earning money from A2Billing far quicker. It provides you with installation, training and deployment support. Alternatively, see http://www.asterisk2billing.org/documentation/ Joe |
Author: | djoumbe [ Wed Apr 09, 2014 4:59 pm ] |
Post subject: | Re: how to charge all my users asterisk with a2billing |
jroper wrote: Hi If you are new to all of this, then I would recommend that you consider a Managed Install as described at http://www.star2billing.com/consultancy/managed-install/ It's more expensive, but you will be earning money from A2Billing far quicker. It provides you with installation, training and deployment support. Alternatively, see http://www.asterisk2billing.org/documentation/ Joe Hi ok i'll check this link to see if i can learn something. merci |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |