Kamailio v6.0.1 and SUBSCRIBE processing
"Blair, Steve via sr-users" <[email protected]>
| Newsgroups | gmane.comp.voip.ser |
|---|---|
| Message-ID | <SA2PR11MB4937B0B5CE5B1C35F8CD1F0CCC872@SA2PR11MB4937.namprd11.prod.outlook.com> |
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
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!