asterisk2billing.org
http://forum.asterisk2billing.org/

use_dnid SEEMS not to be working properly
http://forum.asterisk2billing.org/viewtopic.php?f=33&t=10780
Page 1 of 1

Author:  darkquark [ Sun Apr 13, 2014 1:18 am ]
Post subject:  use_dnid SEEMS not to be working properly

Greetings, I have an odd issue I have not had on my other A2BILLING installs I have done. During outbound calls I get the "please enter the number you wish to call" prompt which I am trying to make go away. Everything else APPEARS to be fine as if I plug in the number it dials it just fine. The only clue I can seem to find is in the log, there appears to be no destination number where on my other installs I see it (see below). Not sure what could be affecting that or if I am chasing the wrong thing. Any Help would be MUCH appreciated.

FreePBX 2.11
Asterisk 11
A2B 2.07



[13/04/2014 00:57:43]:[file:a2billing.php - line:117 - uniqueid:]:[CallerID:]:[CN:]:[IDCONFIG : 1]
[13/04/2014 00:57:43]:[file:a2billing.php - line:118 - uniqueid:]:[CallerID:]:[CN:]:[MODE : standard]
[13/04/2014 00:57:43]:[file:Class.A2Billing.php - line:712 - uniqueid:1397350663.4]:[CallerID:2257618808]:[CN:]:[ get_agi_request_parameter = 2257618808 ; SIP/2785610719-00000004 ; 1397350663.4 ; 2785610719 ; s]
[13/04/2014 00:57:43]:[file:a2billing.php - line:165 - uniqueid:1397350663.4]:[CallerID:2257618808]:[CN:]:[[ANSWER CALL]]
[13/04/2014 00:57:43]:[file:a2billing.php - line:194 - uniqueid:1397350663.4]:[CallerID:2257618808]:[CN:2785610719]:[[CHANNEL STATUS : 6 = Line is up]
[CREDIT : 9999999999.96151][CREDIT MIN_CREDIT_2CALL : 0]]
[13/04/2014 00:57:43]:[file:a2billing.php - line:382 - uniqueid:1397350663.4]:[CallerID:2257618808]:[CN:2785610719]:[TARIFF ID->1]
[13/04/2014 00:57:46]:[file:Class.A2Billing.php - line:246 - uniqueid:1397350663.4]:[CallerID:2257618808]:[CN:2785610719]:[HANGUP DETECTED!
]
[13/04/2014 00:57:46]:[file:Class.A2Billing.php - line:878 - uniqueid:1397350663.4]:[CallerID:2257618808]:[CN:2785610719]:[[CALL 2 DID]]
[13/04/2014 00:57:46]:[file:Class.A2Billing.php - line:893 - uniqueid:1397350663.4]:[CallerID:2257618808]:[CN:2785610719]:[DESTINATION ::> -1]
[13/04/2014 00:57:46]:[file:a2billing.php - line:194 - uniqueid:1397350663.4]:[CallerID:2257618808]:[CN:2785610719]:[[CHANNEL STATUS : = Channel is down and available]
[CREDIT : 9999999999.96151][CREDIT MIN_CREDIT_2CALL : 0]]
[13/04/2014 00:57:46]:[CallerID:2257618808]:[CN:2785610719]:[[STOP - EXIT]]

Author:  jroper [ Sun Apr 13, 2014 8:38 am ]
Post subject:  Re: use_dnid SEEMS not to be working properly

Hi

It maybe that the first call is failing, and now it's asking for a new destination.

Set number_try to 1, and it should hangup straight away proving that this is the case.

Joe

Author:  darkquark [ Sun Apr 13, 2014 4:32 pm ]
Post subject:  Re: use_dnid SEEMS not to be working properly

I very much appreciate the assistance. However after the change I got the same result.

Author:  darkquark [ Mon Apr 14, 2014 1:13 am ]
Post subject:  Re: use_dnid SEEMS not to be working properly

I turned up the verbosity and here is what I see. The only thing that looks off to me is the destination number just shows -1 instead of the dialed number.

a2billing.php,1: file:a2billing.php - line:131 - uniqueid: - [INFO : A2Billing - v2.0.8]
a2billing.php,1: file:Class.A2Billing.php - line:712 - uniqueid:1397437921.6 - get_agi_request_parameter = 2257618808 ; SIP/2785610719-00000006 ; 1397437921.6 ; 2785610719 ; s
a2billing.php,1: file:a2billing.php - line:165 - uniqueid:1397437921.6 - [ANSWER CALL]
a2billing.php,1: file:Class.A2Billing.php - line:2862 - uniqueid:1397437921.6 - - Account code ::> 2785610719
a2billing.php,1: file:Class.A2Billing.php - line:2879 - uniqueid:1397437921.6 - - 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 = '2785610719'
a2billing.php,1: file:Class.A2Billing.php - line:2948 - uniqueid:1397437921.6 - [SET CHANNEL(language) en]
a2billing.php,1: file:Class.A2Billing.php - line:2952 - uniqueid:1397437921.6 - [credit=9999999999.96151 :: tariff=1 :: status=1 :: isused=0 :: simultaccess=1 :: typepaid=0 :: creditlimit= :: language=en]
a2billing.php,1: file:Class.A2Billing.php - line:744 - uniqueid:1397437921.6 - [CARD STATUS UPDATE]
a2billing.php,1: file:Class.A2Billing.php - line:753 - uniqueid:1397437921.6 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse + 1, credit = credit - 0.25 WHERE username = '2785610719']
a2billing.php,1: file:a2billing.php - line:181 - uniqueid:1397437921.6 - [TRY : callingcard_ivr_authenticate]
a2billing.php,1: file:Class.A2Billing.php - line:2519 - uniqueid:1397437921.6 - [AUTO SetCallerID]
a2billing.php,1: file:Class.A2Billing.php - line:2536 - uniqueid:1397437921.6 - [REQUESTED SetCallerID : 2257618808]
a2billing.php,1: file:Class.A2Billing.php - line:2549 - uniqueid:1397437921.6 - [EXEC SetCallerID : 2257618808]
a2billing.php,1: file:a2billing.php - line:194 - uniqueid:1397437921.6 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php,1: [CREDIT : 9999999999.96151][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php,1: file:a2billing.php - line:382 - uniqueid:1397437921.6 - TARIFF ID->1
a2billing.php,1: file:Class.A2Billing.php - line:803 - uniqueid:1397437921.6 - use_dnid:1 && (!in_array:) && len_dnid:(0 || len_exten:0 ) && (try_num:0)
a2billing.php,1: file:Class.A2Billing.php - line:820 - uniqueid:1397437921.6 - RES DTMF : -1
a2billing.php,1: file:Class.A2Billing.php - line:878 - uniqueid:1397437921.6 - [CALL 2 DID]
a2billing.php,1: file:Class.A2Billing.php - line:887 - uniqueid:1397437921.6 - 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 = '-1' 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:893 - uniqueid:1397437921.6 - DESTINATION ::> -1
a2billing.php,1: file:Class.A2Billing.php - line:900 - uniqueid:1397437921.6 - RULES APPLY ON DESTINATION ::> -1
a2billing.php,1: file:a2billing.php - line:560 - uniqueid:1397437921.6 - ANSWER fct callingcard_ivr authorize:> -1
a2billing.php,1: file:Class.A2Billing.php - line:744 - uniqueid:1397437921.6 - [CARD STATUS UPDATE]
a2billing.php,1: file:Class.A2Billing.php - line:753 - uniqueid:1397437921.6 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse - 1, credit = credit + 0.25 WHERE username = '2785610719']
ip-10-1-1-185*CLI>

Author:  jroper [ Mon Apr 14, 2014 10:43 am ]
Post subject:  Re: use_dnid SEEMS not to be working properly

Hi

Without looking at it, I don't have any more suggestions.

This is a well tested area, so it should work fine.

I'd recommend reviewing all your AGI-Conf settings.

Joe

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/