I’m coming back to Kamailio after about a 10 year absence. I have v6.0.1 running handling registrations (unique devices) and inbound/outbound PSTN calling correctly. What I need is to process subscribe requests.
I’m looking for direction on the correct configuration to
1. Authenticate subscribe messages. This appears to be working with following snippet.
#eDevice: Need to authenticate subscribes before proceeding xlog("L_INFO", "eDevice: Start initial SUBSCRibe check. \n"); if (is_method("SUBSCRIBE")) { record_route(); if (!auth_check("$fd", "subscriber", "1")) { auth_challenge("$fd", "0"); } # eDevice SUB Change consume_credentials(); route(PRESENCE); }
1. After authenticating forward any subscribe to an external presence server 2. Relay any response from external presence server to client device.
Only the above authentication is working so direction on proper processing of subscribes when Kamailio is not the presence server will be appreciated.
Thanks