I have been trying to have a DID destination that is a regular PSTN number (16504265112). That destination number is supposed to be going out via one of my voip accounts.
I have had no success in getting this accomplished. From looking at the logs, it seems that the number is dialed but the wrong channel type is being used (local) insead if the correct one (SIP/${GATEWAY01}/Number.
Below is relevant part of the logs.
Any hint or suggestion would be greately appreciated.
LOG:
a2billing.php|1|did: line:311 - [ANSWER CALL] a2billing.php|1|did: line:330 - [DID CALL - [CallerID=3032930212]:[DID=9544141224] a2billing.php|1|did: line:340 - SELECT cc_did.id, cc_did_destination.id, billingtype, tariff, destination, voip_call, username FROM cc_did, cc_did_destination, cc_card WHERE id_cc_did=cc_did.id and cc_card.id=id_cc_card and cc_did_destination.activated=1 and cc_did.activated=1 and did='9544141224' AND cc_did.startingdate<= CURRENT_TIMESTAMP AND (cc_did.expirationdate > CURRENT_TIMESTAMP OR cc_did.expirationdate IS NULL OR LENGTH(cc_did.expirationdate)<5) ORDER BY priority ASC a2billing.php|1|did: line:343 - Array a2billing.php|1|did: line:849 - [A2Billing] DID call friend: FOLLOWME=1 (cardnumber:80418127|destination:16504265112|tariff:1) a2billing.php|1|did: a2billing.php|1|did: line:1472 - 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='80418127' a2billing.php|1|did: line:1475 - Array a2billing.php|1|did: line:544 - 1 && && 11&& 0 a2billing.php|1|did: line:572 - DESTINATION ::> 16504265112 a2billing.php|1|did: line:574 - APPLY_RULES DESTINATION ::> 16504265112 a2billing.php|1|did: line:613 - OK - RESFINDRATE::> 1 a2billing.php|1|did: line:635 - RES_ALL_CALCULTIMEOUT ::> 1 a2billing.php|1|did: line:652 - TIMEOUT::> 189 : minutes=3 - seconds=9 a2billing.php|1|did: line:821 - LALALALA app_callingcard: Dialing 'local/16504265112@dial-queue/n|30|HL(189000:61000:30000)' with timeout of '189'. a2billing.php|1|did: -- AGI Script Executing Application: (Dial) Options: (local/16504265112@dial-queue/n|30|HL(189000:61000:30000)) -- Limit Data for this call: -- - timelimit = 189000 -- - play_warning = 61000 -- - play_to_caller= yes -- - play_to_callee= no -- - warning_freq = 30000 -- - start_sound = UNDEF -- - warning_sound = timeleft -- - end_sound = UNDEF == Everyone is busy/congested at this time (1:0/0/1) a2billing.php|1|did: line:897 - FAILOVER app_callingcard: Dialing 'SIP/voicepulse02/16504265112|30|HL(189000:61000:30000)' with timeout of '189'. a2billing.php|1|did: -- AGI Script a2billing.php completed, returning 0
|