Alexey I basically started over from scratch using your script as a guide and everything is working fine so far, I wish I could tell what I initially did wrong, but I had a LOT of strange things in there, being a dev box and all. Thanks a LOT for the help
On Wed, Jul 25, 2018 at 8:13 AM, Dominic <[email protected]> wrote: > Thanks Alexey, I will give it another shot first thing this morning. > > On Wed, Jul 25, 2018 at 1:05 AM, Alexey Kazantsev via Users < > [email protected]> wrote: > >> ... and yes, route[RELAY] is like this: >> >> >> route[RELAY] { >> if ( !t_relay() ) { >> send_reply("500","Internal Error"); >> } >> exit; >> } >> >> >> or you may simply do: >> >> # REGISTER processing >> if ( is_method("REGISTER") ) { >> mid_registrar_save("location"); >> switch ($retcode) { >> case 1: >> $ru = "sip:10.223.15.21:5070"; >> t_relay(); >> break; >> case 2: >> break; >> default: >> xlog("L_ERROR", "failed to save >> registration! ($$ci=$ci)\n"); >> } >> exit; >> } >> >> >> Here's the tutorial http://www.opensips.org/Docume >> ntation/Tutorials-MidRegistrar >> But keep in mind that it is for OpenSIPS 2.3, as 2.4 does not have >> 'insertion_mode' >> option described there. >> >> >> ----------------------------------------------- >> BR, Alexey >> http://alexeyka.zantsev.com/ >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
