stavros wrote:
Are you sure that SIP client is registered?
'set verbose 15' might entice Asterisk to give you an additional error at that point [code] .
// these are from FreePbx
2002/2002 (Unspecified) D N 0 UNKNOWN
2001/2001 (Unspecified) D N 0 UNKNOWN
// These are from a2billing
5843569/5843569 (Unspecified) D N 0 UNKNOWN
4742821773/4742821773 XXX.XXX.XXX.XXX D N 60200 LAGGED (98 ms)
3660004911/3660004911 xx.xxx.xxx.xxx D N 47740 LAGGED (175 ms)
I have verbose set to 100
Destination is set to
SIP/3660004911
Voip_Call
Here is the verbose
-- Executing NoOp("SIP/111.111.111.111-09c026f0", ""1718xxxxxxx" <1718xxxxxxx>") in new stack
-- Executing DeadAGI("SIP/111.111.111.111-09c026f0", "a2billing.php|2|did") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php|2|did: A2Billing AGI internal configuration:
a2billing.php|2|did: Array
a2billing.php|2|did: (
a2billing.php|2|did: [debug] => 3
a2billing.php|2|did: [asterisk_version] => 1_2
a2billing.php|2|did: [answer_call] =>
a2billing.php|2|did: [play_audio] => 1
a2billing.php|2|did: [say_goodbye] =>
a2billing.php|2|did: [play_menulanguage] =>
a2billing.php|2|did: [force_language] =>
a2billing.php|2|did: [intro_prompt] =>
a2billing.php|2|did: [min_credit_2call] => 0.05
a2billing.php|2|did: [min_duration_2bill] => 0
a2billing.php|2|did: [notenoughcredit_cardnumber] => 1
a2billing.php|2|did: [notenoughcredit_assign_newcardnumber_cid] => 1
a2billing.php|2|did: [use_dnid] => 1
a2billing.php|2|did: [no_auth_dnid] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [0] => 2400
a2billing.php|2|did: [1] => 2300
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: [number_try] => 1
a2billing.php|2|did: [force_callplan_id] =>
a2billing.php|2|did: [say_balance_after_auth] =>
a2billing.php|2|did: [say_balance_after_call] =>
a2billing.php|2|did: [say_rateinitial] =>
a2billing.php|2|did: [say_timetocall] =>
a2billing.php|2|did: [auto_setcallerid] => 1
a2billing.php|2|did: [force_callerid] =>
a2billing.php|2|did: [cid_sanitize] =>
a2billing.php|2|did: [cid_enable] =>
a2billing.php|2|did: [cid_askpincode_ifnot_callerid] => 1
a2billing.php|2|did: [cid_auto_assign_card_to_cid] => 1
a2billing.php|2|did: [cid_auto_create_card] =>
a2billing.php|2|did: [cid_auto_create_card_len] => 10
a2billing.php|2|did: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php|2|did: [cid_auto_create_card_credit] => 0
a2billing.php|2|did: [cid_auto_create_card_credit_limit] => 1000
a2billing.php|2|did: [cid_auto_create_card_tariffgroup] => 6
a2billing.php|2|did: [callerid_authentication_over_cardnumber] =>
a2billing.php|2|did: [sip_iax_friends] => 1
a2billing.php|2|did: [sip_iax_pstn_direct_call_prefix] => 9
a2billing.php|2|did: [sip_iax_pstn_direct_call] => 1
a2billing.php|2|did: [ivr_voucher] => 1
a2billing.php|2|did: [ivr_voucher_prefix] => 8
a2billing.php|2|did: [jump_voucher_if_min_credit] =>
a2billing.php|2|did: [extracharge_did] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [0] =>
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: [extracharge_fee] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [0] =>
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: [dialcommand_param] => |45|HCL(%timeout%:61000:30000)
a2billing.php|2|did: [dialcommand_param_sipiax_friend] => |60|HrL(3600000:61000:30000)
a2billing.php|2|did: [switchdialcommand] =>
a2billing.php|2|did: [failover_recursive_limit] => 2
a2billing.php|2|did: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php|2|did: [send_reminder] => 1
a2billing.php|2|did: [record_call] =>
a2billing.php|2|did: [monitor_formatfile] => gsm
a2billing.php|2|did: [agi_force_currency] =>
a2billing.php|2|did: [currency_association] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [0] => usd:dollars
a2billing.php|2|did: [1] => mxn:pesos
a2billing.php|2|did: [2] => eur:euros
a2billing.php|2|did: [3] => all:credit
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php|2|did: [file_conf_enter_menulang] => prepaid-menulang2
a2billing.php|2|did: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php|2|did: [logger_enable] => 1
a2billing.php|2|did: [log_file] => /tmp/a2billing.log
a2billing.php|2|did: [currency_association_internal] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [usd] => dollars
a2billing.php|2|did: [mxn] => pesos
a2billing.php|2|did: [eur] => euros
a2billing.php|2|did: [all] => credit
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: [ivr_voucher_prefixe] => 8
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: file:a2billing.php - line:75 - IDCONFIG : 2
a2billing.php|2|did: file:a2billing.php - line:76 - MODE : did
a2billing.php|2|did: file:a2billing.php - line:88 - AGI Request:
a2billing.php|2|did: file:a2billing.php - line:89 - Array
a2billing.php|2|did: (
a2billing.php|2|did: [agi_request] => a2billing.php
a2billing.php|2|did: [agi_channel] => SIP/111.111.111.111-09c026f0
a2billing.php|2|did: [agi_language] => en
a2billing.php|2|did: [agi_type] => SIP
a2billing.php|2|did: [agi_uniqueid] => 1194440483.1493
a2billing.php|2|did: [agi_callerid] => 1718xxxxxxx
a2billing.php|2|did: [agi_calleridname] => 1718xxxxxxx
a2billing.php|2|did: [agi_callingpres] => 0
a2billing.php|2|did: [agi_callingani2] => 0
a2billing.php|2|did: [agi_callington] => 0
a2billing.php|2|did: [agi_callingtns] => 0
a2billing.php|2|did: [agi_dnid] => 1305ZZZZZZZ
a2billing.php|2|did: [agi_rdnis] => unknown
a2billing.php|2|did: [agi_context] => a2billing-did
a2billing.php|2|did: [agi_extension] => 1305ZZZZZZZ
a2billing.php|2|did: [agi_priority] => 2
a2billing.php|2|did: [agi_enhanced] => 0.0
a2billing.php|2|did: [agi_accountcode] =>
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: file:Class.A2Billing.php - line:602 - get_agi_request_parameter = 1718xxxxxxx ; SIP/111.111.111.111-09c026f0 ; 1194440483.1493 ; ; 1305ZZZZZZZ
a2billing.php|2|did: file:a2billing.php - line:317 - [NO ANSWER CALL]
a2billing.php|2|did: file:a2billing.php - line:329 - [DID CALL - [CallerID=1718xxxxxxx]:[DID=1305ZZZZZZZ]
a2billing.php|2|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='13058902989' 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|2|did: file:a2billing.php - line:339 - Array
a2billing.php|2|did: file:Class.A2Billing.php - line:953 - [A2Billing] DID call friend: FOLLOWME=1 (cardnumber:3660004911|destination:SIP/3660004911|tariff:5)
a2billing.php|2|did:
a2billing.php|2|did: file:Class.A2Billing.php - line:1670 - 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='3660004911'
a2billing.php|2|did: file:Class.A2Billing.php - line:1744 - [SET LANGUAGE() fr]
a2billing.php|2|did: file:Class.A2Billing.php - line:635 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='3660004911']
a2billing.php|2|did: file:Class.A2Billing.php - line:981 - [A2Billing] DID call friend: Dialing 'SIP/3660004911|60|HrL(3600000:61000:30000)' Friend.
a2billing.php|2|did:
-- AGI Script Executing Application: (DIAL) Options: (SIP/3660004911|60|HrL(3600000:61000:30000))
-- Limit Data for this call:
-- - timelimit = 3600000
-- - 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|2|did: file:Class.A2Billing.php - line:635 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='3660004911']
-- AGI Script a2billing.php completed, returning 0
asterisk1*CLI>