Hello, I am writing from italy ... I'm trying to use FreeSwitch with ldap ... So far I managed, after many attempts to create LDAP server on the schema. FreeSwitch still leans to the various files.Xml (1000.xml, 1001.xml) etc. to manage the internal.... How can I make it clear to freeswitch that must use LDAP as internal SIP? The file xml_ldap.conf, which folder should stay? Thank you Nicola
Nicola wrote:
Hello, I am writing from italy ...
I'm trying to use FreeSwitch with ldap ... So far I managed, after many attempts to create LDAP server on the schema.
That schema was meant as an example only. I think the only attrs the module uses are: param paramvalue variable variablevalue Only those attrs need to be in the schema.
FreeSwitch still leans to the various files.Xml (1000.xml, 1001.xml) etc. to manage the internal....
How can I make it clear to freeswitch that must use LDAP as internal SIP? I set in conf/directory/default.xml: <domain name="foo">
Since there is no sofia domain configured of that name (there shouldn't be at least) the default config is gone. Of course you could also just rm -rf conf/directory ;] -john
thanks for your answer .... the problem is that FreeSwitch NOT MADE no query the LDAP server. Consequently, I can not know whether the query is wrong or not. I tried to follow the instructions you have given me kindly ... but freeswitch not going to make any queries on LDAP: In fact, when I try to register with a cliet SIP, debugging freeswitch tells me: User non-existent! Grazie... -- Nicola On Wed, 04 Jun 2008 07:51:38 -0500, "John Skopis (Lists)" <jlists@skopis.com> wrote:
Nicola wrote:
Hello, I am writing from italy ...
I'm trying to use FreeSwitch with ldap ... So far I managed, after many attempts to create LDAP server on the schema.
That schema was meant as an example only. I think the only attrs the module uses are:
param paramvalue
variable variablevalue
Only those attrs need to be in the schema.
FreeSwitch still leans to the various files.Xml (1000.xml, 1001.xml) etc. to manage the internal....
How can I make it clear to freeswitch that must use LDAP as internal SIP? I set in conf/directory/default.xml: <domain name="foo">
Since there is no sofia domain configured of that name (there shouldn't be at least) the default config is gone. Of course you could also just rm -rf conf/directory ;]
-john
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Nicola wrote:
thanks for your answer .... the problem is that FreeSwitch NOT MADE no query the LDAP server. Consequently, I can not know whether the query is wrong or not. I tried to follow the instructions you have given me kindly ... but freeswitch not going to make any queries on LDAP: In fact, when I try to register with a cliet SIP, debugging freeswitch tells me: User non-existent!
Grazie...
It sounds like possibly the module is not loaded? add an entry to conf/autoload_configs/modules.conf.xml: <load module="mod_xml_ldap"/> Also, make sure you have conf/autoload_configs/xml_ldap.conf.xml If the query is not successful the mod will let you know. prego
Ok.... Thank you .... Now the system is able to carry out the query on ldap .... (I have not yet verified if it is done fairly or not). In the files of logs reflected the following error: 2008-06-05 11:39:54 [ERR] mod_xml_ldap.c:300 xml_ldap_search() something bad happened during the query construction phase likely exten((null)) or domain(192.168.1.250) is null Thanks!! -- Nicola On Wed, 04 Jun 2008 19:11:44 -0500, "John Skopis (Lists)" <jlists@skopis.com> wrote:
Nicola wrote:
thanks for your answer .... the problem is that FreeSwitch NOT MADE no query the LDAP server. Consequently, I can not know whether the query is wrong or not. I tried to follow the instructions you have given me kindly ... but freeswitch not going to make any queries on LDAP: In fact, when I try to register with a cliet SIP, debugging freeswitch tells me: User non-existent!
Grazie...
It sounds like possibly the module is not loaded?
add an entry to conf/autoload_configs/modules.conf.xml: <load module="mod_xml_ldap"/>
Also, make sure you have conf/autoload_configs/xml_ldap.conf.xml
If the query is not successful the mod will let you know.
prego
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I have checked ... authentication is successful on the server ... I have only one problem: if two internal name is registered on LDAP, answered the VoiceMail even though the interiors are online. I attach logs: 2008-06-05 12:10:31 [WARNING] mod_dptools.c: 372 set_user_function () can not find user [default@192.168.1.250] As if the system proves to call default .. and not the internal desired. Thanks again! -- Nicola On Thu, 05 Jun 2008 12:16:30 +0200, Nicola <alternico@libero.it> wrote:
Ok.... Thank you .... Now the system is able to carry out the query on ldap .... (I have not yet verified if it is done fairly or not).
In the files of logs reflected the following error:
2008-06-05 11:39:54 [ERR] mod_xml_ldap.c:300 xml_ldap_search() something bad happened during the query construction phase likely exten((null)) or domain(192.168.1.250) is null
Thanks!!
-- Nicola
On Wed, 04 Jun 2008 19:11:44 -0500, "John Skopis (Lists)" <jlists@skopis.com> wrote:
Nicola wrote:
thanks for your answer .... the problem is that FreeSwitch NOT MADE no query the LDAP server. Consequently, I can not know whether the query is wrong or not. I tried to follow the instructions you have given me kindly ... but freeswitch not going to make any queries on LDAP: In fact, when I try to register with a cliet SIP, debugging freeswitch tells me: User non-existent!
Grazie...
It sounds like possibly the module is not loaded?
add an entry to conf/autoload_configs/modules.conf.xml: <load module="mod_xml_ldap"/>
Also, make sure you have conf/autoload_configs/xml_ldap.conf.xml
If the query is not successful the mod will let you know.
prego
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Nicola wrote:
I have checked ... authentication is successful on the server ... I have only one problem: if two internal name is registered on LDAP, answered the VoiceMail even though the interiors are online. I attach logs:
2008-06-05 12:10:31 [WARNING] mod_dptools.c: 372 set_user_function () can not find user [default@192.168.1.250]
As if the system proves to call default .. and not the internal desired.
You need to make sure that 'default' is a valid extension. Look at the "Local Extension" portion of the public and default dialplans. Also, and I am not sure if something changed recently, but you need to have a dial-string, and probably user_context, for the XML to be considered valid. Here's what I used to test: dn: cn=1235,ou=172.16.75.129,dc=example objectClass: top objectClass: sipCred objectClass: inetOrgPerson cn: 1235 sn: 1235 idname: 1235 param: password param: vm-password param: dial-string paramvalue: 1234 paramvalue: 0000 paramvalue: {presence_id=${dialed_user}@${dialed_domain},transfer_fallback_extension=${dialed_user}}${sofia_contact(${dialed_domain}/${dialed_user}@${dialed_domain})} variable: accountcode variable: user_context variable: effective_caller_id_name variable: effective_caller_id_number variablevalue: 1234 variablevalue: default variablevalue: test variablevalue: 0 dn: cn=1234,ou=172.16.75.129,dc=example objectClass: top objectClass: sipCred objectClass: inetOrgPerson cn: 1234 sn: 1234 idname: 1234 param: password param: vm-password param: dial-string paramvalue: 1234 paramvalue: 0000 paramvalue: {presence_id=${dialed_user}@${dialed_domain},transfer_fallback_extension=${dialed_user}}${sofia_contact(${dialed_domain}/${dialed_user}@${dialed_domain})} variable: accountcode variable: user_context variable: effective_caller_id_name variable: effective_caller_id_number variablevalue: 1234 variablevalue: default variablevalue: test variablevalue: 0 hth, john
Thanks ... now works ... the problem was that the server ldap lacked the parameter: dial-string. Last problem: How come when I call some internal, the voice can not go? THANKS -- Nicola On Fri, 06 Jun 2008 07:26:17 -0500, "John Skopis (Lists)" <jlists@skopis.com> wrote:
Nicola wrote:
I have checked ... authentication is successful on the server ... I have only one problem: if two internal name is registered on LDAP, answered the VoiceMail even though the interiors are online. I attach logs:
2008-06-05 12:10:31 [WARNING] mod_dptools.c: 372 set_user_function () can not find user [default@192.168.1.250]
As if the system proves to call default .. and not the internal desired.
You need to make sure that 'default' is a valid extension. Look at the "Local Extension" portion of the public and default dialplans.
Also, and I am not sure if something changed recently, but you need to have a dial-string, and probably user_context, for the XML to be considered valid.
Here's what I used to test:
dn: cn=1235,ou=172.16.75.129,dc=example objectClass: top objectClass: sipCred objectClass: inetOrgPerson cn: 1235 sn: 1235 idname: 1235 param: password param: vm-password param: dial-string paramvalue: 1234 paramvalue: 0000 paramvalue:
{presence_id=${dialed_user}@${dialed_domain},transfer_fallback_extension=${dialed_user}}${sofia_contact(${dialed_domain}/${dialed_user}@${dialed_domain})}
variable: accountcode variable: user_context variable: effective_caller_id_name variable: effective_caller_id_number variablevalue: 1234 variablevalue: default variablevalue: test variablevalue: 0
dn: cn=1234,ou=172.16.75.129,dc=example objectClass: top objectClass: sipCred objectClass: inetOrgPerson cn: 1234 sn: 1234 idname: 1234 param: password param: vm-password param: dial-string paramvalue: 1234 paramvalue: 0000 paramvalue:
{presence_id=${dialed_user}@${dialed_domain},transfer_fallback_extension=${dialed_user}}${sofia_contact(${dialed_domain}/${dialed_user}@${dialed_domain})}
variable: accountcode variable: user_context variable: effective_caller_id_name variable: effective_caller_id_number variablevalue: 1234 variablevalue: default variablevalue: test variablevalue: 0
hth, john
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
John Skopis (Lists)
-
Nicola