Re: [Asterisk-Users] IP Authorization

15 views
Skip to first unread message

Olle E Johansson

unread,
Feb 9, 2006, 3:25:31 PM2/9/06
to Asterisk Users Mailing List - Non-Commercial Discussion
Sam Tam wrote:
> I think this is a question that has been discussed before.
> But you see nowadays most carriers will provide thing like SIP using IP
> authorization rather than username and password and I am now wondering
> whether Asterisk can do something like that or not?
>
In the voip channels as well as in manager you can set ACLs for the
connections you define.

/O
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

Darren Wiebe

unread,
Feb 9, 2006, 7:44:10 PM2/9/06
to Asterisk Users Mailing List - Non-Commercial Discussion
This is hopefully on topic. I'd like thoughts on this. I'm looking at
doing some dialplan work which would grab the sip devices IP number. If
that ip number is in an allowed list, the call would be allowed to go
through otherwise congestion would be passed. Any thoughts?

Darren Wiebe
dar...@aleph-com.net

Olle E Johansson wrote:

--
Darren Wiebe
dar...@aleph-com.net
Aleph Communications
ASTPP - Open Source Voip Billing & Calling Cards
www.aleph-com.net/astpp

Sam Tam

unread,
Feb 9, 2006, 9:13:31 PM2/9/06
to Asterisk Users Mailing List - Non-Commercial Discussion
Yeah something like that sound to be right.

Sam

Sam Tam

unread,
Feb 9, 2006, 9:16:01 PM2/9/06
to Asterisk Users Mailing List - Non-Commercial Discussion
Can you be more detail about the setup?

Sam

-----Original Message-----
From: asterisk-us...@lists.digium.com
[mailto:asterisk-us...@lists.digium.com] On Behalf Of Olle E
Johansson
Sent: Friday, February 10, 2006 4:26 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] IP Authorization

Alexander Lopez

unread,
Feb 10, 2006, 12:56:00 AM2/10/06
to Asterisk Users Mailing List - Non-Commercial Discussion
You can use the following:

switch3*CLI> show function SIPCHANINFO
switch3*CLI>
-= Info about function 'SIPCHANINFO' =-

[Syntax]
SIPCHANINFO(item)

[Synopsis]
Gets the specified SIP parameter from the current channel

[Description]
Valid items are:
- peerip The IP address of the peer.
- recvip The source IP address of the peer.
- from The URI from the From: header.
- uri The URI from the Contact: header.
- useragent The useragent.
- peername The name of the peer.

All the info you need is there.....

Sam Tam

unread,
Feb 10, 2006, 3:38:03 AM2/10/06
to Asterisk Users Mailing List - Non-Commercial Discussion
Ah that is from the CLI but still unclear about how to setup the
extension.conf or etc..

Alexander Lopez

unread,
Feb 10, 2006, 9:11:10 AM2/10/06
to Asterisk Users Mailing List - Non-Commercial Discussion
Exten => 123,1,NoOp(${SIPCHANINFO(recvip)})

Darren Wiebe

unread,
Feb 10, 2006, 8:37:56 PM2/10/06
to Asterisk Users Mailing List - Non-Commercial Discussion
I'm doing it similar to what the posted showed today. Then I'm calling
an agi script (Maybe not the nicest way) that checks to see if the IP is
allowed and sets the accountcode for the call.

Darren

Sam Tam wrote:

--
Darren Wiebe
dar...@aleph-com.net
Aleph Communications
ASTPP - Open Source Voip Billing & Calling Cards
www.aleph-com.net/astpp

_______________________________________________

Sam Tam

unread,
Feb 10, 2006, 10:46:01 PM2/10/06
to Asterisk Users Mailing List - Non-Commercial Discussion
When will it be ready ?

Darren Wiebe

unread,
Feb 11, 2006, 3:49:24 PM2/11/06
to Asterisk Users Mailing List - Non-Commercial Discussion
It's part of ASTPP. It is in astpp -head ready for testing.

Darren Wiebe
dar...@aleph-com.net

Reply all
Reply to author
Forward
0 new messages