Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 12:32 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: IP Authentication
PostPosted: Wed Sep 13, 2006 8:30 pm 
Offline

Joined: Mon Apr 10, 2006 5:46 pm
Posts: 9
Does anyone have a patch to allow IP Authentication instead of PIN or CID?

I am attempting to write this for A2B but I am a novice with PHP. I figured it's worth a shot to see if anyone else had done something like this.

Thanks,

bp


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 9:00 pm 
Offline

Joined: Sun Jun 25, 2006 9:13 am
Posts: 183
Location: Germany
Hello,


here is configration detail

add to sip.conf

[calling221]
type=peer
host=192.168.52.221
canreinvite=no
qualify=yes
deny=0.0.0.0/0.0.0.0
context=a2billing
accountcode=123456 (card number)

if user sip port other tha 5060
add
port=sip port



Mohan


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 9:19 pm 
Offline

Joined: Mon Apr 10, 2006 5:46 pm
Posts: 9
Thank you but how about a2billing.conf for this type of authentication?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 9:29 pm 
Offline

Joined: Sun Jun 25, 2006 9:13 am
Posts: 183
Location: Germany
Hello,

I did not tryed, but it should work.

Create sip account with above detail should work


Mohan


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 10:03 pm 
Offline

Joined: Mon Apr 10, 2006 5:46 pm
Posts: 9
Ok, I got it working. A big thanks to Mohan76.

For future reference to anyone else trying to do this, you will need to make the following changes to your a2billing.conf:

use_dnid=YES
cid_enable=NO

Another big "thank you" to Areski & everyone on the dev team, A2Billing ROCKS!!!


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 29, 2007 6:59 pm 
Offline

Joined: Mon Apr 09, 2007 7:18 pm
Posts: 43
I am trying but it does not work for me (trixbox)

I have a card number 132456

in my sip_additional.conf i put
[calling221]
type=peer
host=192.168.10.38 (ip of my ata)
canreinvite=no
qualify=yes
deny=0.0.0.0/0.0.0.0
context=a2billing
accountcode=123456

in my ata i put my server address but i left my username and my password as blank


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 29, 2007 7:35 pm 
Offline

Joined: Mon Apr 10, 2006 5:46 pm
Posts: 9
You should add the codecs you plan to use.

example:
disallow=all
allow=ulaw

The rest looks ok.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 29, 2007 8:07 pm 
Offline

Joined: Mon Jun 19, 2006 5:14 pm
Posts: 218
Quote:
in my sip_additional.conf i put
[calling221]
type=peer
host=192.168.10.38 (ip of my ata)
canreinvite=no
qualify=yes
deny=0.0.0.0/0.0.0.0
context=a2billing
accountcode=123456


1. use the deny and permit pair especially if you are not going to use username/secret
2. set the host=dynamic unless you are 100% sure the host address in not going to change

make sure on your ATA side the username is "calling221" it has to find the proper context to connect to and the "proxy" has the server's address

Since you ATA is connecting to the server set "type=friend" not peer. peer is for when you are calling out "user" is for calling in "friend" covers both

Check you 'context" and make sure that 'a2billing" does exist in the extensions.conf

In your trixbox cli or in your SSH do "sip show peers" so that you can see if the ATA is registered with the server


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 11:53 am 
Offline

Joined: Mon Apr 09, 2007 7:18 pm
Posts: 43
but the gateway does not provide a username, how can i accomplish this?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 1:28 pm 
Offline

Joined: Mon Jun 19, 2006 5:14 pm
Posts: 218
try and capture and post the "register" or "invite" SIP message sent from the Client to the Server.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 02, 2007 12:46 pm 
Offline

Joined: Mon Apr 09, 2007 7:18 pm
Posts: 43
the trick is secure=invite


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group