im trying cid callback
this is my dialplan configuration
exten => 8000,1,Ringing ;llamada sonando
exten => 8000,n,Set(CALLERID(num)=82396596)
exten => 8000,n,Goto(a2billing-cid-callback,${EXTEN},1)
[a2billing-cid-callback]
exten => _X.,1,Ringing()
exten => _X.,n,Set(CALLERID(num)=${IF($[${LEN(${CALLERIDNUM})} = 10]?44:)}${CALLERIDNUM})
exten => _X.,n,DeadAGI(a2billing.php|2|cid-callback|) ;last parameter is the callback area code
exten => _X.,n,Wait(60)
i make a call from a mobile phone, asterisk hangs up, and calls back to the mobile asking for the number it wish to call...
but when i enter the phone number it just ignore the dtmf and hangs up...
this is what i got from the CLI:
a2billing.php|2|callback: file:Class.A2Billing.php - line:678 - RES DTMF :
a2billing.php|2|callback: file:Class.A2Billing.php - line:696 - DESTINATION ::>
a2billing.php|2|callback: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::>
a2billing.php|2|callback: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='9958271530']
a2billing.php|2|callback: file:a2billing.php - line:975 - [CALLBACK 1ST LEG]:[INFO FOR THE 1ST LEG - callback_username=9958271530
a2billing.php|2|callback: file:Class.A2Billing.php - line:1640 - 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='9958271530'
a2billing.php|2|callback: file:Class.A2Billing.php - line:1714 - [SET LANGUAGE() es]
a2billing.php|2|callback: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='9958271530']
a2billing.php|2|callback: file:a2billing.php - line:981 - [CALLBACK 1ST LEG]:[MAKE BILLING FOR THE 1ST LEG - TARIFF:5;CALLED=82396596]
a2billing.php|2|callback: file:a2billing.php - line:996 - [CALLBACK]:[RateEngine -> answeredtime=19]
a2billing.php|2|callback: file:Class.RateEngine.php - line:835 - ft2c_package_offer : 0 ; ; 0
a2billing.php|2|callback: file:Class.RateEngine.php - line:914 - [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 ('1212699016.55', 'IAX2/vicidialnow-2', '9958271530', '', CURRENT_TIMESTAMP - INTERVAL 19 SECOND , '19', '82396596', 'ANSWERED', now(), '18.33', '+5.8045', '', '', 'entel-prueba', '5', '11', '4916', '', '82396596', '4', '18.33', '5.8045', '0')]
a2billing.php|2|callback: file:Class.RateEngine.php - line:917 - [CC_asterisk_stop 1.1: SQL: DONE : result=1]
a2billing.php|2|callback: file:Class.RateEngine.php - line:935 - [CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit= credit-5.8045 , lastuse=now(), nbused=nbused+1 WHERE username='9958271530']
a2billing.php|2|callback: file:Class.RateEngine.php - line:940 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 19 WHERE id_trunk=''
a2billing.php|2|callback: file:Class.RateEngine.php - line:944 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 19 WHERE id='11'
a2billing.php|2|callback: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='9958271530']
-- AGI Script a2billing.php completed, returning 0
-- Hungup 'IAX2/vicidialnow-2'
RES DTMF and DESTINATION seems to be empty...
ill apreciate any help
thanks
|