Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Dec 12, 2018 2:39 am
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: calls hangup - file prepaid you have does not exist
PostPosted: Wed Feb 20, 2008 11:36 pm 
Offline

Joined: Wed Feb 20, 2008 5:16 am
Posts: 9
Hi,

I am very new to ASTERISK & A2BILLING. Before i setup A2BILLING SIP-SIP calls were working fine. But when i created account from A2B they cant call each other. I have checked all the threads and tried almost everything. I would appreciate if someone could point me in right direction to get my issue resolved. Following is the log :


*CLI> SIP SHOW PEERS
Name/username Host Dyn Nat ACL Port Status
7830551651/7830551651 192.168.0.34 D N 5060 OK (107 ms)
5860512297/5860512297 192.168.0.61 D N 40602 OK (427 ms)
phone2/phone2 (Unspecified) D N 0 Unmonitored
phone1/phone1 (Unspecified) D N 0 Unmonitored
4 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 2 offline]
*CLI> SIP DISPLAY
No such command 'SIP DISPLAY' (type 'help' for help)
*CLI> SIP SHOW HELP
No such command 'SIP SHOW HELP' (type 'help' for help)
*CLI> -- Saved useragent "Linksys/SPA3102-5.1.7(GW)" for peer 7830551651
-- Executing [[email protected]:1] Answer("SIP/5860512297-08333da0", "") in new stack
-- Executing [[email protected]:2] Wait("SIP/5860512297-08333da0", "2") in new stack
-- Executing [[email protected]:3] DeadAGI("SIP/5860512297-08333da0", "a2billing.php") in new stack
[Feb 21 10:51:04] WARNING[3295]: res_agi.c:2116 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php: A2Billing AGI internal configuration:
a2billing.php: Array
a2billing.php: (
a2billing.php: [debug] => 3
a2billing.php: [asterisk_version] => 1_2
a2billing.php: [answer_call] => 1
a2billing.php: [play_audio] => 1
a2billing.php: [say_goodbye] =>
a2billing.php: [play_menulanguage] =>
a2billing.php: [force_language] => EN
a2billing.php: [intro_prompt] =>
a2billing.php: [min_credit_2call] => 0
a2billing.php: [min_duration_2bill] => 0
a2billing.php: [notenoughcredit_cardnumber] => 1
a2billing.php: [notenoughcredit_assign_newcardnumber_cid] => 1
a2billing.php: [use_dnid] =>
a2billing.php: [no_auth_dnid] => Array
a2billing.php: (
a2billing.php: [0] => 2400
a2billing.php: [1] => 2300
a2billing.php: )
a2billing.php:
a2billing.php: [number_try] => 3
a2billing.php: [force_callplan_id] =>
a2billing.php: [say_balance_after_auth] => 1
a2billing.php: [say_balance_after_call] =>
a2billing.php: [say_rateinitial] =>
a2billing.php: [say_timetocall] => 1
a2billing.php: [auto_setcallerid] => 1
a2billing.php: [force_callerid] => 1
a2billing.php: [cid_sanitize] =>
a2billing.php: [cid_enable] =>
a2billing.php: [cid_askpincode_ifnot_callerid] => 1
a2billing.php: [cid_auto_assign_card_to_cid] => 1
a2billing.php: [cid_auto_create_card] =>
a2billing.php: [cid_auto_create_card_len] => 10
a2billing.php: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php: [cid_auto_create_card_credit] => 0
a2billing.php: [cid_auto_create_card_credit_limit] => 1000
a2billing.php: [cid_auto_create_card_tariffgroup] => 6
a2billing.php: [callerid_authentication_over_cardnumber] =>
a2billing.php: [sip_iax_friends] => 1
a2billing.php: [sip_iax_pstn_direct_call_prefix] => 9
a2billing.php: [sip_iax_pstn_direct_call] =>
a2billing.php: [ivr_voucher] =>
a2billing.php: [ivr_voucher_prefix] => 8
a2billing.php: [jump_voucher_if_min_credit] =>
a2billing.php: [extracharge_did] => Array
a2billing.php: (
a2billing.php: [0] =>
a2billing.php: )
a2billing.php:
a2billing.php: [extracharge_fee] => Array
a2billing.php: (
a2billing.php: [0] =>
a2billing.php: )
a2billing.php:
a2billing.php: [international_prefixes] => Array
a2billing.php: (
a2billing.php: [0] => 011
a2billing.php: [1] => 00
a2billing.php: [2] => 09
a2billing.php: [3] => 1
a2billing.php: )
a2billing.php:
a2billing.php: [dialcommand_param] => |60|RgrL(%timeout%:61000:30000)
a2billing.php: [dialcommand_param_sipiax_friend] => |60|RgrL(3600000:61000:30000)
a2billing.php: [switchdialcommand] =>
a2billing.php: [failover_recursive_limit] => 2
a2billing.php: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php: [send_reminder] =>
a2billing.php: [record_call] =>
a2billing.php: [monitor_formatfile] => gsm
a2billing.php: [agi_force_currency] =>
a2billing.php: [currency_association] => Array
a2billing.php: (
a2billing.php: [0] => usd:dollars
a2billing.php: [1] => mxn:pesos
a2billing.php: [2] => eur:euros
a2billing.php: [3] => all:credit
a2billing.php: )
a2billing.php:
a2billing.php: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php: [file_conf_enter_menulang] => prepaid-menulang2
a2billing.php: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php: [logger_enable] => 1
a2billing.php: [log_file] => /tmp/a2billing.log
a2billing.php: [currency_association_internal] => Array
a2billing.php: (
a2billing.php: [usd] => dollars
a2billing.php: [mxn] => pesos
a2billing.php: [eur] => euros
a2billing.php: [all] => credit
a2billing.php: )
a2billing.php:
a2billing.php: [ivr_voucher_prefixe] => 8
a2billing.php: )
a2billing.php:
a2billing.php: file:a2billing.php - line:76 - IDCONFIG : 1
a2billing.php: file:a2billing.php - line:77 - MODE : standard
a2billing.php: file:a2billing.php - line:89 - AGI Request:
a2billing.php: file:a2billing.php - line:90 - Array
a2billing.php: (
a2billing.php: [agi_request] => a2billing.php
a2billing.php: [agi_channel] => SIP/5860512297-08333da0
a2billing.php: [agi_language] => en
a2billing.php: [agi_type] => SIP
a2billing.php: [agi_uniqueid] => 1203551462.0
a2billing.php: [agi_callerid] => 705344371686192
a2billing.php: [agi_calleridname] => 5860512297
a2billing.php: [agi_callingpres] => 0
a2billing.php: [agi_callingani2] => 0
a2billing.php: [agi_callington] => 0
a2billing.php: [agi_callingtns] => 0
a2billing.php: [agi_dnid] => 7830551651
a2billing.php: [agi_rdnis] => unknown
a2billing.php: [agi_context] => a2billing
a2billing.php: [agi_extension] => 7830551651
a2billing.php: [agi_priority] => 3
a2billing.php: [agi_enhanced] => 0.0
a2billing.php: [agi_accountcode] => 5860512297
a2billing.php: )
a2billing.php:
a2billing.php: file:Class.A2Billing.php - line:616 - get_agi_request_parameter = 705344371686192 ; SIP/5860512297-08333da0 ; 1203551462.0 ; 5860512297 ; 7830551651
a2billing.php: file:a2billing.php - line:139 - [ANSWER CALL]
a2billing.php: file:Class.A2Billing.php - line:585 - FORCE LANGUAGE : EN
[Feb 21 10:51:06] WARNING[3295]: func_language.c:61 language_write: LANGUAGE() is deprecated; use CHANNEL(language) instead.
a2billing.php: file:Class.A2Billing.php - line:594 - [SET LANGUAGE() en]
a2billing.php: file:Class.A2Billing.php - line:1640 - SELECT credit, tariff, activated, inuse, simultaccess, typepaid, creditlimit, language, removeinterprefix, redial, enableexpire, UNIX_TIMESTAMP(expirationdate), expiredays, nbused, UNIX_TIMESTAMP(firstusedate), UNIX_TIMESTAMP(cc_card.creationdate), cc_card.currency, cc_card.lastname, cc_card.firstname, cc_card.email, cc_card.uipass, cc_card.id_campaign, cc_card.id, useralias FROM cc_card LEFT JOIN cc_tariffgroup ON tariff=cc_tariffgroup.id WHERE username='5860512297'
a2billing.php: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='5860512297']
a2billing.php: file:Class.A2Billing.php - line:1950 - [A2Billing] SAY BALANCE : 20
a2billing.php:
a2billing.php: file:Class.A2Billing.php - line:1143 - [CURRENCY : USD]
[Feb 21 10:51:06] WARNING[3295]: file.c:563 ast_openstream_full: File prepaid-you-have does not exist in any format
-- <SIP/5860512297-08333da0> Playing 'digits/20' (language 'en')
[Feb 21 10:51:07] WARNING[3295]: file.c:563 ast_openstream_full: File dollars does not exist in any format
a2billing.php: file:Class.A2Billing.php - line:1399 - [AUTO SetCallerID]
a2billing.php: file:Class.A2Billing.php - line:1403 - [EXEC SetCallerID : 1]
a2billing.php: file:a2billing.php - line:170 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:171 - [CREDIT : 20][CREDIT MIN_CREDIT_2CALL : 0]
[Feb 21 10:51:07] WARNING[3295]: file.c:563 ast_openstream_full: File prepaid-sipiax-press9 does not exist in any format
[Feb 21 10:51:07] WARNING[3295]: file.c:866 ast_streamfile: Unable to open prepaid-sipiax-press9 (format 0x4 (ulaw)): No such file or directory
a2billing.php: file:a2billing.php - line:282 - RES SIP_IAX_FRIEND DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:671 - && && 10&& 0
[Feb 21 10:51:07] WARNING[3295]: file.c:563 ast_openstream_full: File prepaid-enter-dest does not exist in any format
[Feb 21 10:51:07] WARNING[3295]: file.c:866 ast_streamfile: Unable to open prepaid-enter-dest (format 0x4 (ulaw)): No such file or directory
a2billing.php: file:Class.A2Billing.php - line:678 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:696 - DESTINATION ::> -1
a2billing.php: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> -1
[Feb 21 10:51:07] WARNING[3295]: file.c:563 ast_openstream_full: File prepaid-invalid-digits does not exist in any format
a2billing.php: file:a2billing.php - line:170 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:171 - [CREDIT : 20][CREDIT MIN_CREDIT_2CALL : 0]
[Feb 21 10:51:07] WARNING[3295]: file.c:563 ast_openstream_full: File prepaid-sipiax-press9 does not exist in any format
[Feb 21 10:51:07] WARNING[3295]: file.c:866 ast_streamfile: Unable to open prepaid-sipiax-press9 (format 0x4 (ulaw)): No such file or directory
a2billing.php: file:a2billing.php - line:282 - RES SIP_IAX_FRIEND DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:671 - 0 && && 10&& 1
[Feb 21 10:51:07] WARNING[3295]: file.c:563 ast_openstream_full: File prepaid-enter-dest does not exist in any format
[Feb 21 10:51:07] WARNING[3295]: file.c:866 ast_streamfile: Unable to open prepaid-enter-dest (format 0x4 (ulaw)): No such file or directory
a2billing.php: file:Class.A2Billing.php - line:678 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:696 - DESTINATION ::> -1
a2billing.php: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> -1
[Feb 21 10:51:07] WARNING[3295]: file.c:563 ast_openstream_full: File prepaid-invalid-digits does not exist in any format
a2billing.php: file:a2billing.php - line:170 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:171 - [CREDIT : 20][CREDIT MIN_CREDIT_2CALL : 0]
[Feb 21 10:51:07] WARNING[3295]: file.c:563 ast_openstream_full: File prepaid-sipiax-press9 does not exist in any format
[Feb 21 10:51:07] WARNING[3295]: file.c:866 ast_streamfile: Unable to open prepaid-sipiax-press9 (format 0x4 (ulaw)): No such file or directory
a2billing.php: file:a2billing.php - line:282 - RES SIP_IAX_FRIEND DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:671 - 0 && && 10&& 2
[Feb 21 10:51:07] WARNING[3295]: file.c:563 ast_openstream_full: File prepaid-enter-dest does not exist in any format
[Feb 21 10:51:07] WARNING[3295]: file.c:866 ast_streamfile: Unable to open prepaid-enter-dest (format 0x4 (ulaw)): No such file or directory
a2billing.php: file:Class.A2Billing.php - line:678 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:696 - DESTINATION ::> -1
a2billing.php: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> -1
[Feb 21 10:51:07] WARNING[3295]: file.c:563 ast_openstream_full: File prepaid-invalid-digits does not exist in any format
a2billing.php: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='5860512297']
-- AGI Script a2billing.php completed, returning 0

further when i run ASTERISK using "Asterisk -c" i get following messages

[ Initializing Custom Configuration Options ]
[Feb 21 11:09:55] NOTICE[3378]: cdr.c:1362 do_reload: CDR simple logging enabled.
[Feb 21 11:09:55] NOTICE[3378]: loader.c:831 load_modules: 135 modules will be loaded.
...[Feb 21 11:09:55] WARNING[3378]: res_smdi.c:722 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
..................................[Feb 21 11:09:55] WARNING[3378]: pbx.c:4672 add_pri: Unable to register extension '_X.', priority 1 in 'a2billing', already in use
[Feb 21 11:09:55] WARNING[3378]: pbx.c:4672 add_pri: Unable to register extension '_X.', priority 2 in 'a2billing', already in use
[Feb 21 11:09:55] WARNING[3378]: pbx.c:4672 add_pri: Unable to register extension '_X.', priority 3 in 'a2billing', already in use
[Feb 21 11:09:55] WARNING[3378]: pbx.c:4672 add_pri: Unable to register extension '_X.', priority 4 in 'a2billing', already in use
[Feb 21 11:09:55] WARNING[3378]: pbx.c:4672 add_pri: Unable to register extension '_X.', priority 5 in 'a2billing', already in use
..................................................................................[Feb 21 11:09:55] NOTICE[3378]: pbx_ael.c:4094 pbx_load_module: Starting AEL load process.
[Feb 21 11:09:55] NOTICE[3378]: pbx_ael.c:4101 pbx_load_module: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'.
[Feb 21 11:09:55] NOTICE[3378]: pbx_ael.c:4109 pbx_load_module: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'.
[Feb 21 11:09:55] NOTICE[3378]: pbx_ael.c:4112 pbx_load_module: AEL load process: checked config file name '/etc/asterisk/extensions.ael'.
[Feb 21 11:09:55] NOTICE[3378]: pbx_ael.c:4114 pbx_load_module: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'.
[Feb 21 11:09:55] NOTICE[3378]: pbx_ael.c:4117 pbx_load_module: AEL load process: merged config file name '/etc/asterisk/extensions.ael'.
[Feb 21 11:09:55] NOTICE[3378]: pbx_ael.c:4120 pbx_load_module: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.
.............. ]
Asterisk Ready.
*CLI> [Feb 21 11:09:56] NOTICE[3400]: chan_sip.c:12414 handle_response_peerpoke: Peer '7830551651' is now Reachable. (44ms / 2000ms)
[Feb 21 11:09:56] NOTICE[3400]: chan_sip.c:12414 handle_response_peerpoke: Peer '5860512297' is now Reachable. (243ms / 2000ms)

regards


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 21, 2008 12:37 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Hi Mitesh. Or is it vavdiyaharesh. Or maybe it's arpitrmodi?
You've started one thread for each of the grave configuration errors revealed by your debug log. What are you trying prove here?
:shock: You didn't yet make the association between not hearing hearing any prompts and the helpful error messages appearing at the very same moment indicating you haven't installed the prompts?
Why is this in the Bugs forum? The only bug I see here is someone having a PICNIC. Problem In Chair, Not In Computer.


Top
 Profile  
 
 Post subject: hi
PostPosted: Tue Feb 26, 2008 2:54 am 
Offline

Joined: Wed Feb 20, 2008 5:16 am
Posts: 9
hi stavros,

my apologies for posting it in bugs section. As i am very new to the forum and asterisk i was not sure what i am doing.

I was waiting for your response and would like to thank you for that.

can you please let me know how can i associate the prompts as i have followed all the installation steps on A2BILLING site.

thanks again

Added after 3 hours 11 minutes:

all the files are already installed if this what you mean to say. If i am wrong pl. correct me.

[[email protected] asterisk]# ls
agi-bin firmware keys mohmp3 sounds
astdb images moh scripts static-http
[[email protected] asterisk]# cd sounds
[[email protected] sounds]# ls
agent-alreadyon.gsm tt-allbusy.gsm
agent-incorrect.gsm tt-monkeys.gsm
agent-loggedoff.gsm tt-monkeysintro.gsm
agent-loginok.gsm tt-somethingwrong.gsm
agent-newlocation.gsm tt-weasels.gsm
agent-pass.gsm vm-advopts.gsm
agent-user.gsm vm-and.gsm
asterisk-core-sounds-en-gsm-1.4.7.tar.gz vm-calldiffnum.gsm
asterisk-moh-freeplay-wav.tar.gz vm-changeto.gsm
auth-incorrect.gsm vm-Cust1.gsm
auth-thankyou.gsm vm-Cust2.gsm
beeperr.gsm vm-Cust3.gsm
beep.gsm vm-Cust4.gsm
conf-adminmenu.gsm vm-Cust5.gsm
conf-enteringno.gsm vm-deleted.gsm
conf-errormenu.gsm vm-delete.gsm
conf-getchannel.gsm vm-dialout.gsm
conf-getconfno.gsm vm-enter-num-to-call.gsm
conf-getpin.gsm vm-extension.gsm
conf-hasjoin.gsm vm-Family.gsm
conf-hasleft.gsm vm-first.gsm
conf-invalid.gsm vm-for.gsm
conf-invalidpin.gsm vm-forward.gsm
conf-kicked.gsm vm-forwardoptions.gsm
conf-leaderhasleft.gsm vm-Friends.gsm
conf-locked.gsm vm-from-extension.gsm
conf-lockednow.gsm vm-from.gsm
conf-muted.gsm vm-from-phonenumber.gsm
conf-noempty.gsm vm-goodbye.gsm
conf-onlyone.gsm vm-helpexit.gsm
conf-onlyperson.gsm vm-INBOX.gsm
conf-otherinparty.gsm vm-incorrect.gsm
conf-placeintoconf.gsm vm-incorrect-mailbox.gsm
conf-thereare.gsm vm-instructions.gsm
conf-unlockednow.gsm vm-intro.gsm
conf-unmuted.gsm vm-isonphone.gsm
conf-usermenu.gsm vm-isunavail.gsm
conf-userswilljoin.gsm vm-last.gsm
conf-userwilljoin.gsm vm-leavemsg.gsm
conf-waitforleader.gsm vm-login.gsm
core-sounds-en.txt vm-mailboxfull.gsm
CREDITS-asterisk-core-en-1.4.7 vm-message.gsm
demo-abouttotry.gsm vm-messages.gsm
demo-congrats.gsm vm-minutes.gsm
demo-echodone.gsm vm-mismatch.gsm
demo-echotest.gsm vm-msginstruct.gsm
demo-enterkeywords.gsm vm-msgsaved.gsm
demo-instruct.gsm vm-newpassword.gsm
demo-moreinfo.gsm vm-newuser.gsm
demo-nogo.gsm vm-next.gsm
demo-nomatch.gsm vm-nobodyavail.gsm
demo-thanks.gsm vm-nobox.gsm
dictate vm-no.gsm
digits vm-nomore.gsm
dir-instr.gsm vm-nonumber.gsm
dir-intro-fn.gsm vm-num-i-have.gsm
dir-intro.gsm vm-Old.gsm
dir-nomatch.gsm vm-onefor.gsm
dir-nomore.gsm vm-options.gsm
es vm-opts.gsm
followme vm-passchanged.gsm
fr vm-password.gsm
hello-world.gsm vm-press.gsm
hours.gsm vm-prev.gsm
invalid.gsm vm-reachoper.gsm
letters vm-rec-busy.gsm
Makefile vm-received.gsm
minutes.gsm vm-rec-name.gsm
pbx-invalid.gsm vm-rec-temp.gsm
pbx-invalidpark.gsm vm-rec-unv.gsm
pbx-transfer.gsm vm-reenterpassword.gsm
phonetic vm-repeat.gsm
privacy-incorrect.gsm vm-review.gsm
privacy-prompt.gsm vm-saved.gsm
privacy-thankyou.gsm vm-savedto.gsm
privacy-unident.gsm vm-savefolder.gsm
priv-callee-options.gsm vm-savemessage.gsm
priv-callpending.gsm vm-saveoper.gsm
priv-introsaved.gsm vm-sorry.gsm
priv-recordintro.gsm vm-star-cancel.gsm
queue-callswaiting.gsm vm-starmain.gsm
queue-holdtime.gsm vm-tempgreetactive.gsm
queue-less-than.gsm vm-tempgreeting2.gsm
queue-minutes.gsm vm-tempgreeting.gsm
queue-periodic-announce.gsm vm-tempremoved.gsm
queue-reporthold.gsm vm-then-pound.gsm
queue-seconds.gsm vm-theperson.gsm
queue-thankyou.gsm vm-tocallback.gsm
queue-thereare.gsm vm-tocallnum.gsm
queue-youarenext.gsm vm-tocancel.gsm
record vm-tocancelmsg.gsm
screen-callee-options.gsm vm-toenternumber.gsm
seconds.gsm vm-toforward.gsm
silence vm-tohearenv.gsm
sounds.xml vm-tomakecall.gsm
spy-agent.gsm vm-tooshort.gsm
spy-h323.gsm vm-toreply.gsm
spy-iax2.gsm vm-torerecord.gsm
spy-iax.gsm vm-undeleted.gsm
spy-mgcp.gsm vm-undelete.gsm
spy-sip.gsm vm-unknown-caller.gsm
spy-skinny.gsm vm-whichbox.gsm
spy-zap.gsm vm-Work.gsm
ss-noservice.gsm vm-youhave.gsm
transfer.gsm
[[email protected] sounds]#


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 26, 2008 10:41 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Are you forcing english languge in a2billing.conf

have you installed the soundfiles from the a2billing tarball.

Joe


Top
 Profile  
 
 Post subject: hi
PostPosted: Tue Feb 26, 2008 11:54 pm 
Offline

Joined: Wed Feb 20, 2008 5:16 am
Posts: 9
yes

In regards to the sound files , i think i have . i checked in /var/lib/asterisk/sounds/ and there are files there.

Can you please tell me how to check if the files are there? and how to install them pl.?

I have noticed one thing though that the files prepaid - * are not there in the system. Where can i download them?


Top
 Profile  
 
 Post subject: Re: hi
PostPosted: Wed Feb 27, 2008 2:22 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Quote:
I have noticed one thing though that the files prepaid - * are not there in the system. Where can i download them?
They ship with A2Billing; they are in the tarball.
miteshasterisk wrote:
how to install them pl.?
The installation guide shows how to install the sounds.


Top
 Profile  
 
 Post subject: hi
PostPosted: Wed Feb 27, 2008 6:02 am 
Offline

Joined: Wed Feb 20, 2008 5:16 am
Posts: 9
thanks for your advice,

after going through JROPER's comment i managed to locate the directory and copied files to /var/lib/asterisk/sound/ and now i can here the prompts but the issue is the call still doesn't go through. As i am unable to attach a2billing.conf i have to paste it as text. My apologies.

;
; config file for the A2Billing Callingcard platform
;


; Global Database Setup - select the database type and authentication as required.

[database]
hostname = localhost
port = 5432
user = a2billinguser
password = password
dbname = mya2billing
dbtype = postgres
dbtype = mysql


[global]
; len_cardnumber is removed
; interval for the length of the cardnumber (number of digits), minimum lenght is 4
; ie: 10-15 (cardnumber authorised 10, 11, 12, 13, 14, 15) ; 10,12,14 (cardnumber authorised 10, 12, 14)
interval_len_cardnumber = 10-15

; Alias-Card length
len_aliasnumber = 15

; Voucher length
len_voucher = 15

;base currency define the default currency that you want to use to setup your system (see the currency table to know the currency code)
base_currency = usd

; filename of the image that will be display at the top of the invoice (if not defined no image will appear ; path to place the image templates/default/images/)
; the type of file have to be a jpeg/jpg
invoice_image = asterisk01.jpg

; DID Billing - amount of day before the end of the monthly reservation to bill the customer to for the DID use
; if the user dont have enough credit he will get an email asking him to refill
didbilling_daytopay = 5

;webiste administrator email address
admin_email = [email protected]

; MANAGER CONNECTION PARAMETERS
manager_host = localhost
manager_username = myasterisk
manager_secret = mycode


; CALL-BACK
[callback]
; When web call-back is enabled this is the context to sent the call.
context_callback = a2billing-callback

; this is the Extension to redirect the call when the web callback is returned
extension = 1000

; this is the number of seconds to wait before initiating the call back.
sec_wait_before_callback = 10

;Number of seconds before the call-back can be re-initiated from the web page
; to prevent repeated and unwanted calls.
sec_avoid_repeate = 30

; if the callback doesnt succeed within the value below, then the call is deemed to have failed.
timeout = 20

; if we want to manage the answer on the call
; Disabling this for callback trigger numbers makes it ring not hang up.
answer_call = yes


; PREDICTIVE DIALER
; number of calls an agent will do when the call button is clicked
nb_predictive_call = 10

; Number of days to wait before the number becomes available to call again.
nb_day_wait_before_retry = 1

; The context to redirect the call for the predictive dialer
context_preditctivedialer = a2billing-predictivedialer


; When a call is made we need to limit the call duration : amount in seconds
predictivedialer_maxtime_tocall = 5400

; set the callerID for the predictive dialer and call-back
callerid = 123456

; ID Call Plan to use when you use the all-callback mode, check the ID in the "list Call Plan" - WebUI
all_callback_tariff = 1

; Define the group of servers that are going to be used by the callback
id_server_group = 1

; Audio intro message when the callback is initiate
callback_audio_intro = prepaid-callback_intro


; CUSTOMISATION Of THE CUSTOMER INTERFACE
[webcustomerui]

; url of the signup page to show up on the sign in page (if empty no link will show up)
signup_page_url =

;Enable or disable the payment methods; yes for multi-payment or no for single payment method option
paymentmethod = yes

;Enable or disable the page which allow customer to modify its personal information
personalinfo = yes

; Enable display of the payment interface - yes or no
customerinfo = yes

; Enable display of the sip/iax info - yes or no
sipiaxinfo = yes

; Enable the Call history - yes or no
cdr = yes

; Enable invoices - yes or no
invoice = yes

; Enable the voucher screen - yes or no
voucher = yes

; Enable the paypal payment buttons - yes or no
paypal = yes

; Allow Speed Dial capabilities - yes or no
speeddial = yes

; Enable the DID (Direct Inwards Dialling) interface - yes or no
did = yes

; Show the ratecards - yes or no
ratecard = yes

; Offer simulator option on the customer interface - yes or no
simulator = yes

; Enable the callback option on the customer interface - yes or no
callback = yes

; Enable the predictivedialer option on the customer interface - yes or no
predictivedialer = yes

; Let users use SIP/IAX Webphone (Options : yes/no)
webphone = yes

;IP address or domain name of asterisk server that would be used by the web-phone
webphoneserver = localhost

; Let the users add new callerid
callerid = yes

; Let the user change the webui password
password = yes

; The total number of callerIDs for CLI Recognition that can be add by the customer
limit_callerid = 5

; Email address to send the notification and error report - new DIDs assigned will also be emailed.
error_email = [email protected]

;SIP & IAX client configuration information.
[sip-iax-info]

;Trunk Name to show in sip/iax info
sip_iax_info_trunkname = 192.168.0.40 ;changed from = call-labs

;Allowed Codec, ulaw, gsm, g729
sip_iax_info_allowcodec = g729

;host information
sip_iax_info_host = 192.168.0.40 ; changed from call-labs.com

;IAX Additional Parameters
iax_additional_parameters = "canreinvite = no"

;SIP Additional Parameters
sip_additional_parameters = "trustrpid = yes | sendrpid = yes | canreinvite = no"

[epayment_method]
enable = yes
; eg, http://localhost - should not be empty for productive servers
http_server = "http://www.call-labs.com"
; eg, https://localhost - Enter here your Secure Server Address, should not be empty for productive servers
https_server = "http://www.call-labs.com"
; Enter your Domain Name or IP Address, eg, 26.63.165.200
http_cookie_domain = 26.63.165.200
; Enter your Secure server Domain Name or IP Address, eg, 26.63.165.200
https_cookie_domain = 26.63.165.200
; Enter the Physical path of your Application on your server
http_cookie_path = "/A2BCustomer_UI/"
; Enter the Physical path of your Application on your Secure Server
https_cookie_path = "/A2BCustomer_UI/"
; Enter the Physical path of your Application on your server
dir_ws_http_catalog = "/A2BCustomer_UI/"
; Enter the Physical path of your Application on your Secure Server
dir_ws_https_catalog = "/A2BCustomer_UI/"
; secure webserver for checkout procedure?
enable_ssl = yes

http_domain = 26.63.165.200

dir_ws_http = "/~areski/svn/a2billing/payment/A2BCustomer_UI/"

; maybe try with :
; Define here the URL to notify the payment
; payment_notify_url=...

;define the different amount of purchase that would be available - 5 amount maximum (5:10:15)
purchase_amount = 1:2:5:10:20

; Item name that would be display to the user when he will buy credit
item_name = "Credit Purchase"

; Currency for the Credit purchase, only one can be define here
currency_code = USD

; Define here the URL of paypal gateway the payment (to test with paypal sandbox)
;paypal_payment_url = "https://secure.paypal.com/cgi-bin/webscr"
paypal_payment_url = "https://www.sandbox.paypal.com/cgi-bin/webscr"

;paypal transaction verification url
;paypal_verify_url = www.paypal.com
paypal_verify_url = www.sandbox.paypal.com

; Define here the URL of Authorize gateway
;authorize_payment_url = "https://secure.authorize.net/gateway/transact.dll"
authorize_payment_url = "https://test.authorize.net/gateway/transact.dll"

;paypal store name to show in the paypal site when customer will go to pay
store_name = Asterisk2Billing

;Transaction Key for security of Epayment Max length of 60 Characters.
transaction_key = asdf1212fasd121554sd4f5s45sdf

;Moneybookers secret word
moneybookers_secretword = areski

; SIGNUP MODULE
[signup]
; enable the signup module
enable_signup = 1

; enable Captcha on the signup module (value : YES or NO)
enable_captcha = YES

; amount of credit applied to a new user.
credit = 0

; the list of id of call plans which will be shown in signup.
callplan_id_list = 1, 2

; Specify whether the card is created as active or pending
activated = no

; Simultaneous or non concurrent access with the card - 0 = INDIVIDUAL ACCESS or 1 = SIMULTANEOUS ACCESS
simultaccess = 0

;PREPAID CARD = 0 - POSTPAY CARD = 1
typepaid = 0

; Define credit limit, which is only used for a POSTPAY card.
creditlimit = 0

; Authorise the recurring service to apply on this card - Yes 1 - No 0
runservice = 0

; Enable the expiry of the card - Yes 1 - No 0
enableexpire = 0

; Expiry Date format YYYY-MM-DD HH:MM:SS. For instance, '2004-12-31 00:00:00'
expirationdate =

; The number of days after which the card will expire
expiredays = 0

; Create a sip account from signup ( default : yes )
sip_account = yes

; Create an iax account from signup ( default : yes )
iax_account = yes

; active card after the new signup. if No, the Signup confirmation is needed and an email will be sent
; to the user with a link for activation (need to put the link into the Signup mail template)
activatedbyuser = no

; url of the customer interface to display after activation
urlcustomerinterface = http://localhost/A2BCustomer_UI/

; Define if you want to reload Asterisk when a SIP / IAX Friend is created at signup time
reload_asterisk_if_sipiax_created = yes ; changed MITESH


;BACK-UP AND RESTORE
; configuration for backup and restore
[backup]

; Path to store backup of database
backup_path = /tmp

; path for gzip
gzip_exe = /bin/gzip

; path for gunzip
gunzip_exe = /bin/gunzip

; path for mysqldump
mysqldump = /usr/bin/mysqldump

; path for pg_dump
pg_dump = /usr/bin/pg_dump

; path for mysql
mysql = /usr/bin/mysql

;path for psql
psql = /usr/bin/psql



; WEB INTERFACE AND API CONFIGURATION
[webui]

; Path to store the asterisk configuration files SIP & IAX
buddy_sip_file = /etc/asterisk/additional_a2billing_sip.conf
;buddy_sip_file = /etc/asterisk/

buddy_iax_file = /etc/asterisk/additional_a2billing_iax.conf
;buddy_iax_file = /etc/asterisk/


; API have a security key to validate the http request, the key has to be sent after applying md5
; Valid characters are [a-z,A-Z,0-9]
api_security_key = Ae87v56zzl34v

; API to restrict the IP's authorised to make a request.
; Define The the list of ips separated by ;
api_ip_auth = 127.0.0.1

; Administative Email(not used yet)
email_admin = [email protected]

; MOH (Music on Hold) base directory
dir_store_mohmp3 = /var/lib/asterisk/mohmp3

; Number of MOH classes you have created in musiconhold.conf : acc_1, acc_2... acc_10 class etc...
num_musiconhold_class = 10

; Display the help section inside the admin interface (YES - NO)
show_help = YES

; File Upload parameters
; PLEASE CHECK ALSO THE VALUE IN YOUR PHP.INI THE LIMIT IS 2MG BY DEFAULT
;my_max_file_size_import = 1024000 ; 1 MG - CHANGED
my_max_file_size_import = 512000

; Not used yet, The goal is to upload files and use them in the IVR
dir_store_audio = /var/lib/asterisk/sounds/a2billing ;- ORIGINAL - CHANGED MITESH


; upload maximum file size
my_max_file_size_audio=3072000 ; in bytes

; File type extensions permitted to be uploaded such as "gsm, mp3, wav" (separated by ,)
file_ext_allow = gsm, mp3, wav

; File type extensions permitted to be uploaded for the musiconhold such as "gsm, mp3, wav" (separate by ,)
file_ext_allow_musiconhold = mp3


; RECORDED CONVERSATIONS

; Enable link on the CDR viewer to the recordings. (YES - NO)
link_audio_file = NO


; Path to link the recorded monitor files
monitor_path = /var/spool/asterisk/monitor
; grant access to apache user on read mode for the directory :> chmod 755 /var/spool/asterisk/monitor/

; FORMAT OF THE RECORDED MONITOR FILE
monitor_formatfile = gsm

; Display the icon in the invoice
show_icon_invoice = YES

;CURRENCY AND GENERAL SETTINGS

; Display the top frame (useful if you want to save space on your little tiny screen )
show_top_frame = NO

; Allow the customer to chose the most appropriate currency ("all" can be used)
currency_choose = usd, eur, cad, hkd

; field to export in csv format from cc_card table
card_export_field_list = id, username, useralias, lastname, credit, tariff, activated, language, inuse, currency, sip_buddy, iax_buddy, nbused, mac_addr

; field to export in csv format from cc_voucher table
voucher_export_field_list = id, voucher, credit, tag, activated, usedcardnumber, usedate, currency

; Advanced mode - Display additional configuration options on the ratecard (progressive rates, musiconhold, ...)
advanced_mode = NO

; Delete the SIP/IAX Friend & callerid when a card is deleted
delete_fk_card = yes


; This section is basically used when we create a new friend
; when you create a SIP IAX friend for a card the following parameters will define the default value for the peer creation
[peer_friend]
; Refer to sip.conf & iax.conf documentation for the meaning of those parameters
; sip.conf -> http://www.voip-info.org/wiki-Asterisk+config+sip.conf
; iax.conf -> http://www.voip-info.org/wiki-Asterisk+config+iax.conf
type = friend
allow = ulaw,alaw,gsm,g729
context = a2billing
; use "no" or "yes" with quote otherwise the value will be converted to 1 or 0
nat = "yes"
amaflag = billing
; use "no" or "yes" with quote otherwise the value will be converted to 1 or 0
qualify = "yes"
host = dynamic
dtmfmode = RFC2833


[log-files]
; To disable application logging, remove/comment the log file name aside service

; cront - recurring process
cront_alarm = /tmp/cront_a2b_alarm.log
cront_autorefill = /tmp/cront_a2b_autorefill.log
cront_batch_process = /tmp/cront_a2b_batch_process.log
cront_bill_diduse = /tmp/cront_a2b_bill_diduse.log
cront_subscriptionfee = /tmp/cront_a2b_subscription_fee.log
cront_currency_update = /tmp/cront_a2b_currency_update.log
cront_invoice = /tmp/cront_a2b_invoice.log
cront_check_account = /tmp/cront_a2b_check_account.log

; paypal log file, to log all the transaction & error
paypal = /tmp/a2billing_paypal.log

; epayment log file, to log all the transaction & error
epayment = /tmp/a2billing_epayment.log

; Log file to store the ecommerce API requests
api_ecommerce = /tmp/api_ecommerce_request.log

; Log file to store the CallBack API requests
api_callback = /tmp/api_callback_request.log

; File to log
agi = /tmp/a2billing_agi.log



; configuration for the AGI, different configuration can be defined, ie "agi-conf1", "agi-conf2", etc...
; the groupid parameter will define which process_sections to use. Usage : DeadAGI(a2billing.php|%groupid%)
; by default agi-conf1 is used
[agi-conf1]

; the debug level
; 0=none, 1=low, 2=normal, 3=all
debug = 3 ;changed from = 1

; Asterisk Version Information
; 1_1,1_2,1_4 By Default it will take 1_2 or higher
asterisk_version = 1_2

; Manage the answer on the call
answer_call = YES

; Play audio - this will disable all stream file but not the Get Data
; for wholesale ensure that the authentication works and than number_try = 1
play_audio = YES

; play the goodbye message when the user has finished.
say_goodbye = NO

; enable the menu to choose the language
; press 1 for English, pulsa 2 para el español, Pressez 3 pour Français
play_menulanguage = NO


; force the use of a language, if you dont want to use it leave the option empty
; Values : ES, EN, FR, etc... (according to the audio you have installed)
force_language = ; CHANGED FROM "en" - MITESH

; Introduction prompt : to specify an additional prompt to play at the beginning of the application
intro_prompt =

; Minimum amount of credit to use the application
min_credit_2call = 0

; this is the minimum duration in seconds of a call in order to be billed
; any call with a length less than min_duration_2bill will have a 0 cost
; useful not to charge callers for system errors when a call was answered but it actually didn't connect
min_duration_2bill = 0

; if user doesn't have enough credit to call a destination, prompt him to enter another cardnumber
notenoughcredit_cardnumber = YES

; if notenoughcredit_cardnumber = YES then assign the CallerID to the new cardnumber
notenoughcredit_assign_newcardnumber_cid = YES


; if YES it will use the DNID and try to dial out, without asking for the phonenumber to call
; value : YES, NO
use_dnid = NO ;CHANGED BY MITESH FROM = YES

; list the dnid on which you want to avoid the use of the previous option "use_dnid"
no_auth_dnid = 2400,2300

; number of times the user can dial different number
number_try = 3

; this will force to select a specific call plan by the Rate Engine
force_callplan_id =

; Play the balance to the user after the authentication (values : yes - no)
say_balance_after_auth = YES

; Play the balance to the user after the call (values : yes - no)
say_balance_after_call = NO

; Play the initial cost of the route (values : yes - no)
say_rateinitial = NO

; Play the amount of time that the user can call (values : yes - no)
say_timetocall = YES


; enable the setup of the callerID number before the outbound CALL is made, by default the user callerID value will be use
auto_setcallerid = NO ; CHANGED BY MITESH FROM = YES
; If auto_setcallerid is enabled, the value of force_callerid will be set as CallerID
force_callerid = ;CHANGED FROM YES - MITESH

; If force_callerid is not set, then the following option ensures that CID is set to one of the card's configured caller IDs or blank if none available.
; NO - disable this feature, caller ID can be anything.
; CID - Caller ID must be one of the customers caller IDs
; DID - Caller ID must be one of the customers DID nos.
; BOTH - Caller ID must be one of the above two items.
cid_sanitize = CID ; CHANGED BY MITESH FROM = NO


; enable the callerid authentication
; if this option is active the CC system will check the CID of caller
cid_enable = YES ;CHANGED FROM 'NO' - mitesh

; if the CID does not exist, then the caller will be prompt to enter his cardnumber
cid_askpincode_ifnot_callerid = YES

; if the callerID authentication is enable and the authentication fails then the user will be prompt to enter his cardnumber
; this option will bound the cardnumber entered to the current callerID so that next call will be directly authenticate
cid_auto_assign_card_to_cid = YES

; if the callerID is captured on a2billing, this option will create automatically a new card and add the callerID to it
cid_auto_create_card = NO

; set the length of the card that will be auto create (ie, 10)
cid_auto_create_card_len = 10

; If cid_auto_create_card has been set to YES, the following options will define with which configuration we will create the card
;
; billing type of the new card
; ( value : POSTPAY or PREPAY)
cid_auto_create_card_typepaid = POSTPAY

; amount of credit of the new card
cid_auto_create_card_credit = 0

; if postpay, define the credit limit for the card
cid_auto_create_card_credit_limit = 1000

; the tariffgroup to use for the new card (this is the ID that you can find on the admin web interface)
cid_auto_create_card_tariffgroup = 6

; to check callerID over the cardnumber authentication (to guard against spoofing)
callerid_authentication_over_cardnumber = NO

; enable the option to call sip/iax friend for free (values : YES - NO)
sip_iax_friends = YES ;CHANGED FROM 'NO' - MITESH

; if SIP_IAX_FRIENDS is active, you can define a prefix for the dialed digits to call a pstn number
; values : number
sip_iax_pstn_direct_call_prefix = 9

; this will enable a prompt to enter your destination number.
; if number start by sip_iax_pstn_direct_call_prefix we do directly a sip iax call, if not we do a normal call
sip_iax_pstn_direct_call = NO

; enable the option to refill card with voucher in IVR (values : YES - NO)
ivr_voucher = NO

; if ivr_voucher is active, you can define a prefix for the voucher number to refill your card
; values : number - don't forget to change prepaid-refill_card_with_voucher audio accordingly
ivr_voucher_prefix = 8

; When the user credit are below the minimum credit to call min_credit
; jump directly to the voucher IVR menu (values: YES - NO)
jump_voucher_if_min_credit = NO

; Extracharge DIDs, multiple numbers and fees must be separated by comma
; extracharge_did = 1800XXXXXXX,1888XXXXXXX
extracharge_did =
;extracharge_fee = 0.02,0.03
extracharge_fee =

; List the prefixes that will be stripped off if the call plan requires it
international_prefixes = 011,00,09,1

; More information about the Dial : http://voip-info.org/wiki-Asterisk+cmd+dial
; 30 : The timeout parameter is optional. If not specifed, the Dial command will wait indefinitely, exiting only when the originating channel hangs up, or all the dialed channels return a busy or error condition. Otherwise it specifies a maximum time, in seconds, that the Dial command is to wait for a channel to answer.
; H: Allow the caller to hang up by dialing *
; r: Generate a ringing tone for the calling party
; R: Indicate ringing to the calling party when the called party indicates ringing, pass no audio until answered.
; m: Provide Music on Hold to the calling party until the called channel answers.
; L(x[][]): Limit the call to 'x' ms, warning when 'y' ms are left, repeated every 'z' ms)
; %timeout% tag is replaced by the calculated timeout according the credit & destination rate!
;------------------------------------------------------------------------------------
; / ORGINAL COMMAND LINE =
;---------------------------------------------------------------------------------------
dialcommand_param = "|60|HRgrL(%timeout%:61000:30000)"


; by default (3600000 = 1HOUR MAX CALL)
dialcommand_param_sipiax_friend = "|60|HRgrL(3600000:61000:30000)"
;------------------------------------------------------------------------------------



; Define the order to make the outbound call
; YES -> SIP/[email protected]_ip - NO SIP/gateway_ip/dialedphonenumber
; Both should work exactly the same but i experimented one case when gateway was supporting [email protected]_ip
; So in case of trouble, try it out
switchdialcommand = NO

; failover recursive search - define how many time we want to authorize the research of the failover trunk when a call fails (value : 0 - 20)
failover_recursive_limit = 2

; For free calls, limit the duration: amount in seconds
maxtime_tocall_negatif_free_route = 5400

; Send a reminder email to the user when they are under min_credit_2call
send_reminder = NO

; enable to monitor the call (to record all the conversations)
; value : YES - NO
record_call = NO

; format of the recorded monitor file
monitor_formatfile = gsm

; Force to play the balance to the caller in a predefined currency, to use the currency set for by the customer leave this field empty
agi_force_currency =

; CURRENCY SECTION
; Define all the audio (without file extensions) that you want to play according to currency (use , to separate, ie "usd:prepaid-dollar,mxn:pesos,eur:Euro,all:credit")
currency_association = usd:dollars,mxn:pesos,eur:euros,all:credit

; Please enter the file name you want to play when we prompt the calling party to enter the destination number
; file_conf_enter_destination = prepaid-enter-number-u-calling-1-or-011
file_conf_enter_destination = prepaid-enter-dest

; Please enter the file name you want to play when we prompt the calling party to choose the prefered language
; file_conf_enter_menulang = prepaid-menulang
file_conf_enter_menulang = prepaid-menulang2

; Define if you want to bill the 1st leg on callback even if the call is not connected to the destination
callback_bill_1stleg_ifcall_notconnected = YES


Added after 3 minutes:


asterisk log

a2billing.php: file:Class.A2Billing.php - line:1870 - [SET LANGUAGE() en]
a2billing.php: file:Class.A2Billing.php - line:1922 - [NOT ADDING NEW CID IN CC_CALLERID : CID LIMIT]
a2billing.php: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='0055343000']
a2billing.php: file:Class.A2Billing.php - line:1950 - [A2Billing] SAY BALANCE : 100.00000
a2billing.php:
a2billing.php: file:Class.A2Billing.php - line:1143 - [CURRENCY : USD]
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
-- <SIP/0055343000-08588c20> Playing 'digits/1' (language 'en')
-- <SIP/0055343000-08588c20> Playing 'digits/hundred' (language 'en')
-- Playing 'dollars' (escape_digits=#) (sample_offset 0)
a2billing.php: file:Class.A2Billing.php - line:1399 - [AUTO SetCallerID]
a2billing.php: file:a2billing.php - line:170 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:171 - [CREDIT : 100.00000][CREDIT MIN_CREDIT_2CALL : 0]
-- <SIP/0055343000-08588c20> Playing 'prepaid-sipiax-press9' (language 'en')
a2billing.php: file:a2billing.php - line:282 - RES SIP_IAX_FRIEND DTMF :
a2billing.php: file:Class.A2Billing.php - line:671 - && && 10&& 0
-- <SIP/0055343000-08588c20> Playing 'prepaid-enter-dest' (language 'en')
a2billing.php: file:Class.A2Billing.php - line:678 - RES DTMF : 5761296825
a2billing.php: file:Class.A2Billing.php - line:696 - DESTINATION ::> 5761296825
a2billing.php: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> 5761296825
a2billing.php: file:Class.A2Billing.php - line:734 - ERROR ::> RateEngine didnt succeed to match the dialed number over the ratecard (Please check : id the ratecard is well create ; if the removeInter_Prefix is set according to your prefix in the ratecard ; if you hooked the ratecard to the Call Plan)
-- Playing 'prepaid-dest-unreachable' (escape_digits=#) (sample_offset 0)
a2billing.php: file:a2billing.php - line:170 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:171 - [CREDIT : 100.00000][CREDIT MIN_CREDIT_2CALL : 0]
-- <SIP/0055343000-08588c20> Playing 'prepaid-sipiax-press9' (language 'en')
a2billing.php: file:a2billing.php - line:282 - RES SIP_IAX_FRIEND DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:671 - 0 && && 10&& 1
[Feb 27 17:04:51] WARNING[3954]: file.c:638 ast_readaudio_callback: Failed to write frame
-- <SIP/0055343000-08588c20> Playing 'prepaid-enter-dest' (language 'en')
a2billing.php: file:Class.A2Billing.php - line:678 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:696 - DESTINATION ::> -1
a2billing.php: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> -1
-- Playing 'prepaid-invalid-digits' (escape_digits=#) (sample_offset 0)
[Feb 27 17:04:51] WARNING[3954]: file.c:638 ast_readaudio_callback: Failed to write frame
a2billing.php: file:a2billing.php - line:170 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:171 - [CREDIT : 100.00000][CREDIT MIN_CREDIT_2CALL : 0]
[Feb 27 17:04:51] WARNING[3954]: file.c:638 ast_readaudio_callback: Failed to write frame
-- <SIP/0055343000-08588c20> Playing 'prepaid-sipiax-press9' (language 'en')
a2billing.php: file:a2billing.php - line:282 - RES SIP_IAX_FRIEND DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:671 - 0 && && 10&& 2
[Feb 27 17:04:51] WARNING[3954]: file.c:638 ast_readaudio_callback: Failed to write frame
-- <SIP/0055343000-08588c20> Playing 'prepaid-enter-dest' (language 'en')
a2billing.php: file:Class.A2Billing.php - line:678 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:696 - DESTINATION ::> -1
a2billing.php: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> -1
-- Playing 'prepaid-invalid-digits' (escape_digits=#) (sample_offset 0)
[Feb 27 17:04:51] WARNING[3954]: file.c:638 ast_readaudio_callback: Failed to write frame
a2billing.php: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='0055343000']
-- AGI Script a2billing.php completed, returning -1


Top
 Profile  
 
 Post subject: Re: hi
PostPosted: Wed Feb 27, 2008 6:12 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
miteshasterisk wrote:
ERROR ::> RateEngine didnt succeed to match the dialed number over the ratecard (Please check : if the ratecard is well create ; if the removeInter_Prefix is set according to your prefix in the ratecard ; if you hooked the ratecard to the Call Plan)
Did you notice this helpful message? If those clues aren't enough to get you going, use the search button with that error message and you'll find many threads covering this.

PS to attach files you must first rename them to .txt. You might also want to consider using search & replace to mask your transaction_key, api_security_key, username/cardnumber, etc.


Top
 Profile  
 
 Post subject: hi
PostPosted: Wed Feb 27, 2008 10:36 pm 
Offline

Joined: Wed Feb 20, 2008 5:16 am
Posts: 9
Thanks for pointing me in right direction.

In A2BILLING i had REMOVE INTERPREFIX = NO, i changed it to YES and the calls go through, but the issue is even when i dial the number it asks me to press 9 then dial the card number again #!!

In the CDR records it won't show me the TRUNK used,why would it do that ?

that was my first SIP - SIP call using A2BILLING ......so exited thanx to you guys the GURU's


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 27, 2008 10:55 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
You probably want to enable 'use_dnid=yes'. Whilst you're at it reading the rest of the settings in a2billing.conf could well answer a few questions you hadn't yet thought to ask.
You don't see a trunk listen for SIP friend calls as both legs are local to the Asterisk server, so there is no trunk involved.


Top
 Profile  
 
 Post subject: hi
PostPosted: Fri Feb 29, 2008 3:05 am 
Offline

Joined: Wed Feb 20, 2008 5:16 am
Posts: 9
Thanks Stavros,

This time i tried making from my SPA3102 with account id 5761296825 to XLITE softphone with account ID 0055343000 , as i had configured A2Billing to remove prefix of 00 there is a conflict now. I can't make call from SPA3102 TO XLITE. Now as A2BILLING is generating random numbers (i m not sure if it is a bug please advise me so i can publish in new post, cause shouldn't it be generating accounts in a sequence? is there anyway we can have our own SIP number range?) i am unsure what should i add in my rate card.

There is another error

eb 29 14:23:42] WARNING[11661]: channel.c:3012 set_format: Unable to find a codec translation path from g729 to gsm
a2billing.php: file:Class.RateEngine.php - line:913 - [CC_asterisk_stop QUERY = INSERT INTO cc_call (uniqueid,sessionid,username,nasipaddress,starttime,sessiontime, calledstation, terminatecause, stoptime, calledrate, sessionbill, calledcountry, calledsub, destination, id_tariffgroup, id_tariffplan, id_ratecard, id_trunk, src, sipiax, buyrate, buycost, id_card_package_offer) VALUES ('1204255416.3', 'SIP/5761296825-0933ad88', '5761296825', '', CURRENT_TIMESTAMP - INTERVAL 0 SECOND , '0', '0055343000', 'CHANUNAVAIL', now(), '2', '-0', '', '', 'sip - sip call', '1', '1', '1', '2', '5761296825', '0', '1', '0', '0')]
a2billing.php: file:Class.RateEngine.php - line:916 - [CC_asterisk_stop 1.1: SQL: DONE : result=1]
a2billing.php: file:a2billing.php - line:310 - [a2billing account stop]
a2billing.php: file:a2billing.php - line:170 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:171 - [CREDIT : 100.00000][CREDIT MIN_CREDIT_2CALL : 0]
[Feb 29 14:23:42] WARNING[11661]: channel.c:3012 set_format: Unable to find a codec translation path from g729 to gsm
[Feb 29 14:23:42] WARNING[11661]: file.c:866 ast_streamfile: Unable to open prepaid-sipiax-press9 (format 0x100 (g729)): No such file or directory



Your help is appreciated


Top
 Profile  
 
 Post subject: Re: hi
PostPosted: Fri Feb 29, 2008 9:03 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Quote:
WARNING[11661]: channel.c:3012 set_format: Unable to find a codec translation path from g729 to gsm
I thought this one was particularly self explanatory. You don't have the G.729 codec installed.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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