Hi All,
I assume every one know how to setup openser and a2billing. What I am going to write in here is about how to configurate them to get them link together. (i.e. openser send call to a2billing)
for openser, as i have mentioned i obtained a sample configuration from
http://www.sipwise.com, using "SIP Proxy/Registrar with Offnet-Termination and Accounting". I will post my configuration in the next post.
IMO, openser need to be installed from the tar ball or svn, as in this way, sipwise configuration will fit in prefectly without modification.
Then after putting the openser configuration in the right directory, restart openser to see if there is any error. If there is no error, it is time to do some tests.
Create 2 users in the openser.subscriber table, using the command openserctl add <username> <password> <email>, username need to be a number, as this will be the CID present to a2billing. test the on-net calling between 2 users (u will need 2 sip phones to test). if this works, then we can move to next step.
Add LCR Gateway - this will be your A2Billing ip address and port number, if you have a2billing and openser on the same machine, make sure asterisk and openser are listening on a different port. To add gateway use the following commands:
openserctl lcr addroute '' '' '1' '1'
openserctl lcr addgw 'a2billing' 'ip.of.a2billing.com' 'portnumber' '1' '1' '1'
Then configure Asterisk incoming trunk to pick up call from openser and put the call to the a2billing context. In sip.conf you will need to have.
[openser-in]
host=ipaddress of openser
dtmfmode=rfc2833
type=peer
context=a2billing-2
insecure=very
nat=never
allow=all
reload asterisk.
try to make a call from one of the users you have created in openser, the call should be send to a2billing, depending on your a2biling configuration, you should here " Please enter your card number".
then you will be at the stage looking for how you can join both of them.
However, i cannot get the mysql 5 view function working for openser, otherwise, this intergation would has been completed and I should have a full step by step instruction ready by now...
I use card alias as the username , webui password as the password in openser. I was hoping VIEW will work for them, so customer can change the sip account password and the sip password at the same time. and there is no other scripting work to do...
I hope this document will help you guys. I will be busy on my exam and study in the comming weeks, so i don't think i am able to make any further progress on this. I hope i may hear some good news from you guys!
Regards,
Howard