Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 23, 2024 7:28 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: callback dtmf problem
PostPosted: Thu Jun 05, 2008 9:08 pm 
Offline

Joined: Tue Feb 19, 2008 8:45 pm
Posts: 31
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 05, 2008 9:46 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Seems like you've diagnosed the problem correctly. I guess this could be due to your DTMF configuration on Asterisk, but given the number of posts on this topic which were resolved by using a better carrier I think the fault being at their end is more likely.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 06, 2008 1:43 pm 
Offline

Joined: Tue Feb 19, 2008 8:45 pm
Posts: 31
i try to add dtmfmode=RFC2833 to the asterisk configuration
but it doesnt get better...


when i enter a code number from an external phone without using callback, i think i must have the same problem with the dtmf codes, but i have not... i can call with no problems and the dtmf detection works great...

only with callback i get this problem

is it the same situation?

i think that maybe the dtmf only work well when the call is made, but not when the call is received...

a least in my case it seems to work this way...

besides changing the carrier, is there another option to solve this??


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 13 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group