<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=GB2312" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Harry,<br>
<br>
On 03/22/2012 10:52 AM, songhr86115 wrote:
<blockquote cite="mid:201203221652579240202@163.com" type="cite">
<meta content="text/html; charset=GB2312"
http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.7600.16930">
<style>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-STYLE: normal; FONT-FAMILY: Verdana; COLOR: windowtext; FONT-WEIGHT: normal; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
<div><font color="#000080" face="Verdana" size="2">
<div><font color="#000080" face="Verdana" size="2">Thank you
Bogdon,</font></div>
<div> </div>
<div><font color="#000080">1)Now , I want to insert the user
contact information into ldap by perl scripts using
exec(ct.field(uri)) function in opensips.cfg. When A
communicate with B, A can query ldap to get the Contact
Information of B , can I modify the Contact Information in
opensips.cfg to build connection with B? How to do that?</font></div>
<div><font color="#000080">In opensips with MySQL, I think A
can find the B's CONTACT INFORMATION in MySQL,then build
connection with B. So I want to use ldap instead of
MySQL. Am I right?</font><br>
</div>
</font></div>
</blockquote>
Getting over the fact that the way you plan the use LDAP (writing
via exec and reading from script) is a bit messy, keep in mind that
the the information you need to save for a registered contact is
really complex (take a look at the location table in mysql). Also
the registration part is connected to the nat traversal part (like
doing pinging for the registered contact), so you would need to
manually do this part also.<br>
Why are you so keen to go for LDAP for registration and not using
something more natively ?<br>
<blockquote cite="mid:201203221652579240202@163.com" type="cite">
<div><font color="#000080" face="Verdana" size="2">
<div><font color="#000080">2)Do you know something about open
unified communication with ldap?</font></div>
</font></div>
</blockquote>
Not me.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
<blockquote cite="mid:201203221652579240202@163.com" type="cite">
<div><font color="#000080" face="Verdana" size="2">
<div><font color="#000080">Regards </font></div>
<div><font color="#000080">Harry</font></div>
</font></div>
<div> </div>
<div> </div>
<div><font color="#c0c0c0" face="Verdana" size="2">2012-03-22 </font></div>
<font color="#000080" face="Verdana" size="2">
<hr style="width: 100px;" align="left" color="#b5c4df" size="1">
</font>
<div><font color="#c0c0c0" face="Verdana" size="2"><span>songhr86115</span>
</font></div>
<hr color="#b5c4df" size="1">
<div><font face="Verdana" size="2"><strong>发件人:</strong>
Bogdan-Andrei Iancu </font></div>
<div><font face="Verdana" size="2"><strong>发送时间:</strong>
2012-03-16 20:05:24 </font></div>
<div><font face="Verdana" size="2"><strong>收件人:</strong> OpenSIPS
users mailling list </font></div>
<div><font face="Verdana" size="2"><strong>抄送:</strong>
songhr86115 </font></div>
<div><font face="Verdana" size="2"><strong>主题:</strong> Re:
[OpenSIPS-Users] ldap as the sip location server </font></div>
<div> </div>
<div><font face="Verdana" size="2">Hi Harry,<br>
<br>
On 03/16/2012 03:22 AM, songhr86115 wrote:
<blockquote
cite="mid:3812f9a9.16aaa.13619196466.Coremail.songhr86115@163.com"
type="cite">
<div style="line-height: 1.7; font-family: arial; color:
rgb(0, 0, 0); font-size: 14px;">
<div style="line-height: 1.7; font-family: arial; color:
rgb(0, 0, 0); font-size: 14px;">Hello all,</div>
<div style="line-height: 1.7; font-family: arial; color:
rgb(0, 0, 0); font-size: 14px;">1)How to use the ldap as
the location server of the opensips? And shuld the sip
user's contact uri to be stored in ldap? How to do that?</div>
</div>
</blockquote>
Actually you cannot use LDAP as backend for user registration
in OpenSIPS - only SQL like backends are supported .<br>
<br>
Of course OpenSIPS has generic LDAP support for running
queries over LDAP trees, but : 1) you cannot insert, 2) user
location lookups are more complicated than a simple LDAP
query.<br>
<blockquote
cite="mid:3812f9a9.16aaa.13619196466.Coremail.songhr86115@163.com"
type="cite">
<div style="line-height: 1.7; font-family: arial; color:
rgb(0, 0, 0); font-size: 14px;">
<div><span style="line-height: 1.7;">2)ITU-T H.350 and
H.350.4 describes a ldap </span>architecture<span
style="line-height: 1.7;"> </span>for multimedia
conferencing using a SIP, How to use this information
in LDAP? And How this information deal with SIP
communication?</div>
</div>
</blockquote>
I'm not familiar with the ITU-T specs, but as said, in
OpenSIPS you have support for querying LDAP trees, so you get
any info from there and use it for whatever routing purpose
you have - you can do that from scripting. See the LDAP
module:<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.opensips.org/html/docs/modules/1.7.x/ldap.html">http://www.opensips.org/html/docs/modules/1.7.x/ldap.html</a><br>
<br>
For H.350, see:<br>
<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://www.opensips.org/html/docs/modules/1.7.x/h350.html">http://www.opensips.org/html/docs/modules/1.7.x/h350.html</a><br>
<br>
Regards,<br>
Bogdan<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
</font></div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
</body>
</html>