Hello!
I have a problem again :-).
I would like to make a special service. I would like to make
the SER get the presence info not only from the own DB but
from an external LDAP database too.
For example:
The ser receives a location request.
First it checks its own database, and if the SER can not
found the user in the USERDB, then it looks it up from a script.
I made a script, but a have a problem with this.
if (!lookup("location")) {
if (!exec_dset("/etc/ser/ldap.scr")) {
sl_send_reply("404", "Not Found");
break;
} else {
log(1," sipldap call");
};
};
If the script found the user, then the answer will be (f.e.):
sip:user@mydomain.hu
exit 0
else it answers:
exit 1
The contact person in the contact list will not be active
(not will be green), if the script answers:sip:user@mydomain.hu.
Why? (I need a special format in the answer?)
Or it will not work with a script? I need to use XCAP?
Thanks,
Jani
________________________________________________________________
Harry Potter és a Félvér Herceg! Garantált szállítás a megjelenés napján! (február 10. )
Jegyezze elő most!
http://www.bookline.hu/control/news?newsid=322&affiliate=frehp6kar1482