Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 10:57 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: additional
PostPosted: Wed Jul 04, 2007 4:55 am 
Offline

Joined: Wed Jul 04, 2007 4:40 am
Posts: 1
Hello,
Can someone, please point me how to solve this routing problem ?

I call the .php with ...|1|did). But the call is not routed to the destination I configured.
The DID is ok (8574884444) DID is active as well as the destination. I can dial the destination manually without problems. Below is my output on the asterisk cli.

P.S: I tried to look at the line that comes last. and I think the query is not returning anything, because I tried to execute manually in the database and it came an error saying that '0000-00-00 00:00:00' is not a valid date or something ... but I tried to take this off the query in a way that it would execute and it came another error ... And I think that if there was an error somebody could have already seen ....

Pls help me ...

Thanks,

------------------------------------------------

-- Executing [8574884444@a2billing] Answer("SIP/81.201.84.25-081f6290", "") in new stack
-- Executing [8574884444@a2billing] Wait("SIP/81.201.84.25-081f6290", "2") in new stack
-- Executing [8574884444@a2billing] DeadAGI("SIP/81.201.84.25-081f6290", "a2billing.php|1|did") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php|1|did: A2Billing AGI internal configuration:
a2billing.php|1|did: Array
a2billing.php|1|did: (
a2billing.php|1|did: [debug] => 1
a2billing.php|1|did: [asterisk_version] => 1_4
a2billing.php|1|did: [answer_call] => 1
a2billing.php|1|did: [play_audio] => 1
a2billing.php|1|did: [say_goodbye] =>
a2billing.php|1|did: [play_menulanguage] =>
a2billing.php|1|did: [force_language] =>
a2billing.php|1|did: [intro_prompt] =>
a2billing.php|1|did: [min_credit_2call] => 0
a2billing.php|1|did: [min_duration_2bill] => 0
a2billing.php|1|did: [notenoughcredit_cardnumber] => 1
a2billing.php|1|did: [notenoughcredit_assign_newcardnumber_cid] => 1
a2billing.php|1|did: [use_dnid] =>
a2billing.php|1|did: [no_auth_dnid] => Array
a2billing.php|1|did: (
a2billing.php|1|did: [0] => 2400
a2billing.php|1|did: [1] => 2300
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: [number_try] => 3
a2billing.php|1|did: [force_callplan_id] =>
a2billing.php|1|did: [say_balance_after_auth] => 1
a2billing.php|1|did: [say_balance_after_call] =>
a2billing.php|1|did: [say_rateinitial] =>
a2billing.php|1|did: [say_timetocall] => 1
a2billing.php|1|did: [auto_setcallerid] => 1
a2billing.php|1|did: [force_callerid] =>
a2billing.php|1|did: [cid_sanitize] =>
a2billing.php|1|did: [cid_enable] =>
a2billing.php|1|did: [cid_askpincode_ifnot_callerid] => 1
a2billing.php|1|did: [cid_auto_assign_card_to_cid] => 1
a2billing.php|1|did: [cid_auto_create_card] =>
a2billing.php|1|did: [cid_auto_create_card_len] => 10
a2billing.php|1|did: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php|1|did: [cid_auto_create_card_credit] => 0
a2billing.php|1|did: [cid_auto_create_card_credit_limit] => 1000
a2billing.php|1|did: [cid_auto_create_card_tariffgroup] => 6
a2billing.php|1|did: [callerid_authentication_over_cardnumber] =>
a2billing.php|1|did: [sip_iax_friends] =>
a2billing.php|1|did: [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php|1|did: [sip_iax_pstn_direct_call] =>
a2billing.php|1|did: [ivr_voucher] =>
a2billing.php|1|did: [ivr_voucher_prefix] => 8
a2billing.php|1|did: [jump_voucher_if_min_credit] =>
a2billing.php|1|did: [extracharge_did] => Array
a2billing.php|1|did: (
a2billing.php|1|did: [0] =>
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: [extracharge_fee] => Array
a2billing.php|1|did: (
a2billing.php|1|did: [0] =>
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: [dialcommand_param] => |60|HRrL(%timeout%:61000:30000)
a2billing.php|1|did: [dialcommand_param_sipiax_friend] => |60|HL(3600000:61000:30000)
a2billing.php|1|did: [switchdialcommand] =>
a2billing.php|1|did: [failover_recursive_limit] => 2
a2billing.php|1|did: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php|1|did: [send_reminder] =>
a2billing.php|1|did: [record_call] =>
a2billing.php|1|did: [monitor_formatfile] => gsm
a2billing.php|1|did: [agi_force_currency] =>
a2billing.php|1|did: [currency_association] => Array
a2billing.php|1|did: (
a2billing.php|1|did: [0] => usd:dollars
a2billing.php|1|did: [1] => mxn:pesos
a2billing.php|1|did: [2] => eur:euros
a2billing.php|1|did: [3] => all:credit
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php|1|did: [file_conf_enter_menulang] => prepaid-menulang2
a2billing.php|1|did: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php|1|did: [logger_enable] => 1
a2billing.php|1|did: [log_file] => /tmp/a2billing.log
a2billing.php|1|did: [currency_association_internal] => Array
a2billing.php|1|did: (
a2billing.php|1|did: [usd] => dollars
a2billing.php|1|did: [mxn] => pesos
a2billing.php|1|did: [eur] => euros
a2billing.php|1|did: [all] => credit
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: [ivr_voucher_prefixe] => 8
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: file:a2billing.php - line:75 - IDCONFIG : 1
a2billing.php|1|did: file:a2billing.php - line:76 - MODE : did
a2billing.php|1|did: file:a2billing.php - line:88 - AGI Request:
a2billing.php|1|did: file:a2billing.php - line:89 - Array
a2billing.php|1|did: (
a2billing.php|1|did: [agi_request] => a2billing.php
a2billing.php|1|did: [agi_channel] => SIP/81.201.84.25-081f6290
a2billing.php|1|did: [agi_language] => en
a2billing.php|1|did: [agi_type] => SIP
a2billing.php|1|did: [agi_uniqueid] => 1183523424.98
a2billing.php|1|did: [agi_callerid] => 16174612222
a2billing.php|1|did: [agi_calleridname] => 16174612222
a2billing.php|1|did: [agi_callingpres] => 0
a2billing.php|1|did: [agi_callingani2] => 0
a2billing.php|1|did: [agi_callington] => 0
a2billing.php|1|did: [agi_callingtns] => 0
a2billing.php|1|did: [agi_dnid] => 8574884444
a2billing.php|1|did: [agi_rdnis] => unknown
a2billing.php|1|did: [agi_context] => a2billing
a2billing.php|1|did: [agi_extension] => 8574884444
a2billing.php|1|did: [agi_priority] => 3
a2billing.php|1|did: [agi_enhanced] => 0.0
a2billing.php|1|did: [agi_accountcode] =>
a2billing.php|1|did: )
a2billing.php|1|did:
a2billing.php|1|did: file:Class.A2Billing.php - line:601 - get_agi_request_parameter = 16174612222 ; SIP/81.201.84.25-081f6290 ; 1183523424.98 ; ; 8574884444
a2billing.php|1|did: file:a2billing.php - line:314 - [ANSWER CALL]
a2billing.php|1|did: file:a2billing.php - line:329 - [DID CALL - [CallerID=16174612222]:[DID=8574884444]
a2billing.php|1|did: file:a2billing.php - line:337 - 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='8574884444' 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
a2billing.php|1|did: file:a2billing.php - line:339 -
-- AGI Script a2billing.php completed, returning 0

Added after 2 minutes:

Ah ....
Just one more thing ...
I have already tried with use_dnid = YES and NO ... but neither worked ...
Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 
Predictive Dialer


All times are UTC


Who is online

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