Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 6:27 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: outbound call failure
PostPosted: Fri Oct 24, 2014 4:12 pm 
Offline

Joined: Fri Oct 24, 2014 3:20 pm
Posts: 4
Hi Guys

i am a newbie aswell, please find attached logs of my failed calls, and im not sure what the cause is.
I dont want the system to use calling cards
When i simulate the call it show to pick a rate.
Please assist






a2billing.php,1: [agi_arg_1] => 1
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: file:a2billing.php - line:131 - uniqueid: - [INFO : A2Billing - v2.0.14]
a2billing.php,1: file:Class.A2Billing.php - line:736 - uniqueid:1414166626.4723 - get_agi_request_parameter = 2638644977710 ; SIP/2638644977710-00001273 ;

1414166626.4723 ; 5571582427 ; 263774151555
a2billing.php,1: file:a2billing.php - line:169 - uniqueid:1414166626.4723 - [NO ANSWER CALL]
a2billing.php,1: file:Class.A2Billing.php - line:2884 - uniqueid:1414166626.4723 - - Account code ::> 5571582427
a2billing.php,1: file:Class.A2Billing.php - line:2901 - uniqueid:1414166626.4723 - - Retrieve account info SQL ::> 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, status, voicemail_permitted, voicemail_activated, cc_card.restriction, cc_country.countryprefix FROM cc_card LEFT JOIN cc_tariffgroup ON

tariff = cc_tariffgroup.id LEFT JOIN cc_country ON cc_card.country = cc_country.countrycode WHERE username = '5571582427'
a2billing.php,1: file:Class.A2Billing.php - line:2970 - uniqueid:1414166626.4723 - [SET CHANNEL(language) en]
a2billing.php,1: file:Class.A2Billing.php - line:2974 - uniqueid:1414166626.4723 - [credit=14.88800 :: tariff=1 :: status=1 :: isused=0 :: simultaccess=1 ::

typepaid=0 :: creditlimit=0 :: language=en]
a2billing.php,1: file:Class.A2Billing.php - line:768 - uniqueid:1414166626.4723 - [CARD STATUS UPDATE]
a2billing.php,1: file:Class.A2Billing.php - line:777 - uniqueid:1414166626.4723 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse + 1, credit = credit -

0.25 WHERE username = '5571582427']
a2billing.php,1: file:a2billing.php - line:181 - uniqueid:1414166626.4723 - [TRY : callingcard_ivr_authenticate]
a2billing.php,1: file:Class.A2Billing.php - line:2541 - uniqueid:1414166626.4723 - [AUTO SetCallerID]
a2billing.php,1: file:a2billing.php - line:194 - uniqueid:1414166626.4723 - [CHANNEL STATUS : 4 = Line is ringing]
a2billing.php,1: [CREDIT : 14.88800][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php,1: file:a2billing.php - line:382 - uniqueid:1414166626.4723 - TARIFF ID->1
a2billing.php,1: file:Class.A2Billing.php - line:827 - uniqueid:1414166626.4723 - use_dnid:1 && (!in_array:) && len_dnid:(12 || len_exten:12 ) && (try_num:0)
a2billing.php,1: file:Class.A2Billing.php - line:836 - uniqueid:1414166626.4723 - [USE_DNID DESTINATION ::> 263774151555]
a2billing.php,1: file:Class.A2Billing.php - line:902 - uniqueid:1414166626.4723 - [CALL 2 DID]
a2billing.php,1: file:Class.A2Billing.php - line:911 - uniqueid:1414166626.4723 - SELECT cc_did.id, iduser FROM cc_did, cc_card WHERE cc_card.status=1 and cc_card.id

= iduser and cc_did.activated = 1 and did = '263774151555' AND cc_did.startingdate<= CURRENT_TIMESTAMP AND (cc_did.expirationdate > CURRENT_TIMESTAMP OR

cc_did.expirationdate IS NULL OR cc_did.expirationdate = '0000-00-00 00:00:00')
a2billing.php,1: file:Class.A2Billing.php - line:917 - uniqueid:1414166626.4723 - DESTINATION ::> 263774151555
a2billing.php,1: file:Class.A2Billing.php - line:924 - uniqueid:1414166626.4723 - RULES APPLY ON DESTINATION ::> 263774151555
a2billing.php,1: file:Class.A2Billing.php - line:3725 - uniqueid:1414166626.4723 - [SAVING DESTINATION FOR REDIAL: SQL: UPDATE cc_card SET redial = '263774151555'

WHERE username = '5571582427']:[result: 1]
a2billing.php,1: file:Class.RateEngine.php - line:97 - uniqueid:1414166626.4723 - [CC_asterisk_rate-engine: (1, 263774151555)]
a2billing.php,1: file:Class.RateEngine.php - line:118 - uniqueid:1414166626.4723 - [CC_asterisk_rate-engine - CALLERID : 2638644977710]
a2billing.php,1: file:Class.RateEngine.php - line:179 - uniqueid:1414166626.4723 - [rate-engine: Count Total result 1]
a2billing.php,1: file:Class.RateEngine.php - line:211 - uniqueid:1414166626.4723 - [rate-engine: MYRESULT before sort
a2billing.php,1: Array
a2billing.php,1: (
a2billing.php,1: [0] => Array

a2billing.php,1:
a2billing.php,1: file:Class.RateEngine.php - line:344 - uniqueid:1414166626.4723 - [CC_asterisk_rate-engine: Count Total result 1]
a2billing.php,1: file:Class.RateEngine.php - line:345 - uniqueid:1414166626.4723 - [CC_asterisk_rate-engine: number_trunk 1]
a2billing.php,1: file:Class.A2Billing.php - line:1041 - uniqueid:1414166626.4723 - OK - RESFINDRATE::> 1
a2billing.php,1: file:Class.RateEngine.php - line:358 - uniqueid:1414166626.4723 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (14.88800)]
a2billing.php,1: file:Class.RateEngine.php - line:364 - uniqueid:1414166626.4723 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:7444]
a2billing.php,1: file:Class.A2Billing.php - line:1054 - uniqueid:1414166626.4723 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php,1: file:Class.A2Billing.php - line:1987 - uniqueid:1414166626.4723 - TIMEOUT::> 7444 : minutes=124 - seconds=4
a2billing.php,1: file:a2billing.php - line:560 - uniqueid:1414166626.4723 - ANSWER fct callingcard_ivr authorize:> 1
a2billing.php,1: file:Class.RateEngine.php - line:1312 - uniqueid:1414166626.4723 - app_callingcard: Dialing 'SIP/41.221.144.22/263774151555|60|L

(7444000:61000:30000)' with timeout of '7444'.
a2billing.php,1:
a2billing.php,1: file:Class.RateEngine.php - line:1330 - uniqueid:1414166626.4723 - [EXEC SetCallerID : 2638644977707]
a2billing.php,1: file:Class.RateEngine.php - line:1332 - uniqueid:1414166626.4723 - app_callingcard: CIDGROUPID='1' OUTBOUND CID SELECTED IS '2638644977707'.
a2billing.php,1: file:Class.RateEngine.php - line:1228 - uniqueid:1414166626.4723 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse = inuse + 1 WHERE id_trunk = '2']
-- AGI Script Executing Application: (DIAL) Options: (SIP/41.221.144.22/263774151555,60,L(7444000:61000:30000))
> Limit Data for this call:
> timelimit = 7444000 ms (7444.000 s)
> play_warning = 61000 ms (61.000 s)
> play_to_caller = yes
> play_to_callee = no
> warning_freq = 30000 ms (30.000 s)
> start_sound =
> warning_sound = timeleft
> end_sound =
== Using SIP RTP CoS mark 5

[Oct 24 18:03:46] WARNING[32562]: chan_sip.c:5532 sip_call: uri:
-- Called SIP/41.221.144.22/263774151555
-- Got SIP response 503 "Service Unavailable" back from 41.221.144.22:5060
-- SIP/41.221.144.22-00001274 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
a2billing.php,1: file:Class.RateEngine.php - line:1341 - uniqueid:1414166626.4723 - DIAL SIP/41.221.144.22/263774151555|60|L(7444000:61000:30000)
a2billing.php,1: file:Class.RateEngine.php - line:1228 - uniqueid:1414166626.4723 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse = inuse - 1 WHERE id_trunk = '2']
a2billing.php,1: file:Class.RateEngine.php - line:1501 - uniqueid:1414166626.4723 - [USEDRATECARD - FAIL =1]
-- Playing 'prepaid-dest-unreachable' (escape_digits=#) (sample_offset 0)
a2billing.php,1: file:Class.RateEngine.php - line:1038 - uniqueid:1414166626.4723 - :[sessiontime:0 - id_cc_package_offer: - package2apply:]
a2billing.php,1:
a2billing.php,1:
a2billing.php,1: file:Class.RateEngine.php - line:1114 - uniqueid:1414166626.4723 - [CC_RATE_ENGINE_UPDATESYSTEM: usedratecard K=1 - (sessiontime=0 ::

dialstatus=CONGESTION :: buycost=0 :: cost= : signe_cc_call=-: signe=+)]
a2billing.php,1: file:Class.RateEngine.php - line:1179 - uniqueid:1414166626.4723 - [CC_asterisk_stop : SQL: DONE : result=1]
a2billing.php,1: file:Class.RateEngine.php - line:1180 - uniqueid:1414166626.4723 - [CC_asterisk_stop : SQL: INSERT INTO cc_call (uniqueid, sessionid, card_id,

nasipaddress, starttime, sessiontime, real_sessiontime, calledstation, terminatecauseid, stoptime, sessionbill, id_tariffgroup, id_tariffplan, id_ratecard, id_trunk,

src, sipiax, buycost, id_card_package_offer, dnid, destination) VALUES ('1414166626.4723', 'SIP/2638644977710-00001273', '15', '', SUBDATE(CURRENT_TIMESTAMP, INTERVAL

0 SECOND) , '0', '0', '263774151555', 5, now() , '-0', NULL, NULL, NULL, '2', '2638644977710', '0', '0', NULL, '263774151555', DEFAULT)]
a2billing.php,1: file:a2billing.php - line:576 - uniqueid:1414166626.4723 - [a2billing account stop]
a2billing.php,1: file:Class.A2Billing.php - line:768 - uniqueid:1414166626.4723 - [CARD STATUS UPDATE]
a2billing.php,1: file:Class.A2Billing.php - line:777 - uniqueid:1414166626.4723 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse - 1, credit = credit +

0.25 WHERE username = '5571582427']
-- <SIP/2638644977710-00001273>AGI Script a2billing.php completed, returning 4
== Spawn extension (call-a2billing, 263774151555, 1) exited non-zero on 'SIP/2638644977710-00001273'
guroo*CLI>


Top
 Profile  
 
 Post subject: Re: outbound call failure
PostPosted: Sat Oct 25, 2014 9:35 am 
Offline

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

A SIP trace may reveal the answer, as you are clearly making the call, the other end is rejecting it for some reason.

Joe


Top
 Profile  
 
 Post subject: Re: outbound call failure
PostPosted: Sat Oct 25, 2014 4:24 pm 
Offline

Joined: Fri Oct 24, 2014 3:20 pm
Posts: 4
Hi Joe

Thank you very much for your response

The main issue that i noticed is that the calls are being processed via calling card then it requests a pin, i dont want it to use calling card and ask for a pin.

Please check these logs aswell


a2billing.php,1: file:Class.RateEngine.php - line:344 - uniqueid:1414253072.4792 - [CC_asterisk_rate-engine: Count Total result 1]
a2billing.php,1: file:Class.RateEngine.php - line:345 - uniqueid:1414253072.4792 - [CC_asterisk_rate-engine: number_trunk 1]
a2billing.php,1: file:Class.A2Billing.php - line:1041 - uniqueid:1414253072.4792 - OK - RESFINDRATE::> 1
a2billing.php,1: file:Class.RateEngine.php - line:358 - uniqueid:1414253072.4792 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (13.93500)]
a2billing.php,1: file:Class.RateEngine.php - line:364 - uniqueid:1414253072.4792 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:6967]
a2billing.php,1: file:Class.A2Billing.php - line:1054 - uniqueid:1414253072.4792 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php,1: file:Class.A2Billing.php - line:1987 - uniqueid:1414253072.4792 - TIMEOUT::> 6967 : minutes=116 - seconds=7
a2billing.php,1: file:a2billing.php - line:560 - uniqueid:1414253072.4792 - ANSWER fct callingcard_ivr authorize:> 1
a2billing.php,1: file:Class.RateEngine.php - line:1312 - uniqueid:1414253072.4792 - app_callingcard: Dialing 'SIP/41.221.144.22/26344400|60|L(6967000:61000:30000)' with timeout of '6967'.
a2billing.php,1:
a2billing.php,1: file:Class.RateEngine.php - line:1332 - uniqueid:1414253072.4792 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
a2billing.php,1: file:Class.RateEngine.php - line:1228 - uniqueid:1414253072.4792 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse = inuse + 1 WHERE id_trunk = '2']





a2billing.php,1: file:Class.RateEngine.php - line:1341 - uniqueid:1414253437.4794 - DIAL SIP/41.221.144.22/26344400|60|L(6967000:61000:30000)
a2billing.php,1: file:Class.RateEngine.php - line:1228 - uniqueid:1414253437.4794 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse = inuse - 1 WHERE id_trunk = '2']
a2billing.php,1: file:Class.RateEngine.php - line:1501 - uniqueid:1414253437.4794 - [USEDRATECARD - FAIL =1]
-- Playing 'prepaid-dest-unreachable' (escape_digits=#) (sample_offset 0)
a2billing.php,1: file:Class.RateEngine.php - line:1038 - uniqueid:1414253437.4794 - :[sessiontime:0 - id_cc_package_offer: - package2apply:]
a2billing.php,1:
a2billing.php,1:
a2billing.php,1: file:Class.RateEngine.php - line:1114 - uniqueid:1414253437.4794 - [CC_RATE_ENGINE_UPDATESYSTEM: usedratecard K=1 - (sessiontime=0 :: dialstatus=CONGESTION :: buycost=0 :: cost= : signe_cc_call=-: signe=+)]
a2billing.php,1: file:Class.RateEngine.php - line:1179 - uniqueid:1414253437.4794 - [CC_asterisk_stop : SQL: DONE : result=1]
a2billing.php,1: file:Class.RateEngine.php - line:1180 - uniqueid:1414253437.4794 - [CC_asterisk_stop : SQL: INSERT INTO cc_call (uniqueid, sessionid, card_id, nasipaddress, starttime, sessiontime, real_sessiontime, calledstation, terminatecauseid, stoptime, sessionbill, id_tariffgroup, id_tariffplan, id_ratecard, id_trunk, src, sipiax, buycost, id_card_package_offer, dnid, destination) VALUES ('1414253437.4794', 'SIP/2638644977701-000012ba', '6', '', SUBDATE(CURRENT_TIMESTAMP, INTERVAL 0 SECOND) , '0', '0', '26344400', 5, now() , '-0', NULL, NULL, NULL, '2', '2638644977701', '0', '0', NULL, '26344400', DEFAULT)]
a2billing.php,1: file:a2billing.php - line:576 - uniqueid:1414253437.4794 - [a2billing account stop]
a2billing.php,1: file:Class.A2Billing.php - line:768 - uniqueid:1414253437.4794 - [CARD STATUS UPDATE]
a2billing.php,1: file:Class.A2Billing.php - line:777 - uniqueid:1414253437.4794 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse - 1, credit = credit + 0.25 WHERE username = '4646861151']
-- <SIP/2638644977701-000012ba>AGI Script a2billing.php completed, returning 4
== Spawn extension (call-a2billing, 26344400, 1) exited non-zero on 'SIP/2638644977701-000012ba'


Top
 Profile  
 
 Post subject: Re: outbound call failure
PostPosted: Sun Oct 26, 2014 8:36 am 
Offline

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

That's an agi-conf setting, or a configuration of your client setting.

Ensure that the accountcode is in the SIP settings for the customer, the customer is correctly registered, and you have the appropriate agi-conf settings not to ask for a PIN, and you have use_clid set to no for VoIP traffic.

Joe


Top
 Profile  
 
 Post subject: Re: outbound call failure
PostPosted: Fri Jan 09, 2015 12:38 pm 
Offline

Joined: Fri Jan 09, 2015 12:08 pm
Posts: 1
Hi

It downloads correctly for me, have you tried untarring it anyway?
Joe


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

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