Dear All,<br>Am happy to say that I've successfully been able to register a SIP user from a soft phone terminal via LDAP. The biggest hurdle that I had to overcome was the LDAP-Asterisk schema. The schema example given in the astirectory installation document is incomplete.
<br>Here's are a few pointers in this regard:<br><br>The attributes have to be defined in the following way. Also tab spaces should be avoided.<br><br>dn: cn=schema<br>changetype: modify<br>add: attributetypes<br>attributeTypes: (
1.3.6.1.4.1.23935.5.4.1 <br> NAME 'astUsername' <br> DESC ''<br> SUP name<br> EQUALITY caseIgnoreMatch<br> SUBSTR caseIgnoreSubstringsMatch
<br> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)<br>NAME should be the same as objectIdentifier<br><br> DESC should be the description of the attribute<br><br> EQUALITY is the rule to use when doing a search/compare for an
<br> attribute value.<br><br> SUBSTR is the rule to use when doing a substring search (*foo*)<br><br> SYNTAX is the syntax (i.e., type) of the attribute. We should<br> probably stick to syntaxes:<br><br> 1.3.6.1.4.1.1466.115.121.1.15
-> directoryString (UTF-8 string)<br> 1.3.6.1.4.1.1466.115.121.1.26 -> IA5String (ASCII String)<br> 1.3.6.1.4.1.1466.115.121.1.27 -> integer (Integer value)<br><br>The object class has to be always defined as AUXILLARY and never ABSTRACT.
<br><br>dn: cn=schema<br>changetype: modify<br>add: objectclasses <br>objectClasses: ( 1.3.6.1.4.1.23935.5.5.1 <br> NAME 'astSipGeneric'<br> DESC ''<br> SUP top AUXILIARY<br> MUST ( astContext )
<br> MAY ( astSecret $ astPermit $ astDeny $ astMd5Secret $ astDtmfmode $ astCanreinvite $ astNat $ astCallgroup $ astPickupgroup $ astAllow $ astDisallow $ astInsecure $ astTrustrpid $ astProgressinband $ astPromiscredir $ astRegseconds $ astname $ astLanguage ) )
<br><br>Best Regards<br>Abhishek<br><br><br><br><div><span class="gmail_quote">On 8/16/07, <b class="gmail_sendername">Anthony Francis</b> <<a href="mailto:anthonyf@rockynet.com">anthonyf@rockynet.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">You will need to extend your schema to include all of the attributes<br>that can be used in
sip.conf plus the extra ones that allow realtime to<br>store connection information. Please refer to the realtime info at<br><a href="http://voipinfo.org">voipinfo.org</a> to get a feel for what your schema should look like.
<br><br>Anthony<br><br>Abhishek M S wrote:<br>> Dear all,<br>> May I first introduce myself. I'm a student of HAW Hamburg University<br>> currently working for my professor on a VOIP project. We have a<br>> Debian Linux system (server) on which Asterisk
1.2.6 has been<br>> successfully installed and running. Also the asterisk SIP server has<br>> been connected to the PSTN so users could make calls externally. We<br>> use Xlite softphone to make calls between users in the network.
<br>> Currently there are very few users and I have been able to register<br>> them in the in *sip.conf *file and declare extensions in the<br>> *extensions.conf *file.<br>> Now there is a requirement to assign extensions to all students in
<br>> the university(over thousand) whose credentials and information is<br>> stored in the Novel based LDAP database. Moving along I've managed to<br>> successfully install astirectory which is a real time database driver
<br>> that allows to fetch configuration data from LDAP directories. Have<br>> also installed the LDAPget module that can lookup data in the LDAP<br>> directory. I'm looking for SIP attributes on LDAP or an LDAP schema
<br>> that would facilitate astirectory or LDAPget to retrieve the username,<br>> telephone number and password from the LDAP database to register the<br>> soft phone user. I'd be extremely grateful for any help or suggestion
<br>> in this connection.<br>> Thanks in advance,<br>> Abhishek<br>><br>><br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>> --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br>><br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by
<a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>