Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 26, 2024 10:29 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Problem Cid-callback
PostPosted: Mon May 26, 2008 3:47 am 
Offline

Joined: Sun Mar 30, 2008 5:52 pm
Posts: 138
Hello, I am using the context cid-callback to CALLBACK, when I make a call to the a2billing, it returns me the call via callback, but I am not of the option to enter the number of desired destination, it's simply hangup! When I was in the admin see the number that I wanted to choose is marked as 1000. Can you help me use the callback as follows: I turn on the a2billing and he returns to link me asking pra enter the number of destination! Thank you


Executing [1000@a2billing-callback:1] Set("SIP/glob2-094a6c18", "AGISIGHUP=no") in new stack
-- Executing [1000@a2billing-callback:2] DeadAGI("SIP/glob2-094a6c18", "a2billing.php|1|callback") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
== Manager 'admin' logged off from 127.0.0.1
a2billing.php|1|callback: A2Billing AGI internal configuration:
a2billing.php|1|callback: Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [debug] => 1
a2billing.php|1|callback: [asterisk_version] => 1_2
a2billing.php|1|callback: [answer_call] =>
a2billing.php|1|callback: [play_audio] => 1
a2billing.php|1|callback: [say_goodbye] =>
a2billing.php|1|callback: [play_menulanguage] =>
a2billing.php|1|callback: [force_language] => BR
a2billing.php|1|callback: [intro_prompt] =>
a2billing.php|1|callback: [min_credit_2call] => 0.56
a2billing.php|1|callback: [min_duration_2bill] => 4
a2billing.php|1|callback: [notenoughcredit_cardnumber] =>
a2billing.php|1|callback: [notenoughcredit_assign_newcardnumber_cid] =>
a2billing.php|1|callback: [use_dnid] => 1
a2billing.php|1|callback: [no_auth_dnid] => Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [0] => 2400
a2billing.php|1|callback: [1] => 2300
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: [number_try] => 3
a2billing.php|1|callback: [force_callplan_id] =>
a2billing.php|1|callback: [say_balance_after_auth] =>
a2billing.php|1|callback: [say_balance_after_call] =>
a2billing.php|1|callback: [say_rateinitial] =>
a2billing.php|1|callback: [say_timetocall] =>
a2billing.php|1|callback: [auto_setcallerid] => 1
a2billing.php|1|callback: [force_callerid] => 1
a2billing.php|1|callback: [cid_sanitize] => CID
a2billing.php|1|callback: [cid_enable] => 1
a2billing.php|1|callback: [cid_askpincode_ifnot_callerid] =>
a2billing.php|1|callback: [cid_auto_assign_card_to_cid] => 1
a2billing.php|1|callback: [cid_auto_create_card] =>
a2billing.php|1|callback: [cid_auto_create_card_len] => 10
a2billing.php|1|callback: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php|1|callback: [cid_auto_create_card_credit] => 0
a2billing.php|1|callback: [cid_auto_create_card_credit_limit] => 1000
a2billing.php|1|callback: [cid_auto_create_card_tariffgroup] => 6
a2billing.php|1|callback: [callerid_authentication_over_cardnumber] =>
a2billing.php|1|callback: [sip_iax_friends] =>
a2billing.php|1|callback: [sip_iax_pstn_direct_call_prefix] => 9
a2billing.php|1|callback: [sip_iax_pstn_direct_call] =>
a2billing.php|1|callback: [ivr_voucher] =>
a2billing.php|1|callback: [ivr_voucher_prefix] => 8
a2billing.php|1|callback: [jump_voucher_if_min_credit] =>
a2billing.php|1|callback: [extracharge_did] => Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [0] =>
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: [extracharge_fee] => Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [0] =>
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: [international_prefixes] => Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [0] => 011
a2billing.php|1|callback: [1] => 00
a2billing.php|1|callback: [2] => 09
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: [dialcommand_param] => |60|HRgrL(%timeout%:61000:30000)
a2billing.php|1|callback: [dialcommand_param_sipiax_friend] => |60|HRgirL(3600000:61000:30000)
a2billing.php|1|callback: [switchdialcommand] =>
a2billing.php|1|callback: [failover_recursive_limit] => 4
a2billing.php|1|callback: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php|1|callback: [send_reminder] =>
a2billing.php|1|callback: [record_call] =>
a2billing.php|1|callback: [monitor_formatfile] => gsm
a2billing.php|1|callback: [agi_force_currency] =>
a2billing.php|1|callback: [currency_association] => Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [0] => usd:dollars
a2billing.php|1|callback: [1] => mxn:pesos
a2billing.php|1|callback: [2] => eur:euros
a2billing.php|1|callback: [3] => all:credit
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php|1|callback: [file_conf_enter_menulang] => prepaid-menulang2
a2billing.php|1|callback: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php|1|callback: [logger_enable] => 1
a2billing.php|1|callback: [log_file] => /tmp/a2billing.log
a2billing.php|1|callback: [extracharge_buyfee] => Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [0] => Array
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: [currency_association_internal] => Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [usd] => dollars
a2billing.php|1|callback: [mxn] => pesos
a2billing.php|1|callback: [eur] => euros
a2billing.php|1|callback: [all] => credit
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: [ivr_voucher_prefixe] => 8
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: file:a2billing.php - line:78 - IDCONFIG : 1
a2billing.php|1|callback: file:a2billing.php - line:79 - MODE : callback
a2billing.php|1|callback: file:a2billing.php - line:91 - AGI Request:
a2billing.php|1|callback: file:a2billing.php - line:92 - Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [agi_request] => a2billing.php
a2billing.php|1|callback: [agi_channel] => SIP/glob2-094a6c18
a2billing.php|1|callback: [agi_language] => en
a2billing.php|1|callback: [agi_type] => SIP
a2billing.php|1|callback: [agi_uniqueid] => 1211773187.405
a2billing.php|1|callback: [agi_callerid] => 55345689746546
a2billing.php|1|callback: [agi_calleridname] => unknown
a2billing.php|1|callback: [agi_callingpres] => 0
a2billing.php|1|callback: [agi_callingani2] => 0
a2billing.php|1|callback: [agi_callington] => 0
a2billing.php|1|callback: [agi_callingtns] => 0
a2billing.php|1|callback: [agi_dnid] => unknown
a2billing.php|1|callback: [agi_rdnis] => unknown
a2billing.php|1|callback: [agi_context] => a2billing-callback
a2billing.php|1|callback: [agi_extension] => 1000
a2billing.php|1|callback: [agi_priority] => 2
a2billing.php|1|callback: [agi_enhanced] => 0.0
a2billing.php|1|callback: [agi_accountcode] => 7341621469
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: file:Class.A2Billing.php - line:621 - get_agi_request_parameter = 55345689746546 ; SIP/glob2-094a6c18 ; 1211773187.405 ; 7341621469 ; 1000
a2billing.php|1|callback: file:a2billing.php - line:699 - [CALLBACK]:[MODE : CALLBACK]
a2billing.php|1|callback: file:a2billing.php - line:703 - [CALLBACK]:[ANSWER CALL]
-- Playing 'prepaid-callback_intro' (escape_digits=#) (sample_offset 0)
-- Remote UNIX connection
-- Remote UNIX connection disconnected
a2billing.php|1|callback: file:a2billing.php - line:747 - [CALLBACK]:[GET VARIABLE : CALLED=55345689746546 | CALLING= | MODE=CID | TARIFF= | CBID=48575-kzggofc | LEG=7341621469]
a2billing.php|1|callback: file:Class.A2Billing.php - line:1439 - [CID_ENABLE - CID_CONTROL - CID:55345689746546]
a2billing.php|1|callback: file:Class.A2Billing.php - line:1456 - QUERY = SELECT cc_callerid.cid, cc_callerid.id_cc_card, cc_callerid.activated, cc_card.credit, cc_card.tariff, cc_card.activated, cc_card.inuse, cc_card.simultaccess, cc_card.typepaid, cc_card.creditlimit, cc_card.language, cc_card.username, removeinterprefix, cc_card.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_callerid LEFT JOIN cc_card ON cc_callerid.id_cc_card=cc_card.id LEFT JOIN cc_tariffgroup ON cc_card.tariff=cc_tariffgroup.id WHERE cc_callerid.cid='55345689746546'
a2billing.php|1|callback: RESULT : Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [0] => Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [0] => 55345689746546
a2billing.php|1|callback: [cid] => 55345689746546
a2billing.php|1|callback: [1] => 1
a2billing.php|1|callback: [id_cc_card] => 1
a2billing.php|1|callback: [2] => t
a2billing.php|1|callback: [activated] => t
a2billing.php|1|callback: [3] => 10.85900
a2billing.php|1|callback: [credit] => 10.85900
a2billing.php|1|callback: [4] => 3
a2billing.php|1|callback: [tariff] => 3
a2billing.php|1|callback: [5] => t
a2billing.php|1|callback: [6] => 10
a2billing.php|1|callback: [inuse] => 10
a2billing.php|1|callback: [7] => 1
a2billing.php|1|callback: [simultaccess] => 1
a2billing.php|1|callback: [8] => 0
a2billing.php|1|callback: [typepaid] => 0
a2billing.php|1|callback: [9] =>
a2billing.php|1|callback: [creditlimit] =>
a2billing.php|1|callback: [10] => en
a2billing.php|1|callback: [language] => en
a2billing.php|1|callback: [11] => 7341621469
a2billing.php|1|callback: [username] => 7341621469
a2billing.php|1|callback: [12] => 0
a2billing.php|1|callback: [removeinterprefix] => 0
a2billing.php|1|callback: [13] => 03130644710
a2billing.php|1|callback: [redial] => 03130644710
a2billing.php|1|callback: [14] => 0
a2billing.php|1|callback: [enableexpire] => 0
a2billing.php|1|callback: [15] => 1502475203
a2billing.php|1|callback: [UNIX_TIMESTAMP(expirationdate)] => 1502475203
a2billing.php|1|callback: [16] => 0
a2billing.php|1|callback: [expiredays] => 0
a2billing.php|1|callback: [17] => 1090
a2billing.php|1|callback: [nbused] => 1090
a2billing.php|1|callback: [18] => 1186929421
a2billing.php|1|callback: [UNIX_TIMESTAMP(firstusedate)] => 1186929421
a2billing.php|1|callback: [19] => 1186856040
a2billing.php|1|callback: [UNIX_TIMESTAMP(cc_card.creationdate)] => 1186856040
a2billing.php|1|callback: [20] => BRL
a2billing.php|1|callback: [currency] => BRL
a2billing.php|1|callback: [21] => Danilo Borges
a2billing.php|1|callback: [lastname] => Danilo Borges
a2billing.php|1|callback: [22] => Brito
a2billing.php|1|callback: [firstname] => Brito
a2billing.php|1|callback: [23] => [email protected]
a2billing.php|1|callback: [email] => [email protected]
a2billing.php|1|callback: [24] => 791028
a2billing.php|1|callback: [uipass] => 465464889
a2billing.php|1|callback: [25] => -1
a2billing.php|1|callback: [id_campaign] => -1
a2billing.php|1|callback: [26] => 1
a2billing.php|1|callback: [id] => 1
a2billing.php|1|callback: [27] => 0881000
a2billing.php|1|callback: [useralias] => 0881000
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: file:Class.A2Billing.php - line:1714 - [SET LANGUAGE() en]
a2billing.php|1|callback: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='7341621469']
a2billing.php|1|callback: file:Class.A2Billing.php - line:1400 - [AUTO SetCallerID]
a2billing.php|1|callback: file:Class.A2Billing.php - line:1404 - [EXEC SetCallerID : 1]
a2billing.php|1|callback: file:a2billing.php - line:775 - [CALLBACK]:[CHANNEL STATUS : 6 = Line is up][status_channel=6]:[ORIG_CREDIT : 10.85900 - CUR_CREDIT - : 5.4295 - CREDIT MIN_CREDIT_2CALL : 0.56]
a2billing.php|1|callback: file:Class.A2Billing.php - line:676 - 0 && && 4&& 0
a2billing.php|1|callback: file:Class.A2Billing.php - line:683 - RES DTMF : -1
a2billing.php|1|callback: file:Class.A2Billing.php - line:701 - DESTINATION ::> -1
a2billing.php|1|callback: file:Class.A2Billing.php - line:703 - RULES APPLY ON DESTINATION ::> -1
a2billing.php|1|callback: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='7341621469']
a2billing.php|1|callback: file:a2billing.php - line:981 - [CALLBACK 1ST LEG]:[INFO FOR THE 1ST LEG - callback_username=7341621469
a2billing.php|1|callback: 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='7341621469'
a2billing.php|1|callback: file:Class.A2Billing.php - line:1714 - [SET LANGUAGE() en]
a2billing.php|1|callback: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='7341621469']
a2billing.php|1|callback: file:a2billing.php - line:987 - [CALLBACK 1ST LEG]:[MAKE BILLING FOR THE 1ST LEG - TARIFF:3;CALLED=55345689746546]
a2billing.php|1|callback: file:a2billing.php - line:1002 - [CALLBACK]:[RateEngine -> answeredtime=7]
a2billing.php|1|callback: file:Class.RateEngine.php - line:820 - ft2c_package_offer : 0 ; ; 0
a2billing.php|1|callback: file:Class.RateEngine.php - line:899 - [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 ('1211773187.405', 'SIP/glob2-094a6c18', '7341621469', '', CURRENT_TIMESTAMP - INTERVAL 7 SECOND , '7', '55345689746546', 'ANSWERED', now(), '0.09', '+0.045', '', '', 'callback', '3', '21', '104770', '', '55345689746546', '4', '0.06', '0.03', '0')]
a2billing.php|1|callback: file:Class.RateEngine.php - line:902 - [CC_asterisk_stop 1.1: SQL: DONE : result=1]
a2billing.php|1|callback: file:Class.RateEngine.php - line:920 - [CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit= credit-0.045 , lastuse=now(), nbused=nbused+1 WHERE username='7341621469']
a2billing.php|1|callback: file:Class.RateEngine.php - line:925 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 7 WHERE id_trunk=''
a2billing.php|1|callback: file:Class.RateEngine.php - line:929 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 7 WHERE id='21'
a2billing.php|1|callback: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='7341621469']
-- AGI Script a2billing.php completed, returning 0


Top
 Profile  
 
 Post subject: Re: Problem Cid-callback
PostPosted: Mon May 26, 2008 1:30 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
dbbrito wrote:
a2billing.php|1|callback: file:Class.A2Billing.php - line:683 - RES DTMF : -1
a2billing.php|1|callback: file:Class.A2Billing.php - line:701 - DESTINATION ::> -1
a2billing.php|1|callback: file:Class.A2Billing.php - line:703 - RULES APPLY ON DESTINATION ::> -1
According to this it announced your balance and prompted for a destination number, but no digits were received.
This looks just like a codec/DTMF mismatch with your carrier.


Top
 Profile  
 
 Post subject: But the problem is not DTMF
PostPosted: Mon May 26, 2008 4:12 pm 
Offline

Joined: Sun Mar 30, 2008 5:52 pm
Posts: 138
But the problem is not DTMF, because I see the connection of callback, but not at any time it allows me to enter the number of destination, and the callback list of the number of destination appears 1000. Annex the image of example.


Attachments:
example.JPG
example.JPG [ 83.35 KiB | Viewed 10249 times ]
Top
 Profile  
 
 Post subject: Re: But the problem is not DTMF
PostPosted: Mon May 26, 2008 7:28 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Quote:
the callback list of the number of destination appears 1000. Annex the image of example.
Using extension 1000 for the callback leg is quite normal, and is configurable in a2billing.conf. Your screenshot also shows the status "Success Originate" which indicates A2B successfully connected the callback leg.
dbbrito wrote:
But the problem is not DTMF, because I see the connection of callback, but not at any time it allows me to enter the number of destination
Are you saying you receive the callback, but you don't hear any audio? If not please describe exactly what is happening.
If you read your debug log you can clearly see A2Billing prompting for the destination, but receiving no digits in response. I stand by what I said previously: the problem is either with your carrier, or with your configuration for that carrier.


Top
 Profile  
 
 Post subject: Problem Cid-callback
PostPosted: Mon May 26, 2008 10:24 pm 
Offline

Joined: Sun Mar 30, 2008 5:52 pm
Posts: 138
stavros now thank you for your attention, what happens is this: the a2billing get my connection and I will return again, and soon after prepaid-callback_intro shut off the connection (hangup), in none moment it allows me to dial the phone at destination. Below the log begins where the prepaid-callback_intro that then the connection of the hangup. Please see below >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>?????????? any hour I typed this number, where he is coming?


The callback the site works 100% OK, the problem is in the callback by telephone. CID-CALLBACK


-- Playing 'prepaid-callback_intro' (escape_digits=#) (sample_offset 0)
a2billing.php|1|callback: file:a2billing.php - line:747 - [CALLBACK]:[GET VARIABLE : CALLED=553488096021 | CALLING= | MODE=CID | TARIFF= | CBID=54299-pifpqr4 | LEG=7341621469]
a2billing.php|1|callback: file:Class.A2Billing.php - line:1439 - [CID_ENABLE - CID_CONTROL - CID:553488096021]
a2billing.php|1|callback: file:Class.A2Billing.php - line:1456 - QUERY = SELECT cc_callerid.cid, cc_callerid.id_cc_card, cc_callerid.activated, cc_card.credit, cc_card.tariff, cc_card.activated, cc_card.inuse, cc_card.simultaccess, cc_card.typepaid, cc_card.creditlimit, cc_card.language, cc_card.username, removeinterprefix, cc_card.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_callerid LEFT JOIN cc_card ON cc_callerid.id_cc_card=cc_card.id LEFT JOIN cc_tariffgroup ON cc_card.tariff=cc_tariffgroup.id WHERE cc_callerid.cid='553488096021'
a2billing.php|1|callback: RESULT : Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [0] => Array
a2billing.php|1|callback: (
a2billing.php|1|callback: [0] => 553488096021
a2billing.php|1|callback: [cid] => 553488096021
a2billing.php|1|callback: [1] => 1
a2billing.php|1|callback: [id_cc_card] => 1
a2billing.php|1|callback: [2] => t
a2billing.php|1|callback: [activated] => t
a2billing.php|1|callback: [3] => 10.18500
a2billing.php|1|callback: [credit] => 10.18500
a2billing.php|1|callback: [4] => 2
a2billing.php|1|callback: [tariff] => 2
a2billing.php|1|callback: [5] => t
a2billing.php|1|callback: [6] => 10
a2billing.php|1|callback: [inuse] => 10
a2billing.php|1|callback: [7] => 1
a2billing.php|1|callback: [simultaccess] => 1
a2billing.php|1|callback: [8] => 0
a2billing.php|1|callback: [typepaid] => 0
a2billing.php|1|callback: [9] =>
a2billing.php|1|callback: [creditlimit] =>
a2billing.php|1|callback: [10] => en
a2billing.php|1|callback: [language] => en
a2billing.php|1|callback: [11] => 7341621469
a2billing.php|1|callback: [username] => 7341621469
a2billing.php|1|callback: [12] => 0
a2billing.php|1|callback: [removeinterprefix] => 0
a2billing.php|1|callback: [13] => 38225599 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>???????????
a2billing.php|1|callback: [redial] => 38225599 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>?????????????
a2billing.php|1|callback: [14] => 0
a2billing.php|1|callback: [enableexpire] => 0
a2billing.php|1|callback: [15] => 1502475203
a2billing.php|1|callback: [UNIX_TIMESTAMP(expirationdate)] => 1502475203
a2billing.php|1|callback: [16] => 0
a2billing.php|1|callback: [expiredays] => 0
a2billing.php|1|callback: [17] => 1100
a2billing.php|1|callback: [nbused] => 1100
a2billing.php|1|callback: [18] => 1186929421
a2billing.php|1|callback: [UNIX_TIMESTAMP(firstusedate)] => 1186929421
a2billing.php|1|callback: [19] => 1186856040
a2billing.php|1|callback: [UNIX_TIMESTAMP(cc_card.creationdate)] => 1186856040
a2billing.php|1|callback: [20] => BRL
a2billing.php|1|callback: [currency] => BRL
a2billing.php|1|callback: [21] => Danilo Borges
a2billing.php|1|callback: [lastname] => Danilo Borges
a2billing.php|1|callback: [22] => Brito
a2billing.php|1|callback: [firstname] => Brito
a2billing.php|1|callback: [23] => [email protected]
a2billing.php|1|callback: [email] => [email protected]
a2billing.php|1|callback: [24] => 559988
a2billing.php|1|callback: [uipass] => 559988
a2billing.php|1|callback: [25] => -1
a2billing.php|1|callback: [id_campaign] => -1
a2billing.php|1|callback: [26] => 1
a2billing.php|1|callback: [id] => 1
a2billing.php|1|callback: [27] => 0881000
a2billing.php|1|callback: [useralias] => 0881000
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: )
a2billing.php|1|callback:
a2billing.php|1|callback: file:Class.A2Billing.php - line:1714 - [SET LANGUAGE() en]
a2billing.php|1|callback: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='7341621469']
a2billing.php|1|callback: file:Class.A2Billing.php - line:1400 - [AUTO SetCallerID]
a2billing.php|1|callback: file:Class.A2Billing.php - line:1404 - [EXEC SetCallerID : 1]
a2billing.php|1|callback: file:a2billing.php - line:775 - [CALLBACK]:[CHANNEL STATUS : 6 = Line is up][status_channel=6]:[ORIG_CREDIT : 10.18500 - CUR_CREDIT - : 5.0925 - CREDIT MIN_CREDIT_2CALL : 0.56]
a2billing.php|1|callback: file:Class.A2Billing.php - line:676 - 0 && && 4&& 0
a2billing.php|1|callback: file:Class.A2Billing.php - line:683 - RES DTMF : -1
a2billing.php|1|callback: file:Class.A2Billing.php - line:701 - DESTINATION ::> -1
a2billing.php|1|callback: file:Class.A2Billing.php - line:703 - RULES APPLY ON DESTINATION ::> -1
a2billing.php|1|callback: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='7341621469']
a2billing.php|1|callback: file:a2billing.php - line:981 - [CALLBACK 1ST LEG]:[INFO FOR THE 1ST LEG - callback_username=7341621469
a2billing.php|1|callback: 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='7341621469'
a2billing.php|1|callback: file:Class.A2Billing.php - line:1714 - [SET LANGUAGE() en]
a2billing.php|1|callback: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='7341621469']
a2billing.php|1|callback: file:a2billing.php - line:987 - [CALLBACK 1ST LEG]:[MAKE BILLING FOR THE 1ST LEG - TARIFF:2;CALLED=553488096021]
a2billing.php|1|callback: file:a2billing.php - line:1002 - [CALLBACK]:[RateEngine -> answeredtime=7]
a2billing.php|1|callback: file:Class.RateEngine.php - line:820 - ft2c_package_offer : 0 ; ; 0
a2billing.php|1|callback: file:Class.RateEngine.php - line:899 - [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 ('1211840286.862', 'SIP/Ligtel-08d74db0', '7341621469', '', CURRENT_TIMESTAMP - INTERVAL 7 SECOND , '7', '553488096021', 'ANSWERED', now(), '0.09', '+0.045', '', '', 'callback', '2', '14', '104770', '', '553488096021', '4', '0.06', '0.03', '0')]
a2billing.php|1|callback: file:Class.RateEngine.php - line:902 - [CC_asterisk_stop 1.1: SQL: DONE : result=1]
a2billing.php|1|callback: file:Class.RateEngine.php - line:920 - [CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit= credit-0.045 , lastuse=now(), nbused=nbused+1 WHERE username='7341621469']
a2billing.php|1|callback: file:Class.RateEngine.php - line:925 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 7 WHERE id_trunk=''
a2billing.php|1|callback: file:Class.RateEngine.php - line:929 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 7 WHERE id='14'
a2billing.php|1|callback: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='7341621469']
-- AGI Script a2billing.php completed, returning 0


Top
 Profile  
 
 Post subject: Re: Problem Cid-callback
PostPosted: Mon May 26, 2008 10:54 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
dbbrito wrote:
soon after prepaid-callback_intro shut off the connection (hangup), in none moment it allows me to dial the phone at destination.
OK, so it sounds like you're just not hearing the prompt "Please enter your destination". Perhaps this is why:
Quote:
a2billing.php|1|callback: [answer_call] =>
You really do need to answer the call on callback legs. Change this and you might be in business.

Quote:
Please see below >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>?????????? any hour I typed this number, where he is coming?
The field in question is called 'redial' because it stores the number of your last successfully connected call.


Top
 Profile  
 
 Post subject: Problem cid-callback
PostPosted: Tue May 27, 2008 2:14 am 
Offline

Joined: Sun Mar 30, 2008 5:52 pm
Posts: 138
But my answer_call = yes is already true in a2billing.conf, I get the connection and he speaks me that the link is connected and then he shut off the connection, not the time to dial the number of destination!



; 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 = 08001000

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

; 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


Top
 Profile  
 
 Post subject: Re: Problem cid-callback
PostPosted: Tue May 27, 2008 10:26 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
dbbrito wrote:
But my answer_call = yes
There's your problem. Use 'YES', '1', '"YES"', '"1"' or '"yes"' . 'yes' alone will be misinterpreted.


Top
 Profile  
 
 Post subject: Problem cid-callback
PostPosted: Tue May 27, 2008 12:11 pm 
Offline

Joined: Sun Mar 30, 2008 5:52 pm
Posts: 138
Already used answer_call = yes answer_call = YES answer_call = 1 and not advance, when he returns to call me I only hear the intro prepaid callback and then it turns off.
But I let a detail, when he should ask me get dial the number of destination? It is when he returns to call me or when I connect to the a2billing?

My conf>
[a2billing]
exten => _556137175052,1,AGI(a2billing.php|1|cid-callback|)
exten => _556137175052,n,Hangup


Top
 Profile  
 
 Post subject: Re: Problem cid-callback
PostPosted: Tue May 27, 2008 12:27 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
dbbrito wrote:
Already used answer_call = yes answer_call = YES answer_call = 1 and not advance, when he returns to call me I only hear the intro prepaid callback and then it turns off.
Make sure that it is saying
Code:
a2billing.php|1|callback: [answer_call] => 1
at the start of the callback leg.
Quote:
But I let a detail, when he should ask me get dial the number of destination?
If you watch the Asterisk console whilst the callback happens, or consult the log you posted which I quoted from, you'll see A2Billing prompts for the destination after the callback leg is answered after playing the intro message.
Quote:
exten => _556137175052,1,AGI(a2billing.php|1|cid-callback|)
You should be using DeadAGI() not AGI(). Also the '_' (underscore) is superfluous when matching a literal number like this.


Top
 Profile  
 
 Post subject: Problem CID Callback
PostPosted: Tue May 27, 2008 8:09 pm 
Offline

Joined: Sun Mar 30, 2008 5:52 pm
Posts: 138
I made the changes below:

[a2billing]
length => 556137175052.1, DeadAGI (a2billing.php | 1 | cid-callback |)
length => 556137175052, n, Hangup

But when I get the connection he still not giving me the prompt to dial the number of destination. And once you hear the intro prepaid callback a call is disconnected.


Top
 Profile  
 
 Post subject: Re: Problem CID Callback
PostPosted: Tue May 27, 2008 8:17 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
dbbrito wrote:
length => 556137175052.1, DeadAGI (a2billing.php | 1 | cid-callback |)
I hope that '.' is a typo. It should be a ','. Be careful about inserting spaces in the Asterisk dialplan; it can often subtly change the meaning.

Quote:
And once you hear the intro prepaid callback a call is disconnected.
Did you check it's definately saying "answer call => 1" now?
You might attach the full debug output as a .txt file so we can search it for clues. I'm guessing it's still going to the same problem as earlier: there's some codec/DTMF problem with the carrier (or their configuration on your Asterisk server).


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 27, 2008 9:19 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
dbbrito wrote:
[a2billing]
length => 556137175052.1, DeadAGI (a2billing.php | 1 | cid-callback |)
length => 556137175052, n, Hangup

This is probably a new way of doing it cause I have never seen it before. Specially the length part.

Make sure that for your second leg you use extension _X. cause this will match the 1000 as well as any other number (useful for all-callback).

Your a2billing context should look like this:
Quote:
;Used by cid-callback and all callback only
[a2billing-callback]
exten => _X.,1,Set(AGISIGHUP=no)
exten => _X.,n,DeadAGI(a2billing.php|1|callback)
exten => _X.,n,Hangup

[a2billing-cid-callback]
exten => _X.,1,Set(AGISIGHUP=no)
exten => _X.,n,DeadAGI(a2billing.php|1|cid-callback|1)
exten => _X.,n,Hangup

[a2billing-all-callback]
exten => _X.,1,Set(AGISIGHUP=no)
exten => _X.,n,DeadAGI(a2billing.php|1|all-callback|1)
exten => _X.,n,Hangup


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 27, 2008 9:24 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
asiby wrote:
This is probably a new way of doing it cause I have never seen it before. Specially the length part.
LOL, yeah. I figured this was just an artifact of the automated translation tool Danilo's using.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 27, 2008 9:26 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
LOL. You are right. It makes sense now. :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 25 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group