I've one account and DID with les.net
Please can you show me how to setup the DID with this provider? I've the sip.conf setup done but can not receive calls dialing to this DID.
Please check it out:
Under LIST DID GROUP:
Code:
- DID GROUP LIST -
ID DIDGROUP NAME CREATION DATE ACTION
2 lesnet 2007-02-27 19:03:21
Under LIST DID:
Code:
- DID LIST -
DID BILLING START DATE EXPIRY DATE DIDGROUP COUNTRY ACT MU FIXRATE ACTION
6464010991 Free 2007-02-27 19:03:32 2032-02-27 19:03:32 lesnet United States Active 00:00 0 Edit this did Delete this did
Under LIST DESTINATIONS:
Code:
- DID DESTINATION LIST -
DESTINATION CREATIONDATE DID CARDNUMBER ACTIVE VOIP PRIOR MINUTES USED ACTION
SIP/4564004 2007-02-27 19 6464010991 4564004 Active Active 1 00:00 Edit this Did Destination
My extensions.conf:
Code:
exten => _X.,1,NoOp,${CALLERID(all)}
exten => _X.,2,DeadAGI(a2billing.php|2|did)
exten => _X.,3,Hangup
This is the log output when dialing the DID number from other asterisk box:
Code:
-- Executing NoOp("SIP/64.34.176.212-0824fcc0", ""2125423189" <6464010991>") in new stack
-- Executing DeadAGI("SIP/64.34.176.212-0824fcc0", "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:
a2billing.php|2|did: Array
a2billing.php|2|did: (
a2billing.php|2|did: [debug] => 3
a2billing.php|2|did: [answer_call] =>
a2billing.php|2|did: [logger_enable] => 1
a2billing.php|2|did: [log_file] => /var/log/asterisk/a2billing-did.log
a2billing.php|2|did: [say_goodbye] =>
a2billing.php|2|did: [play_menulanguage] =>
a2billing.php|2|did: [force_language] => ES
a2billing.php|2|did: [intro_prompt] =>
a2billing.php|2|did: [len_cardnumber] => 7
a2billing.php|2|did: [len_aliasnumber] => 15
a2billing.php|2|did: [len_voucher] => 15
a2billing.php|2|did: [min_credit_2call] => 0.02
a2billing.php|2|did: [min_duration_2bill] => 6
a2billing.php|2|did: [notenoughcredit_cardnumber] =>
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: [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] =>
a2billing.php|2|did: [cid_auto_create_card] =>
a2billing.php|2|did: [cid_auto_assign_card_to_cid] =>
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] => 1
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: [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] => |120|HLrCRo(%timeout%:61000:00000)
a2billing.php|2|did: [dialcommand_param_sipiax_friend] => |20|HLrCR(3600000:61000:30000)
a2billing.php|2|did: [switchdialcommand] =>
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: [base_currency] => usd
a2billing.php|2|did: [agi_force_currency] =>
a2billing.php|2|did: [currency_association] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [0] => usd:prepaid-dollar
a2billing.php|2|did: [1] => mxn:pesos
a2billing.php|2|did: [2] => eur:euro
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: [currency_association_internal] => Array
a2billing.php|2|did: (
a2billing.php|2|did: [usd] => prepaid-dollar
a2billing.php|2|did: [mxn] => pesos
a2billing.php|2|did: [eur] => euro
a2billing.php|2|did: [all] => credit
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: )
a2billing.php|2|did:
a2billing.php|2|did: AGI Request:
a2billing.php|2|did: Array
a2billing.php|2|did: (
a2billing.php|2|did: [agi_request] => a2billing.php
a2billing.php|2|did: [agi_channel] => SIP/64.34.176.212-0824fcc0
a2billing.php|2|did: [agi_language] => es
a2billing.php|2|did: [agi_type] => SIP
a2billing.php|2|did: [agi_uniqueid] => 1172630509.74
a2billing.php|2|did: [agi_callerid] => 6464010991
a2billing.php|2|did: [agi_calleridname] => 2125423189
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] => 21254231896464010991
a2billing.php|2|did: [agi_rdnis] => unknown
a2billing.php|2|did: [agi_context] => a2billing-did
a2billing.php|2|did: [agi_extension] => 21254231896464010991
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: line:491 get_agi_request_parameter = 6464010991 ; SIP/64.34.176.212-0824fcc0 ; 1172630509.74 ; ; 21254231896464010991
a2billing.php|2|did: line:314 - [NO ANSWER CALL]
a2billing.php|2|did: line:330 - [DID CALL - [CallerID=6464010991]:[DID=21254231896464010991]
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='21254231896464010991' 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
What can be wrong on my setup ?[/code]
Added after 21 minutes: Yes.. is solved. The trouble was with the les.net settings for my DID. The settings of the DID must be:
Code:
DID 6464010991
Route To mypeer
Send ANI Prefix UNCHECKED
Send DID Prefix CHECKED
Send Prefix LEAVE BLANK
Force DID CLI LEAVE BLANK
Force Ringing LEAVE UNCHECKED
(Check if no ringing heard)
Voicemail Enabled LEAVE UNCHECKED
Go to voicemail after (seconds)
Voicemail Password LEAVE BLANK
Voicemail Access Code 99
Email voicemail to LEAVE BLANK
Thank you