razametal wrote:
Thank you, but is solved:
http://forum.a2billing.net/viewtopic.php?t=1784I can't get DID's from ipkall working with a2billing.
Solved
Here is who you can use the IPKALL free DID's with a2billing:
First of all sign up for a free DID at
www.ipkall.com .
After your registration login to your account at
http://phone.ipkall.com/ipphone/login.asp
I will illustrate the sample with the DID 3604691449:
On ipkall settings be sure to have the following:
Code:
SIP Phone Number : 3604691449
SIP Proxy : my.asteriskbox.hostname.or.ip.address
Email Address :
[email protected]Password : 1234
Seconds to Ring before Hang Up: 120
Now on the asterisk box:
Edit sip.conf :
Code:
[ipkall]
type=friend
dtmfmode=rfc2833
insecure=very
host=voiper.ipkall.com
nat=no
allow=g729
context=a2billing-did
Edit extensions.conf
Code:
[a2billing-did]
exten => _X.,1,NoOp,${CALLERID(all)}
exten => _X.,2,DeadAGI(a2billing.php|2|did)
exten => _X.,3,Hangup()
Edit a2billing.conf
Code:
[agi-conf2]
debug = 1
asterisk_version = 1_2
answer_call = NO
play_audio = YES
say_goodbye = NO
play_menulanguage = NO
force_language =
intro_prompt =
min_credit_2call = 0.05
min_duration_2bill = 0
notenoughcredit_cardnumber = YES
notenoughcredit_assign_newcardnumber_cid = YES
use_dnid = YES
no_auth_dnid = 2400,2300
number_try = 1
force_callplan_id =
say_balance_after_auth = NO
say_balance_after_call = NO
say_rateinitial = NO
say_timetocall = NO
auto_setcallerid = YES
force_callerid =
cid_sanitize = NO
cid_enable = NO
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 = YES
sip_iax_pstn_direct_call_prefix = 9
sip_iax_pstn_direct_call = YES
ivr_voucher = YES
ivr_voucher_prefix = 8
jump_voucher_if_min_credit = NO
extracharge_did =
extracharge_fee =
dialcommand_param = "|45|HCL(%timeout%:61000:30000)"
dialcommand_param_sipiax_friend = "|60|HrL(3600000:61000:30000)"
switchdialcommand = NO
failover_recursive_limit = 2
maxtime_tocall_negatif_free_route = 5400
send_reminder = YES
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
It's time to go to a2billing admin panel:
Code:
-> Add DID Group
Name : Ipkall
-> Add DID
DID 3604691449
BILLING Free (You can charge for using it)
START DATE As default
EXPIRY DATE As default
DIDGROUP Ipkall
COUNTRY United States
ACTIVATED Yes
MONTHLY RATE 1
-> Add Destination
DESTINATION SIP/123456789 (this is the card number)
ID CARD 1
DID 3604691449
ACTIVATED Yes
PRIORITY 1
VOIP_CALL Yes
If you want to redirect it to your mobile device, the Destination must look like this:
Code:
-> Add Destination
DESTINATION 0059399855139 (check the dial rules of the card used to make the call)
ID CARD 1
DID 3604691449
ACTIVATED Yes
PRIORITY 1
VOIP_CALL No