Answer the question
In order to leave comments, you need to log in
Why is registration in Kamailio by default?
Installed kamailio, default config, no rules. I try to register - registration passes. What the heck?..
# Handle SIP registrations
route[REGISTRAR] {
if (!is_method("REGISTER")) return;
if(isflagset(FLT_NATS)) {
setbflag(FLB_NATB);
#!ifdef WITH_NATSIPPING
# do SIP NAT pinging
setbflag(FLB_NATSIPPING);
#!endif
}
if (!save("location")) {
sl_reply_error();
}
exit;
}
Answer the question
In order to leave comments, you need to log in
To check authorization, I recommend using the
authentificate+challenge bundle.
Example:
route[AUTH] {
...
if (!pv_www_authenticate("$td","$var(HA1)","1")) {
xlog("L_INFO","5:$fU");
www_challenge("$td","1");
exit;
}
...
}
In my example, I have authorization by ha1 line.
Google the uac module on the off site of the cam. Everything is clear there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question