Customer
type=friend, username=9250, type=friend, username=9250, accountcode=9250, regexten=9250, callerid=4332,
amaflags=billing, secret=6628619979, NAT=yes, tdmfmode=rfc2833, qualify=yes, canreinvite=yes,disallow=all,
allo=g729,ulaw,alaw,gsm, host=dynamic, callgroup=<blank>, context=a2billing, (the rest blank except)
RegSeconds=0, cancallforward=yes
List sip-friends shows the above
DID
DID=6144481900, billing=Fix per month, startdate=2006-12-04 13:43:36, endate=2031-12-04 13:43:36,
DIDGroup=ldl, country=US,activated=yes, fixrate 0.02
DESTINATION
Destination SIP/9250 (have tried just 9250,
[email protected], SIP/
[email protected])
ID Card 4
DID 6144481900
activated Yes
priority 1
VOIP_Call Yes (have tried no)
my trixbox inbound route for this did is set to:
<x> Set Destination Custom App: custom-ext-did-a2b,s,1
[custom-ext-did-a2b]
exten => s,1,DeadAGI(a2billing.php|2|did)
exten => s,2,Wait,2
exten => s,3,Hangup
Below is my agi-conf2
When I dial in on the 6144481900 the little lady says, Person at extension 6144481900 is unavialbe please leave your
message after the tone when done hang up or press the # key.
WHY is the extension not ringing?
Asterick CLI shows:
- Executing NoOp("SIP/kbrown-09177128", "Received incoming SIP connection from unknown peer to
6144481900") in new stack
- Executing Goto("SIP/kbrown-09177128", "custom-ext-did-a2b|s|1") in new stack
-- Goto (custom-ext-did-a2b,s,1)
-- Executing DeadAGI("SIP/kbrown-09177128", "a2billing.php|2|did") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php|2|did: line:58 - IDCONFIG : 2
a2billing.php|2|did:
a2billing.php|2|did: line:67 - MODE : did
a2billing.php|2|did:
a2billing.php|2|did: A2Billing AGI internal configuration:
.....
......
and the the end of the info shows
a2billing.php|2|did: line:490 get_agi_request_parameter = 2816574545 ; SIP/kbrown-09177128 ; 1165327173.251
; ; s
a2billing.php|2|did: line:314 - [NO ANSWER CALL]
a2billing.php|2|did: line:330 - [DID CALL - [CallerID=2816574545]:[DID=s]
a2billing.php|2|did: line:340 - 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='s' AND cc_did.startingdate<=
CURRENT_TIMESTAMP AND (cc_did.expirationdate > CURRENT_TIMESTAMP OR cc_did.expirationdate IS
NULL OR LENGTH(cc_did.expirationdate)<5) ORDER BY priority ASC
a2billing.php|2|did: line:343 - 0
-- AGI Script a2billing.php completed, returning 0
[agi-conf2]
debug=1
answer_call=NO
logger_enable=YES
log_file=/tmp/a2billing.log
setlanguage_deprecate=YES
say_goodbye=NO
play_menulanguage=NO
force_language=
intro_prompt=
len_cardnumber=4
len_aliasnumber = 3
len_voucher = 3
min_credit_2call=0
min_duration_2bill=0
notenoughcredit_cardnumber=NO
notenoughcredit_assign_newcardnumber_cid=NO
use_dnid=YES
number_try=1
say_balance_after_auth=NO
say_balance_after_call=NO
say_rateinitial=NO
say_timetocall=NO
auto_setcallerid=YES
force_callerid=
cid_sanitize=CID
cid_enable=YES
cid_askpincode_ifnot_callerid=NO
cid_auto_create_card=NO
cid_auto_assign_card_to_cid=NO
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
sip_iax_friends=NO
sip_iax_pstn_direct_call_prefix=9
sip_iax_pstn_direct_call=NO
extracharge_did=
extracharge_fee=
dialcommand_param="|90|HL(%timeout%:61000:30000)"
dialcommand_param_sipiax_friend="|90|HL(3600000:61000:30000)"
switchdialcommand=NO
maxtime_tocall_negatif_free_route = 5400
send_reminder=NO
record_call=NO
monitor_formatfile=gsm
base_currency = usd
agi_force_currency =
currency_association = usd:prepaid-dollar,mxn:pesos,eur:euro,all:credit
file_conf_enter_destination = prepaid-enter-dest
file_conf_enter_menulang = prepaid-menulang2
debugshell=0