Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Oct 24, 2017 3:53 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Call duration limited to 900 seconds
PostPosted: Mon Mar 23, 2009 2:59 pm 
Offline

Joined: Mon Mar 23, 2009 1:08 pm
Posts: 5
We have installed and setup A2Billing 1.3.4 with Asterisk 1.6.0.5 as a pinless calling card and all features are currently working marvelous.

BUT there seems to be a setting somewhere (we cannot find!) that is limiting the calls to 900 seconds (15 minutes).

The call comes in, the caller id is identified and the caller is authenticated. The caller hears dial tone, we dial out the number and the bridge is made. At 900 seconds into the call the connection is dropped.

Are there any settings that sets the call duration to 900 seconds? how can this limitation be permanently removed?

Thank you in advance for the help!

Here is what we see in our logs and below our configuration:

(phone numbers and certain information have changed a bit do to the clients privacy concerns)

CALL LOG

[22/03/2009 15:28:23]:[file:a2billing.php - line:78]:[CallerID:]:[CN:]:[IDCONFIG : 1]
[22/03/2009 15:28:23]:[file:a2billing.php - line:79]:[CallerID:]:[CN:]:[MODE : standard]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:621]:[CallerID:5943458989]:[CN:]:[ get_agi_request_parameter = 5943458989 ; SIP/7544000-b581a9a0 ; 1237750102.150 ; ; +5943432345]
[22/03/2009 15:28:23]:[file:a2billing.php - line:141]:[CallerID:5943458989]:[CN:]:[[ANSWER CALL]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1438]:[CallerID:5943458989]:[CN:]:[[CID_ENABLE - CID_CONTROL - CID:5943458989]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1439]:[CallerID:5943458989]:[CN:]:[[CID_ENABLE - CID_CONTROL - CID:5943458989]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1456]:[CallerID:5943458989]:[CN:]:[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, c
c_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_TI
MESTAMP(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 L
EFT JOIN cc_tariffgroup ON cc_card.tariff=cc_tariffgroup.id WHERE cc_callerid.cid='5943458989'
RESULT : Array
(
[0] => Array
(
[0] => 5943458989
[cid] => 5943458989
[1] => 11
[id_cc_card] => 11
[2] => t
[activated] => t
[3] => 25.00000
[credit] => 25.00000
[4] => 8
[tariff] => 8
[5] => t
[6] => 0
[inuse] => 0
[7] => 1
[simultaccess] => 1
[8] => 0
[typepaid] => 0
[9] =>
[creditlimit] =>
[10] => en
[language] => en
[11] => 2325946616
[username] => 2325946616
[12] => 0
[removeinterprefix] => 0
[13] => 15944004343
[redial] => 15944004343
[14] => 0
[enableexpire] => 0
[15] => 1552445621
[UNIX_TIMESTAMP(expirationdate)] => 1552445621
[16] => 0
[expiredays] => 0
[17] => 21
[nbused] => 21
[18] => 1236914428
[UNIX_TIMESTAMP(firstusedate)] => 1236914428
[19] => 1236913328
[UNIX_TIMESTAMP(cc_card.creationdate)] => 1236913328
[20] => USD
[currency] => USD
[21] => Mandia
[lastname] => Mandia
[22] => Xisco
[firstname] => Xisco
[23] => [email protected]
[email] => [email protected]
[24] => 2222
[uipass] => 2222
[25] => -1
[id_campaign] => -1
[26] => 11
[id] => 11
[27] => 5943458989
[useralias] => 5943458989
)

)
]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1625]:[CallerID:5943458989]:[CN:]:[ - Account code - 2325946616]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1714]:[CallerID:5943458989]:[CN:2325946616]:[[SET LANGUAGE() en]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1717]:[CallerID:5943458989]:[CN:2325946616]:[[credit=25.00000 :: tariff=8 :: active=t :: isused=0 :: simultaccess=1 :: typepaid=0 :: creditlimit= :: language=en]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:654]:[CallerID:5943458989]:[CN:2325946616]:[[CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='2325946616']]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1969]:[CallerID:5943458989]:[CN:2325946616]:[[A2Billing] SAY BALANCE : 25.00000]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1148]:[CallerID:5943458989]:[CN:2325946616]:[[CURRENCY : USD]]
[22/03/2009 15:28:23]:[file:a2billing.php - line:158]:[CallerID:5943458989]:[CN:2325946616]:[[TRY : callingcard_ivr_authenticate]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1400]:[CallerID:5943458989]:[CN:2325946616]:[[AUTO SetCallerID]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1406]:[CallerID:5943458989]:[CN:2325946616]:[[REQUESTED SetCallerID : 5943458989]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1417]:[CallerID:5943458989]:[CN:2325946616]:[[EXEC SetCallerID : 5943458989]]
[22/03/2009 15:28:23]:[file:a2billing.php - line:172]:[CallerID:5943458989]:[CN:2325946616]:[[CHANNEL STATUS : 6 = Line is up]]
[22/03/2009 15:28:23]:[file:a2billing.php - line:173]:[CallerID:5943458989]:[CN:2325946616]:[[CREDIT : 25.00000][CREDIT MIN_CREDIT_2CALL : 0]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:676]:[CallerID:5943458989]:[CN:2325946616]:[ && && 11&& 0]
[22/03/2009 15:28:36]:[file:Class.A2Billing.php - line:683]:[CallerID:5943458989]:[CN:2325946616]:[RES DTMF : 15944004343]
[22/03/2009 15:28:36]:[file:Class.A2Billing.php - line:701]:[CallerID:5943458989]:[CN:2325946616]:[DESTINATION ::> 15944004343]
[22/03/2009 15:28:36]:[file:Class.A2Billing.php - line:703]:[CallerID:5943458989]:[CN:2325946616]:[RULES APPLY ON DESTINATION ::> 15944004343]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:73]:[CallerID:5943458989]:[CN:2325946616]:[[CC_asterisk_rate-engine: (8, 15944004343)]]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:122]:[CallerID:5943458989]:[CN:2325946616]:[[CC_asterisk_rate-engine: CALLERID] 5943458989]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:136]:[CallerID:5943458989]:[CN:2325946616]:[[CALLERID_QUERY]
SELECT count(calleridprefix) FROM cc_tariffplan RIGHT JOIN cc_tariffgroup_plan ON cc_tariffgroup_plan.idtariffgroup=8 WHERE calleridprefix=SUBSTRING('5943458989',1,length(calleridprefix))
[RESULT]Array
(
[0] => Array
(
[0] => 0
[count(calleridprefix)] => 0
)

)

]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:184]:[CallerID:5943458989]:[CN:2325946616]:[[RATE ENGINE QUERY]
SELECT
tariffgroupname, lcrtype, idtariffgroup, cc_tariffgroup_plan.idtariffplan, tariffname, destination,
cc_ratecard.id, dialprefix, destination, buyrate, buyrateinitblock, buyrateincrement, rateinitial, initblock, billingblock,
connectcharge, disconnectcharge, stepchargea, chargea, timechargea, billingblocka, stepchargeb, chargeb,
timechargeb, billingblockb, stepchargec, chargec, timechargec, billingblockc,
cc_tariffplan.id_trunk AS tp_id_trunk, tp_trunk.trunkprefix AS tp_trunk, tp_trunk.providertech AS tp_providertech,
tp_trunk.providerip AS tp_providerip, tp_trunk.removeprefix AS tp_removeprefix,
cc_ratecard.id_trunk AS rc_id_trunk, rt_trunk.trunkprefix AS rc_trunkprefix, rt_trunk.providertech AS rc_providertech,
rt_trunk.providerip AS rc_providerip, rt_trunk.removeprefix AS rc_removeprefix, musiconhold,
tp_trunk.failover_trunk AS tp_failover_trunk, rt_trunk.failover_trunk AS rt_failover_trunk,
tp_trunk.addparameter AS tp_addparameter_trunk, rt_trunk.addparameter AS rt_addparameter_trunk, id_outbound_cidgroup,
freetimetocall_package_offer, freetimetocall, packagetype, billingtype, startday, id_cc_package_offer

FROM cc_tariffgroup
RIGHT JOIN cc_tariffgroup_plan ON cc_tariffgroup_plan.idtariffgroup=cc_tariffgroup.id
INNER JOIN cc_tariffplan ON (cc_tariffplan.id=cc_tariffgroup_plan.idtariffplan )
LEFT JOIN cc_ratecard ON cc_ratecard.idtariffplan=cc_tariffplan.id
LEFT JOIN cc_trunk AS rt_trunk ON cc_ratecard.id_trunk=rt_trunk.id_trunk
LEFT JOIN cc_trunk AS tp_trunk ON cc_tariffplan.id_trunk=tp_trunk.id_trunk
LEFT JOIN cc_package_offer ON cc_package_offer.id=cc_tariffgroup.id_cc_package_offer

WHERE cc_tariffgroup.id=8 AND (dialprefix='15944004343' OR dialprefix='1594400434' OR dialprefix='159440043' OR dialprefix='15944004' OR dialprefix='1594400' OR dialprefix='159440' OR dialprefix='15944' OR dialprefix='1594' OR dialprefix='159' OR dialprefix='15' OR dialprefix='1' OR dialprefix='defaultprefix')
AND startingdate<= CURRENT_TIMESTAMP AND (expirationdate > CURRENT_TIMESTAMP OR expirationdate IS NULL OR LENGTH(expirationdate)<5)
AND startdate<= CURRENT_TIMESTAMP AND (stopdate > CURRENT_TIMESTAMP OR stopdate IS NULL OR LENGTH(stopdate)<5)
AND (starttime <= 9568 AND endtime >=9568)
AND idtariffgroup='8'
AND ( dnidprefix=SUBSTRING('+5943432345',1,length(dnidprefix)) OR (dnidprefix='all' AND 0 = 0))
AND ( calleridprefix=SUBSTRING('5943458989',1,length(calleridprefix)) OR (calleridprefix='all' AND 0 = 0))
ORDER BY LENGTH(dialprefix) DESC
]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:192]:[CallerID:5943458989]:[CN:2325946616]:[[rate-engine: Count Total result 1]]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:267]:[CallerID:5943458989]:[CN:2325946616]:[[CC_asterisk_rate-engine: Count Total result 1]]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:268]:[CallerID:5943458989]:[CN:2325946616]:[[CC_asterisk_rate-engine: number_trunk 1]]
[22/03/2009 15:28:36]:[file:Class.A2Billing.php - line:741]:[CallerID:5943458989]:[CN:2325946616]:[OK - RESFINDRATE::> 1]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:280]:[CallerID:5943458989]:[CN:2325946616]:[[CC_RATE_ENGINE_ALL_CALCULTIMEOUT (25.00000)]]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:286]:[CallerID:5943458989]:[CN:2325946616]:[[CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:3300]]
[22/03/2009 15:28:36]:[file:Class.A2Billing.php - line:763]:[CallerID:5943458989]:[CN:2325946616]:[RES_ALL_CALCULTIMEOUT ::> 1]
[22/03/2009 15:28:36]:[file:Class.A2Billing.php - line:780]:[CallerID:5943458989]:[CN:2325946616]:[TIMEOUT::> 3300 : minutes=55 - seconds=0]
[22/03/2009 15:28:36]:[file:Class.A2Billing.php - line:1197]:[CallerID:5943458989]:[CN:2325946616]:[[SAY RATE ::> 45]]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:1012]:[CallerID:5943458989]:[CN:2325946616]:[app_callingcard: Dialing 'SIP/[email protected],60,HRgrL(3300000:61000:30000)' with timeout of '3300'.
]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:1037]:[CallerID:5943458989]:[CN:2325946616]:[app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:1042]:[CallerID:5943458989]:[CN:2325946616]:[DIAL SIP/[email protected],60,HRgrL(3300000:61000:30000)]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:1139]:[CallerID:5943458989]:[CN:2325946616]:[-> dialstatus : ANSWER, answered time is 871
]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:1143]:[CallerID:5943458989]:[CN:2325946616]:[[USEDRATECARD=0]]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:820]:[CallerID:5943458989]:[CN:2325946616]:[ft2c_package_offer : 0 ; 0 ; 0]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:646]:[CallerID:5943458989]:[CN:2325946616]:[[CC_RATE_ENGINE_CALCULCOST: K=0 - CALLDURATION:871 - freetimetocall_used=0]]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:685]:[CallerID:5943458989]:[CN:2325946616]:[[TEMP - CC_RATE_ENGINE_CALCULCOST: 1. COST: -6.75]:[ (900/60) * 0.45 ]]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:762]:[CallerID:5943458989]:[CN:2325946616]:[[CC_RATE_ENGINE_CALCULCOST: K=0 - BUYCOST: -0.285 - SELLING COST: -6.75]]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:875]:[CallerID:5943458989]:[CN:2325946616]:[[CC_RATE_ENGINE_UPDATESYSTEM: usedratecard K=0 - (sessiontime=871 :: dialstatus=ANSWER :: buycost=0.285 :: cost=-6.75 : signe_cc_call=+: signe=-)]]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:899]:[CallerID:5943458989]:[CN:2325946616]:[[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 ('1237750102.150', 'SIP/7544000-b581a9a0', '2325946616', '', CURRENT_TIMESTAMP - INTERVAL 871 SECOND , '871', '15944004343', 'ANSWER', now(), '0.45', '+6.75', '', '', 'united states - fl - miami-dade', '8', '11', '91388', '6', '5943458989', '0', '0.019', '0.285', '0')]]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:902]:[CallerID:5943458989]:[CN:2325946616]:[[CC_asterisk_stop 1.1: SQL: DONE : result=1]]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:920]:[CallerID:5943458989]:[CN:2325946616]:[[CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit= credit-6.75 , redial='15944004343' , lastuse=now(), nbused=nbused+1 WHERE username='2325946616']]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:925]:[CallerID:5943458989]:[CN:2325946616]:[UPDATE cc_trunk SET secondusedreal = secondusedreal + 871 WHERE id_trunk='6']
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:929]:[CallerID:5943458989]:[CN:2325946616]:[UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 871 WHERE id='11']
[22/03/2009 15:43:22]:[file:Class.A2Billing.php - line:1148]:[CallerID:5943458989]:[CN:2325946616]:[[CURRENCY : USD]]
[22/03/2009 15:43:22]:[file:a2billing.php - line:312]:[CallerID:5943458989]:[CN:2325946616]:[[a2billing account stop]]
[22/03/2009 15:43:22]:[file:a2billing.php - line:172]:[CallerID:5943458989]:[CN:2325946616]:[[CHANNEL STATUS : = Channel is down and available]]
[22/03/2009 15:43:22]:[file:a2billing.php - line:173]:[CallerID:5943458989]:[CN:2325946616]:[[CREDIT : 18.25][CREDIT MIN_CREDIT_2CALL : 0]]
[22/03/2009 15:43:22]:[file:Class.A2Billing.php - line:654]:[CallerID:5943458989]:[CN:2325946616]:[[CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='2325946616']]
[22/03/2009 15:43:22]:[CallerID:5943458989]:[CN:2325946616]:[[STOP - EXIT]]



NOTICE THIS LINE - 900/60 - This happens in every call made from a2billing as if something is stopping the call at 900 seconds
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:685]:[CallerID:5943458989]:[CN:2325946616]:[[TEMP - CC_RATE_ENGINE_CALCULCOST: 1. COST: -6.75]:[ (900/60) * 0.45 ]]


Also this line it ranges from 865-875 (i guess depending on the ring time)
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:1139]:[CallerID:5943458989]:[CN:2325946616]:[-> dialstatus : ANSWER, answered time is 871


; ASTERISK extension.conf CONFIGURATION
exten => +5943432345,1,Set(__FROM_DID=${EXTEN})
exten => +5943432345,n,ExecIf($[ "${CALLERID(name)}" = "" ]?Set,CALLERID(name)=${CALLERID(num)}))
exten => +5943432345,n,Set(__CALLINGPRES_SV=${CALLINGPRES_${CALLINGPRES}})
exten => +5943432345,n,Set(CALLERPRES()=allowed_not_screened)
exten => +5943432345,n,AGI(a2billing.php,1)
exten => +5943432345,n,Hangup


;A2BILLING CONFIGURATION
[database]
hostname = localhost
port = 5432
user = a2buser
password = a2bpass
dbname = mya2billing
;dbtype = postgres
dbtype = mysql


[global]
interval_len_cardnumber = 10-15
len_aliasnumber = 15
len_voucher = 15
base_currency = usd
invoice_image = asterisk01.jpg
didbilling_daytopay = 5
admin_email = [email protected]

; MANAGER CONNECTION PARAMETERS
manager_host = localhost
manager_username = myusername
manager_secret = mysecret


; CALL-BACK
[callback]
context_callback = a2billing-callback
extension = 1000
sec_wait_before_callback = 10
sec_avoid_repeate = 30
timeout = 20
answer_call = yes
nb_predictive_call = 10
nb_day_wait_before_retry = 1
context_preditctivedialer = a2billing-predictivedialer
predictivedialer_maxtime_tocall = 5400
callerid = 123456
all_callback_tariff = 1
id_server_group = 1
callback_audio_intro = prepaid-callback_intro

; CUSTOMISATION Of THE CUSTOMER INTERFACE
[webcustomerui]
signup_page_url =
paymentmethod = yes
personalinfo = yes
customerinfo = yes
sipiaxinfo = no
cdr = yes
invoice = yes
voucher = no
paypal = yes
speeddial = yes
did = no
ratecard = yes
simulator = yes
callback = no
predictivedialer = no
webphone = no
webphoneserver = localhost
callerid = yes
password = yes
limit_callerid = 10
error_email = [email protected]
return_url_distant_login =
return_url_distant_forgetpassword =


;SIP & IAX client configuration information.
[sip-iax-info]
sip_iax_info_trunkname = call-labs
sip_iax_info_allowcodec = g729
sip_iax_info_host = call-labs.com
iax_additional_parameters = "canreinvite = no"
sip_additional_parameters = "trustrpid = yes | sendrpid = yes | canreinvite = no"

; ELECTRONIC PAYMENT
[epayment_method]
enable = yes
http_server = "http://server.callingcard.com"
https_server = "http://server.callingcard.com"
http_cookie_domain = 26.63.165.200
https_cookie_domain = 26.63.165.200
http_cookie_path = "/clients/"
https_cookie_path = "/clients/"
dir_ws_http_catalog = "/clients/"
dir_ws_https_catalog = "/clients/"
enable_ssl = no
http_domain = 26.63.165.200
dir_ws_http = "/var/www/html/clients/"
; payment_notify_url=...
purchase_amount = 1:2:3:5:10:20
item_name = "Credit Purchase"
currency_code = USD
;paypal_payment_url = "https://www.sandbox.paypal.com/cgi-bin/webscr"
;paypal_verify_url = "ssl://www.paypal.com"
;paypal_verify_url = www.sandbox.paypal.com
;authorize_payment_url = "https://secure.authorize.net/gateway/transact.dll"
;authorize_payment_url = "https://test.authorize.net/gateway/transact.dll"
store_name = Calling Card Store
transaction_key = asdf1212fasd121554sd4f5s45sdf
moneybookers_secretword = areski

; SIGNUP MODULE
[signup]
enable_signup = 1
enable_captcha = YES
credit = 0
callplan_id_list = 1, 2
activated = no
simultaccess = 0
typepaid = 0
creditlimit = 0
runservice = 0
enableexpire = 0
expirationdate =
expiredays = 0
sip_account = yes
iax_account = yes
activatedbyuser = no
urlcustomerinterface = http://server.callingcard.com/clients/
reload_asterisk_if_sipiax_created = no


;BACK-UP AND RESTORE
[backup]
backup_path = /tmp
gzip_exe = /bin/gzip
gunzip_exe = /bin/gunzip
mysqldump = /usr/bin/mysqldump
pg_dump = /usr/bin/pg_dump
mysql = /usr/bin/mysql
psql = /usr/bin/psql


; WEB INTERFACE AND API CONFIGURATION
[webui]
buddy_sip_file = /etc/asterisk/additional_a2billing_sip.conf
buddy_iax_file = /etc/asterisk/additional_a2billing_iax.conf
api_security_key = Ae87v56zzl34v
api_ip_auth = 127.0.0.1
email_admin = [email protected]
dir_store_mohmp3 = /var/lib/asterisk/mohmp3
num_musiconhold_class = 5
show_help = YES
my_max_file_size_import = 1024000 ; 1 MG
dir_store_audio = /var/lib/asterisk/sounds/a2billing
my_max_file_size_audio=3072000 ; in bytes
file_ext_allow = gsm, mp3, wav
file_ext_allow_musiconhold = mp3
link_audio_file = NO
monitor_path = /var/spool/asterisk/monitor
monitor_formatfile = gsm
show_icon_invoice = YES
show_top_frame = NO
currency_choose = usd, eur, cad, hkd
card_export_field_list = id, username, useralias, lastname, credit, tariff, activated, language, inuse, currency, sip_buddy, iax_buddy, nbused, mac_addr
voucher_export_field_list = id, voucher, credit, tag, activated, usedcardnumber, usedate, currency
advanced_mode = yes
delete_fk_card = yes

[peer_friend]
type = friend
allow = ulaw,alaw,gsm,g729
context = a2billing
nat = "yes"
amaflag = billing
qualify = "yes"
host = dynamic
dtmfmode = RFC2833


[log-files]
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 = /tmp/a2billing_paypal.log
epayment = /tmp/a2billing_epayment.log
api_ecommerce = /tmp/api_ecommerce_request.log
api_callback = /tmp/api_callback_request.log
agi = /tmp/a2billing_agi.log

[agi-conf1]
debug = 0
asterisk_version = 1_2
answer_call = YES
play_audio = YES
say_goodbye = YES
play_menulanguage = NO
force_language =
intro_prompt =
min_credit_2call = 0
min_duration_2bill = 0
notenoughcredit_cardnumber = YES
notenoughcredit_assign_newcardnumber_cid = YES
use_dnid = NO
no_auth_dnid = 2400,2300
number_try = 3
force_callplan_id =
say_balance_after_auth = YES
say_balance_after_call = YES
say_rateinitial = YES
say_timetocall = YES
auto_setcallerid = YES
force_callerid =
cid_sanitize = NO
cid_enable = YES
cid_askpincode_ifnot_callerid = YES
cid_auto_assign_card_to_cid = NO
cid_auto_create_card = NO
cid_auto_create_card_len = 10
cid_auto_create_card_typepaid = POSTPAY
cid_auto_create_card_credit = 0
cid_auto_create_card_credit_limit = 1000
cid_auto_create_card_tariffgroup = 6
callerid_authentication_over_cardnumber = YES
sip_iax_friends = NO
sip_iax_pstn_direct_call_prefix = 9
sip_iax_pstn_direct_call = NO
ivr_voucher = NO
ivr_voucher_prefix = 8
jump_voucher_if_min_credit = NO
extracharge_did =
extracharge_fee =
international_prefixes = 011,00,09
dialcommand_param = ",60,HRgrL(%timeout%:61000:30000)"
dialcommand_param_sipiax_friend = ""
switchdialcommand = YES
failover_recursive_limit = 2
maxtime_tocall_negatif_free_route = 5400
send_reminder = YES
record_call = NO
monitor_formatfile = gsm
agi_force_currency =
currency_association = usd:dollars,mxn:pesos,eur:euros,all:credit
file_conf_enter_destination = prepaid-enter-dest
file_conf_enter_menulang = prepaid-menulang2
callback_bill_1stleg_ifcall_notconnected = YES


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 23, 2009 3:30 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Can you reproduce this problem using Asterisk v1.4.x?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 23, 2009 4:32 pm 
Offline

Joined: Mon Mar 23, 2009 1:08 pm
Posts: 5
stavros wrote:
Can you reproduce this problem using Asterisk v1.4.x?



I have not tried Asterisk v1.4.x yet... do you think is something that has been fixed with 1.4? and not something in my configuration or system.

Added after 53 minutes:

To shed new light to the issue... Here is some information from the /var/log/asterisk/full, I noticed the 'Got SIP response 420 "Bad Extension"'. We see this in every call after it drops the call. I have tried changing voip provider to make sure it wasnt a provider issue and the results are the same


LOG FROM /var/log/asterisk/full
[Mar 22 15:28:36] VERBOSE[27312] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1037 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
[Mar 22 15:28:36] VERBOSE[27312] logger.c: -- AGI Script Executing Application: (Dial) Options: (SIP/[email protected],60,HRgrL(3300000:61000:30000))
[Mar 22 15:28:36] VERBOSE[27312] logger.c: -- Limit Data for this call:
[Mar 22 15:28:36] VERBOSE[27312] logger.c: > timelimit = 3300000
[Mar 22 15:28:36] VERBOSE[27312] logger.c: > play_warning = 61000
[Mar 22 15:28:36] VERBOSE[27312] logger.c: > play_to_caller = yes
[Mar 22 15:28:36] VERBOSE[27312] logger.c: > play_to_callee = no
[Mar 22 15:28:36] VERBOSE[27312] logger.c: > warning_freq = 30000
[Mar 22 15:28:36] VERBOSE[27312] logger.c: > start_sound =
[Mar 22 15:28:36] VERBOSE[27312] logger.c: > warning_sound = timeleft
[Mar 22 15:28:36] VERBOSE[27312] logger.c: > end_sound =
[Mar 22 15:28:36] VERBOSE[27312] logger.c: == Using SIP RTP CoS mark 5
[Mar 22 15:28:36] VERBOSE[27312] logger.c: -- Called [email protected]
[Mar 22 15:28:37] VERBOSE[27312] logger.c: -- SIP/voip-provider-084cc470 is making progress passing it to SIP/7544000-b581a9a0
[Mar 22 15:28:38] VERBOSE[27312] logger.c: -- SIP/voip-provider-084cc470 is ringing
[Mar 22 15:28:51] VERBOSE[27312] logger.c: -- SIP/voip-provider-084cc470 answered SIP/7544000-b581a9a0
[Mar 22 15:43:22] VERBOSE[1198] logger.c: -- Got SIP response 420 "Bad Extension" back from 208.239.76.169
[Mar 22 15:43:22] VERBOSE[27312] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1139 - -> dialstatus : ANSWER, answered time is 871
[Mar 22 15:43:22] VERBOSE[27312] logger.c: a2billing.php,2:
[Mar 22 15:43:22] VERBOSE[27312] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1143 - [USEDRATECARD=0]
[Mar 22 15:43:22] VERBOSE[27312] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:820 - ft2c_package_offer : 0 ; 0 ; 0
[Mar 22 15:43:22] VERBOSE[27312] logger.c: a2billing.php,2: 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 ('1237750102.150', 'SIP/7544000-b581a9a0', '2325946616', '', CURRENT_TIMESTAMP - INTERVAL 871 SECOND , '871', '15949874343', 'ANSWER', now(), '0.45', '+6.75', '', '', 'united states - fl - miami-dade', '8', '11', '91388', '6', '5943458989', '0', '0.019', '0.285', '0')]
[Mar 22 15:43:22] VERBOSE[27312] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:902 - [CC_asterisk_stop 1.1: SQL: DONE : result=1]
[Mar 22 15:43:22] VERBOSE[27312] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:920 - [CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit= credit-6.75 , redial='15949874343' , lastuse=now(), nbused=nbused+1 WHERE username='2325946616']
[Mar 22 15:43:22] VERBOSE[27312] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:925 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 871 WHERE id_trunk='6'
[Mar 22 15:43:22] VERBOSE[27312] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:929 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 871 WHERE id='11'
[Mar 22 15:43:22] VERBOSE[27312] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:1148 - [CURRENCY : USD]
[Mar 22 15:43:22] VERBOSE[27312] logger.c: a2billing.php,2: file:a2billing.php - line:312 - [a2billing account stop]
[Mar 22 15:43:22] VERBOSE[27312] logger.c: a2billing.php,2: file:a2billing.php - line:172 - [CHANNEL STATUS : = Channel is down and available]
[Mar 22 15:43:22] VERBOSE[27312] logger.c: a2billing.php,2: file:a2billing.php - line:173 - [CREDIT : 18.25][CREDIT MIN_CREDIT_2CALL : 0]
[Mar 22 15:43:22] VERBOSE[27312] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='2325946616']
[Mar 22 15:43:22] VERBOSE[27312] logger.c: -- <SIP/7544000-b581a9a0>AGI Script a2billing.php completed, returning -1


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 23, 2009 10:54 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Given your description of the problem, this really does look like a SIP interworking problem between Asterisk and your carrier. You might make better progress diagnosing this using a tool such as Wireshark.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 23, 2009 11:13 pm 
Offline

Joined: Mon Mar 23, 2009 1:08 pm
Posts: 5
I can make calls to and from the asterisk box, not utilizing the a2billing AGI and work with no call duration limitations. I have several voip providers and I have tested with all of them and the problems remains when using the a2billing agi call. When dialing directly, this is not a problem.. a call would stay connect for as long as it needs too.

When using the a2billing agi call, as stated before calls drop at 900 seconds.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 24, 2009 12:17 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Hmmm, OK. You can see the Dial() command generated by A2B contains the correct timeout (3300 seconds), so the problem isn't caused by A2B itself.
Perhaps you're reaching a PHP execution time limit. Maybe your SQL server is disconnecting after a similar idle period (although I can't see how this would lead to the symptoms you're seeing). It could possibly be Asterisk's RTP time-out terminating the call (Wireshark would clearly show who terminated the call).


Top
 Profile  
 
 Post subject: Re: Call duration limited to 900 seconds
PostPosted: Mon Aug 23, 2010 3:01 am 
Offline

Joined: Mon Aug 23, 2010 2:17 am
Posts: 1
hi..
thats a wonderfull discussion..
thanks for that..
im new in this forum and ill wanna join in your discussion can i join in your discussion??
thanks...have a nice day





Make Money Online


Top
 Profile  
 
 Post subject: Re: Call duration limited to 900 seconds
PostPosted: Wed Sep 08, 2010 8:20 pm 
Offline

Joined: Mon Aug 30, 2010 12:48 pm
Posts: 7
hi xmandia,

did you have find a way to solve that problem. i have the same :-(

please let me know.

regards

achim


Top
 Profile  
 
 Post subject: Re: Call duration limited to 900 seconds
PostPosted: Thu Sep 09, 2010 3:32 am 
Offline

Joined: Tue Mar 17, 2009 4:00 pm
Posts: 153
Location: Where the sun shines
I've seen this before - in my case, it was an issue with the session-timers - adding session-timers=refuse solved the issue. however, this can be needed by some provider, and can be risky if the media doesnt go through the ast/a2b box as a possible undetected dropped call would not be terminated quickly


Top
 Profile  
 
 Post subject: Re: Call duration limited to 900 seconds
PostPosted: Thu Sep 09, 2010 8:04 am 
Offline

Joined: Mon Aug 30, 2010 12:48 pm
Posts: 7
hi cerien,

thanks for that information.
I will try it out. hope it will solve it 8)

Regards Achim


Top
 Profile  
 
 Post subject: Re: Call duration limited to 900 seconds
PostPosted: Sat Sep 18, 2010 12:10 pm 
Offline

Joined: Thu Jun 22, 2006 12:01 am
Posts: 29
Hi teleg,
Have you found solution to the call duration issue.
I'm experiencing same problems. Please let me know if you find a solution.

Cheers

tboy


Top
 Profile  
 
 Post subject: Re: Call duration limited to 900 seconds
PostPosted: Sun Sep 19, 2010 5:46 pm 
Offline

Joined: Thu Jun 22, 2006 12:01 am
Posts: 29
Will appreciate help from anybody .
Following is a2b log of the problem i'm having:

[2010-09-19 17:15:03] VERBOSE[30139] logger.c: -- AGI Script Executing Application: (DIAL) Options: (SIP/voiprovider/00XXXXXXXXXXXX$
[2010-09-19 17:15:03] VERBOSE[30139] logger.c: -- Limit Data for this call:
[2010-09-19 17:15:03] VERBOSE[30139] logger.c: > timelimit = 317000
[2010-09-19 17:15:03] VERBOSE[30139] logger.c: > play_warning = 61000
[2010-09-19 17:15:03] VERBOSE[30139] logger.c: > play_to_caller = yes
[2010-09-19 17:15:03] VERBOSE[30139] logger.c: > play_to_callee = no
[2010-09-19 17:15:03] VERBOSE[30139] logger.c: > warning_freq = 30000
[2010-09-19 17:15:03] VERBOSE[30139] logger.c: > start_sound = (null)
[2010-09-19 17:15:03] VERBOSE[30139] logger.c: > warning_sound = timeleft
[2010-09-19 17:15:03] VERBOSE[30139] logger.c: > end_sound = (null)
[2010-09-19 17:15:03] VERBOSE[30139] logger.c: -- Called voiprovider/00XXXXXXXXXXXX
[2010-09-19 17:15:04] VERBOSE[30139] logger.c: -- SIP/voiprovider-00000d03 is making progress passing it to SIP/subscriber-0000$
[2010-09-19 17:15:32] VERBOSE[30139] logger.c: -- SIP/voiprovider-00000d03 answered SIP/subscriber-00000d02
[2010-09-19 17:19:48] VERBOSE[30139] logger.c: -- <SIP/subscriber-00000d02> Playing 'vm-youhave' (language 'en')
[2010-09-19 17:19:49] VERBOSE[30139] logger.c: -- <SIP/subscriber-00000d02> Playing 'digits/60' (language 'en')

A2B ended call 5 minutes into the call with warning announcements "you have 60 seconds remaining", "30 seconds remaining". Customer thought there was no credit in his account that was why call ended. However, there still was sufficient credit in his account when call ended. I hope someone can shed some light on this seemingly abnormal call duration behaviour.

Thanks in advance.
tboy


Top
 Profile  
 
 Post subject: Re: Call duration limited to 900 seconds
PostPosted: Mon Sep 20, 2010 8:10 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4064
Hi

For that destination, A2Billing has determined that customer's credit, and the rate to that destination, he can only call for 317000 milliseconds, which equals 5.28 minutes.

I would check using the rate simulator to assess where this figure is coming from.

Joe


Top
 Profile  
 
 Post subject: Re: Call duration limited to 900 seconds
PostPosted: Tue Sep 21, 2010 11:06 am 
Offline

Joined: Thu Jun 22, 2006 12:01 am
Posts: 29
Thanks Joe!


I have checked with rate simulator and found following:

1st leg of CID-Callback(Origination)
Sell rate 0.02
min rate =60
billing block = 120
connection charge = 0.18

2nd leg of CID-Callback(Destination)
Sell rate = 0.35
min duration = 1
billing block = 1
connection charge =0.25

Call method is CID callback mode.
Customer still had $3.45 account balance when call ended. This problem seems to be associated with CID callback mode.
So, question is, why does a2b ends calls prematurely when there is sufficient credit left in customers's account?
Comments much appreciated!

tboy


Top
 Profile  
 
 Post subject: Re: Call duration limited to 900 seconds
PostPosted: Tue Sep 21, 2010 11:29 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4064
The time is divided by two to get the duration.

Joe


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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