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