I am hoping someone can help. I have DIDs and when I call one of them I does the right thing but does not call the device. below is the debug info a2billing.php|1|did: file:a2billing.php - line:394 - uniqueid:1260989748.55 - SELECT cc_did.id, cc_did_destination.id, billingtype, tariff, destination, voip_call, username, useralias FROM cc_did, cc_did_destination, cc_card WHERE id_cc_did=cc_did.id and cc_card.status=1 and cc_card.id=id_cc_card and cc_did_destination.activated=1 and cc_did.activated=1 and did='15672480724' 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') ORDER BY priority ASC ::> 4 a2billing.php|1|did: file:a2billing.php - line:396 - uniqueid:1260989748.55 - Array ::> 4 a2billing.php|1|did: file:Class.A2Billing.php - line:1229 - uniqueid:1260989748.55 - [A2Billing] DID call friend: FOLLOWME=1 (cardnumber:3697177|destination:IAX2/3697177|tariff:1) a2billing.php|1|did: ::> 3 a2billing.php|1|did: file:Class.A2Billing.php - line:2548 - uniqueid:1260989748.55 - - Account code - 3697177 ::> 4 a2billing.php|1|did: file:Class.A2Billing.php - line:2637 - uniqueid:1260989748.55 - [SET CHANNEL(language) en] ::> 4 a2billing.php|1|did: file:Class.A2Billing.php - line:2641 - uniqueid:1260989748.55 - [credit=2.00000 :: tariff=1 :: status=1 :: isused=0 :: simultaccess=0 :: typepaid=0 :: creditlimit= :: language=en] ::> 4 a2billing.php|1|did: file:Class.A2Billing.php - line:742 - uniqueid:1260989748.55 - [CARD STATUS UPDATE] ::> 4 a2billing.php|1|did: file:Class.A2Billing.php - line:751 - uniqueid:1260989748.55 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse+1, credit=credit-0.25 WHERE username='3697177'] ::> 4 a2billing.php|1|did: file:Class.A2Billing.php - line:1261 - uniqueid:1260989748.55 - [A2Billing] DID call friend: Dialing 'IAX2/3697177|60|HiL(%timeout%:61000:30000)' Friend. a2billing.php|1|did: ::> 4 -- AGI Script Executing Application: (DIAL) Options: (IAX2/3697177|60|HiL(%timeout%:61000:30000)) a2billing.php|1|did: file:Class.A2Billing.php - line:1266 - uniqueid:1260989748.55 - DIAL IAX2/3697177|60|HiL(%timeout%:61000:30000) ::> 3 a2billing.php|1|did: file:Class.A2Billing.php - line:1278 - uniqueid:1260989748.55 - [IAX2/3697177 Friend][followme=1]:[ANSWEREDTIME=-DIALSTATUS=] ::> 3 -- Playing 'prepaid-callfollowme' (escape_digits=#) (sample_offset 0) a2billing.php|1|did: file:Class.A2Billing.php - line:742 - uniqueid:1260989748.55 - [CARD STATUS UPDATE] ::> 4 a2billing.php|1|did: file:Class.A2Billing.php - line:751 - uniqueid:1260989748.55 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse-1, credit=credit+0.25 WHERE username='3697177'] ::> 4 -- AGI Script a2billing.php completed, returning -1
any help will be greatly appreciated.
|