[OpenSIPS-Users] mid-registrar question
Alexey Kazantsev
kurgan-rus at inbox.ru
Wed Jul 25 00:41:35 EDT 2018
Hi Dominic!
Could you show your script?
It seems that there's some misconfiguration.
I can share you my own:
...
loadmodule "mid_registrar.so"
modparam("mid_registrar", "mode", 1)
modparam("mid_registrar", "outgoing_expires", 3600)
modparam("mid_registrar", "retry_after", 30)
...
# REGISTER processing
if ( is_method("REGISTER") ) {
mid_registrar_save("location");
switch ($retcode) {
case 1:
$ru = "sip:10.223.15.21:5070"; # this is to be sent to Asterisk
route(RELAY);
break;
case 2:
#xlog("L_INFO", "REGISTER has been absorbed!\n");
break;
default:
xlog("L_ERROR", "failed to save registration! ($$ci=$ci)\n");
}
exit;
}
-----------------------------------------------
BR, Alexey
http://alexeyka.zantsev.com/
More information about the Users
mailing list