[OpenSIPS-Users] OpenSips as simple frontend to Asterisk to deal with NAT
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Mar 5 18:17:29 CET 2014
Hello Rudy,
Be sure you use "t_relay()" when forwarding the REGISTER request (and
not forward() function).
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 23.02.2014 20:32, Rudy Eschauzier wrote:
> Ok, I think I am getting there. I am able to forward the client registration to Asterisk, and Twinkle reports "registration succeeded" (YES!). I am having some trouble saving the location, however.
>
> This is what I have:
>
> onreply_route {
> xlog("incoming reply\n");
>
> xlog("L_INFO","\n\n$C(bc)[ Reply $rs ($rr) from $si concerning $rm ]$C(xx)\n$mb$C(bc)[ End of Reply ]$C(xx)\n");
>
> if ($rs==200) {
> save("location");
> }
> exit;
> }
>
> The forwarding is done in the main route block like this:
>
> if(!t_relay())
> sl_reply_error();
>
> But the result that OpenSips gives is:
> Feb 23 19:22:29 [26043] ERROR:registrar:save: Transaction not created on Register - can not save on reply
>
> That seems to make sense, as the transaction is created by the t_relay. How else would OpenSips know where the response is coming from?
>
> Any suggestions?
>
> Thanks,
> Rudy.
>
>
More information about the Users
mailing list