I have been trying for over two days to get my call backs working without success. I have been searching through this forum over and over again and have read the information in the /Doc folder and I am stuck.
This is what is happening:
Web Callback
From the customer interface I enter the two numbers, click submit then I get the message "Your callback request has been queued correctly!"
The system calls me on 441212121212 but disconnects when I answer the call but it should be calling the second number which is 447596xxxxxx.:
From the Asterisk CLI I get the below messages:
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'myasterisk' logged on from 127.0.0.1
[Dec 16 17:58:42] NOTICE[31258]: rtp.c:788 process_rfc3389: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 1.2.3.4
> Channel SIP/M-Xtra-08586c20 was answered.
-- Executing [447596xxxxxx@a2billing-callback:1] Answer("SIP/M-Xtra-08586c20", "") in new stack
-- Executing [447596xxxxxx@a2billing-callback:2] Set("SIP/M-Xtra-08586c20", "CALLERID(num)=44123456") in new stack
-- Executing [447596xxxxxx@a2billing-callback:3] DeadAGI("SIP/M-Xtra-08586c20", "a2billing.php|4|callback") in new stack
[Dec 16 17:58:48] WARNING[31259]: res_agi.c:2129 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
== Manager 'myasterisk' logged off from 127.0.0.1
-- AGI Script a2billing.php completed, returning 0
c1213s02*CLI>
CID Callback
If I try using the cid-callback I get:
-- Executing [44161xxxxxxx@a2billing:1] Goto("SIP/213.x.x.x-085a7f08", "a2billing-cid-callback|44161xxxxxxx|1") in new stack
-- Goto (a2billing-cid-callback,44161xxxxxxx,1)
-- Executing [44161xxxxxxx@a2billing-cid-callback:1] Ringing("SIP/213.x.x.x-085a7f08", "") in new stack
-- Executing [44161xxxxxxx@a2billing-cid-callback:2] Set("SIP/213.x.x.x-085a7f08", "CALLERID(num)=441212121212") in new stack
-- Executing [44161xxxxxxx@a2billing-cid-callback:3] Wait("SIP/213.x.x.x-085a7f08", "10") in new stack
-- Executing [44161xxxxxxx@a2billing-cid-callback:4] DeadAGI("SIP/213.x.x.x-085a7f08", "a2billing.php|4|cid-callback|44") in new stack
[Dec 16 18:17:14] WARNING[31511]: res_agi.c:2129 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
-- AGI Script a2billing.php completed, returning 0
c1213s02*CLI>
Here are my settings:
from a2billing.conf -
; MANAGER CONNECTION PARAMETERS
manager_host = localhost
manager_username = myasterisk
manager_secret = mycode
; CALL-BACK
[callback]
; When web call-back is enabled this is the context to sent the call.
context_callback = a2billing-callback
; this is the Extension to redirect the call when the web callback is returned
extension = 1000
; this is the number of seconds to wait before initiating the call back.
sec_wait_before_callback = 10
;Number of seconds before the call-back can be re-initiated from the web page
; to prevent repeated and unwanted calls.
sec_avoid_repeate = 30
; if the callback doesnt succeed within the value below, then the call is deemed to have failed.
timeout = 20
; if we want to manage the answer on the call
; Disabling this for callback trigger numbers makes it ring not hang up.
answer_call = no
[agi-conf4]
;
; This is the Call-Back configuration
;
debug = 0
asterisk_version = 1_4
answer_call = YES
play_audio = YES
say_goodbye = NO
play_menulanguage = NO
force_language =
intro_prompt = prepaid-callback_intro
min_credit_2call = 0
min_duration_2bill = 0
notenoughcredit_cardnumber = YEs
notenoughcredit_assign_newcardnumber_cid = YES
use_dnid = NO
no_auth_dnid = 2400,2300
number_try = 1
force_callplan_id =
say_balance_after_auth = YES
say_balance_after_call = NO
say_rateinitial = NO
say_timetocall = YES
auto_setcallerid = YES
force_callerid =
cid_sanitize = NO
cid_enable = YES
cid_askpincode_ifnot_callerid = YES
cid_auto_assign_card_to_cid = YES
cid_auto_create_card = NO
cid_auto_create_card_len = 10
cid_auto_create_card_typepaid = POSTPAY
cid_auto_create_card_credit = 0
cid_auto_create_card_credit_limit = 1000
cid_auto_create_card_tariffgroup = 6
callerid_authentication_over_cardnumber = NO
sip_iax_friends = NO
sip_iax_pstn_direct_call_prefix = 555
sip_iax_pstn_direct_call = NO
ivr_voucher = NO
ivr_voucher_prefix = 8
jump_voucher_if_min_credit = NO
extracharge_did =
extracharge_fee =
dialcommand_param = "|60|HL(%timeout%:61000:30000)"
dialcommand_param_sipiax_friend = "|60|HL(3600000:61000:30000)"
switchdialcommand = NO
failover_recursive_limit = 2
maxtime_tocall_negatif_free_route = 5400
send_reminder = NO
record_call = NO
monitor_formatfile = gsm
agi_force_currency =
currency_association = usd:dollars,mxn:pesos,eur:euros,all:credit
file_conf_enter_destination = prepaid-enter-dest
file_conf_enter_menulang = prepaid-menulang2
callback_bill_1stleg_ifcall_notconnected = YES
My extensions.conf
[a2billing]
;
; access-numbers
; for calling card and call back applications
;
exten => 44203xxxxxxx,1,Goto(a2billing-cc,${EXTEN},1)
exten => 44161xxxxxxx,1,Goto(a2billing-cid-callback,${EXTEN},1)
;
; Customers DIDs
;
exten => 44121xxxxxxx,1,Goto(a2billing-did,${EXTEN},1)
;
;
exten => _X.,1,Answer
exten => _X.,n,Wait,3
exten => _X.,n,DeadAGI(a2billing.php|1)
exten => _X.,n,Wait,3
exten => _X.,n,Hangup
;
;
[a2billing-cc]
; *** CallingCard application for PINLESS dialling
; *** from Landlines and Mobiles using agi-conf1
;
exten => _X.,1,NoOp,${CALLERID(all)}
exten => _X.,n,Answer
exten => _X.,n,Wait(2)
exten => _X.,n,DeadAGI(a2billing.php|2)
exten => _X.,n,Wait(2)
exten => _X.,n,Hangup
;
;
[a2billing-callback]
exten => _X.,1,Answer
exten => _X.,n,Set(CALLERID(num)=44${IF($[${CALLERID(num):0:1}=0]?${CALLERID(num):1}:${CALLERID(num)})})
exten => _X.,n,DeadAGI(a2billing.php|4|callback)
exten => _X.,n,Hangup
[a2billing-cid-callback]
exten => _X.,1,Ringing()
exten => _X.,n,Set(CALLERID(num)=44${IF($[${CALLERID(num):0:1}=0]?${CALLERID(num):1}:${CALLERID(num)})})
exten => _X.,n,Wait(10)
exten => _X.,n,DeadAGI(a2billing.php|4|cid-callback|44) ;last parameter is the callback area code
exten => _X.,n,Hangup
[a2billing-all-callback]
exten => _X.,1,Ringing()
exten => _X.,n,Set(CALLERID(num)=44${IF($[${CALLERID(num):0:1}=0]?${CALLERID(num):1}:${CALLERID(num)})})
exten => _X.,n,DeadAGI(a2billing.php|4|cid-callback|44) ;last parameter is the callback area code
exten => _X.,n,Wait(10)
exten => _X.,n,Hangup
;
I would be grateful if anyone can help me out here.
regards,
Sammy
|