[asterisk-users] Asterisk and OpenLDAP

2012-10-31 Thread Giuseppe Longo
Hello guys,
i would like to implement authentication for my sip extension with an
openldap server.
Following this guide
http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/ExternalServices_id291590.html
i see a template named [sip] to map the information of sip peers into ldap.

But i'm not interested to create a template, i would only authenticate
sip extensions using username and password
stored in ldap database.

How can i configure this mechanism?

Thanks in advice,
Regards.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Asterisk and OpenLDAP

2012-10-31 Thread Giuseppe Longo
2012/10/31 Danny Nicholas da...@debsinc.com:
 You just need a program(C, PHP, Perl) to query LDAP and update SIP.   The
 example you list requires realtime, but if you roll your own, you could
 update /etc/asterisk/sip.conf and issue an 'asterisk -rx sip reload' to
 update when needed.

 -Original Message-
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Giuseppe Longo
 Sent: Wednesday, October 31, 2012 8:33 AM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: [asterisk-users] Asterisk and OpenLDAP

 Hello guys,
 i would like to implement authentication for my sip extension with an
 openldap server.
 Following this guide
 http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/External
 Services_id291590.html
 i see a template named [sip] to map the information of sip peers into ldap.

 But i'm not interested to create a template, i would only authenticate sip
 extensions using username and password stored in ldap database.

 How can i configure this mechanism?

 Thanks in advice,
 Regards.

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
 Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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

Thanks for your help, i've only a question.
How do i configure extensions?

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Asterisk and OpenLDAP

2012-10-31 Thread Giuseppe Longo
With this configuration, the peer doesn't authenticate with ldap, right?

2012/10/31 Danny Nicholas da...@debsinc.com:
 -Original Message-
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Giuseppe Longo
 Sent: Wednesday, October 31, 2012 8:47 AM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: Re: [asterisk-users] Asterisk and OpenLDAP

 2012/10/31 Danny Nicholas da...@debsinc.com:
 You just need a program(C, PHP, Perl) to query LDAP and update SIP.   The
 example you list requires realtime, but if you roll your own, you
 could update /etc/asterisk/sip.conf and issue an 'asterisk -rx sip
 reload' to update when needed.

 -Original Message-
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Giuseppe
 Longo
 Sent: Wednesday, October 31, 2012 8:33 AM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: [asterisk-users] Asterisk and OpenLDAP

 Hello guys,
 i would like to implement authentication for my sip extension with an
 openldap server.
 Following this guide
 http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/Ex
 ternal
 Services_id291590.html
 i see a template named [sip] to map the information of sip peers into
 ldap.

 But i'm not interested to create a template, i would only authenticate
 sip extensions using username and password stored in ldap database.

 How can i configure this mechanism?

 Thanks in advice,
 Regards.

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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

 Thanks for your help, i've only a question.
 How do i configure extensions?

 Just create a peer for each extension like this:
 [sipuser]
 type=friend
 context=default
 host=dynamic
 secret=xx
 canreinvite=yes
 directrtpsetup=no
 call-limit=3
 nat=yes
 qualify=yes
 register=no
 session-timers=accept
 session-expires=60
 session-minse=120
 session-refresher=uac
 register = sipuser:xxx@xxx/sipuser
 defaultip=192.168.23.107
 disallow=all
 allow=gsm



 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Asterisk and OpenLDAP

2012-10-31 Thread Giuseppe Longo
I don't want update Asterisk configuration, i want to query LDAP only
for name and secret field.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Asterisk and OpenLDAP

2012-10-31 Thread Giuseppe Longo
I don't understand why in [_general] section of res_ldap.conf i need
to put user and pass when
i want to authenticate my extensions.

2012/10/31 Danny Nicholas da...@debsinc.com:
 Based on my knowledge, the general section provides an interface to your
 LDAP server and the sipuser section sets up one static user.

 -Original Message-
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Giuseppe Longo
 Sent: Wednesday, October 31, 2012 9:02 AM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: Re: [asterisk-users] Asterisk and OpenLDAP

 This configuration is wrong?

 [_general]
 url=ldap://172.16.0.103:389
 protocol=3
 basedn=dc=shifteight,dc=org
 user=cn=admin,dc=shifteight,dc=org
 pass=canada

 [sipuser]
 name=cn
 type=friend
 context=default
 host=dynamic
 secret=AstAccountSecret
 canreinvite=yes
 directrtpsetup=no
 call-limit=3
 nat=yes
 qualify=yes
 register=no
 session-timers=accept
 session-expires=60
 session-minse=120
 session-refresher=uac
 register = sipuser:xxx@xxx/sipuser
 defaultip=192.168.23.107
 disallow=all
 allow=gsm

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
 Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Asterisk and OpenLDAP

2012-10-31 Thread Giuseppe Longo
Yes, but i think that's better to open an LDAP connection with
extensions user and password. Or not?

2012/10/31 Danny Nicholas da...@debsinc.com:
 This allows asterisk to open an LDAP connection.  Have you reviewed
 res_ldap.conf.sample in the configs folder?

 -Original Message-
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Giuseppe Longo
 Sent: Wednesday, October 31, 2012 9:14 AM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: Re: [asterisk-users] Asterisk and OpenLDAP

 I don't understand why in [_general] section of res_ldap.conf i need to put
 user and pass when i want to authenticate my extensions.

 2012/10/31 Danny Nicholas da...@debsinc.com:
 Based on my knowledge, the general section provides an interface to
 your LDAP server and the sipuser section sets up one static user.

 -Original Message-
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Giuseppe
 Longo
 Sent: Wednesday, October 31, 2012 9:02 AM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: Re: [asterisk-users] Asterisk and OpenLDAP

 This configuration is wrong?

 [_general]
 url=ldap://172.16.0.103:389
 protocol=3
 basedn=dc=shifteight,dc=org
 user=cn=admin,dc=shifteight,dc=org
 pass=canada

 [sipuser]
 name=cn
 type=friend
 context=default
 host=dynamic
 secret=AstAccountSecret
 canreinvite=yes
 directrtpsetup=no
 call-limit=3
 nat=yes
 qualify=yes
 register=no
 session-timers=accept
 session-expires=60
 session-minse=120
 session-refresher=uac
 register = sipuser:xxx@xxx/sipuser
 defaultip=192.168.23.107
 disallow=all
 allow=gsm

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
 Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


[asterisk-users] Question about cli

2012-08-31 Thread Giuseppe Longo
Hello guys,
i would like to ask a question about cli.

Today, while i was using the cli, i thinked that there could be more features.
IMHO, might be interesting, for example, to add a sip extensions from
cli, or other similar functions, without having to modify the
configuration files.

Or not? What do you think?

Regards

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


[asterisk-users] asterisk on arm

2012-08-31 Thread Giuseppe Longo
Hi,
has anyone tried asterisk on arm processors? how is the performance?
have encountered problems in the compilation?

Thanks,
Regards.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


[asterisk-users] Asterisk 1.8 and 11

2012-08-22 Thread Giuseppe Longo
Just a little questions, what's the difference between asterisk 1.8
and asterisk 11?

Best regards.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Asterisk 1.8 and 11

2012-08-22 Thread Giuseppe Longo
Is it better Asterisk 11, right?

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] asterisk.ctl file

2012-08-08 Thread Giuseppe Longo
Hi Shaun,
thanks for the reply.

This file is needed for debugging?

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


[asterisk-users] asterisk.ctl file

2012-08-06 Thread Giuseppe Longo
Hello guys,
i've a little question to ask. What is the file asterisk.ctl ?

Thanks,
Regards.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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