Hi all,
I have consulted the subject of configuration A2Billing as a Wholesale provider with IP authentication via the link :
viewtopic.php?p=17321 So I think that there are 3 steps to configure A2Billing as Wholesale provider with IP authentication :
Step 1 : Configuration SIP peer for Wholesale customer
- Create the SIP friend that you want to use IP authentication
- Set the `Type` field to `peer` without the quotes.
- Set the username field to nothing. Delete its content.
- Set the secret field to nothing. Delete its content
- Set the host field to the domain name or the IP address of the client
- Give a minimal peer setting context to the clients. And start testing.
All information is filled in file sip.conf or additional_a2billing_sip.conf
This is example :
Code:
[0486907346]
type=peer
accountcode=0486907346
regexten=0486907346
callerid=0486907346
amaflags=billing
nat=yes
dtmfmode=RFC2833
qualify=yes
canreinvite=yes
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=g729
host=ip of client
context=a2billing-wholesale
regseconds=0
cancallforward=yes
insecure=port,invite
- Reload asterisk
Step 2 : Configuration of dial plan
- Configure an agi-conf with : use_dnid = yes, play_audio= no , number_try=1, answer_call= no
- Configure a context extension :
Code:
[a2billing-wholesale]
exten => _X.,1,DeadAGI(a2billing.php|2)
exten => _X.,n,Hangup
Step 3 : Configure a new Call plan and new rate for wholesale customer.
In this configuration, I have some questions :
a) I don't understand the step 1. I know that there are 2 cases to create peer SIP client :
Case 1 : Create manually a peer sip in file sip.conf and link between this peer and account A2B via accountcode.
Case 2 : Create automatically a customer account in A2Billing and change dial plan for wholesale dial plan. So in this case, I may be change a field in Database A2Billing for context : a2billing ---> a2billing-wholesale . Because there is a function of Asterisk Realtime.
b) For IP authentication, Is it enough to configure : ?
Code:
host = IP of customer
insecure=port,invite
Thank in advance for all helps!
Best regards,
Ryan.