Hi,
I have a complex setup consisting of two sip server, lets call them main server and presence server.
The main server manages SIP register, calls, messages and so, however it does not support presence at all. It returns SIP response "405 Method Not Allowed" for any SIP PUBLISH, SUBSCRIBE or NOTIFY.
The presence server is a Kamailio server, which unfortunately has no access to SIP subscriber database (so it can not do authentication), however it has access to User Location database.
Now at presence server i want to put some kind of security for presence requests, since i can't do authentication, so i was thinking if i can verify if request has come from a location registered in location db. I found method "registered" in registrar module but unfortunately it checks if R-URI or any given URI is registered, while i want to do check against "received" address or contact address.
Can you guys suggest any easy way to do it? I am thinking about using "reg_fetch_contacts" but not sure if it can serve the purpose.
Thank you.
Muhammad Shahzad writes:
The main server manages SIP register, calls, messages and so, however it does not support presence at all. It returns SIP response "405 Method Not Allowed" for any SIP PUBLISH, SUBSCRIBE or NOTIFY.
The presence server is a Kamailio server, which unfortunately has no access to SIP subscriber database (so it can not do authentication), however it has access to User Location database.
my suggestion is to junk your "main" server and replace it with open source kamailio server. then you can authenticate all requests and after authentication pass presence related request to your presence server.
-- juha
Yes, but problem is that main server has pretty good billing integrated with it, which is the key reason my client want to keep it.
Thank you.
On Mon, Apr 28, 2014 at 11:57 AM, Juha Heinanen jh@tutpro.com wrote:
Muhammad Shahzad writes:
The main server manages SIP register, calls, messages and so, however it does not support presence at all. It returns SIP response "405 Method Not Allowed" for any SIP PUBLISH, SUBSCRIBE or NOTIFY.
The presence server is a Kamailio server, which unfortunately has no
access
to SIP subscriber database (so it can not do authentication), however it has access to User Location database.
my suggestion is to junk your "main" server and replace it with open source kamailio server. then you can authenticate all requests and after authentication pass presence related request to your presence server.
-- juha
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users