Re: [SR-Users] nat_uac_test not recognized command in onreply_route

2019-01-07 Thread Daniel-Constantin Mierla
Welcome, good it was figured out! Daniel On 07.01.19 15:18, Andrew Chen wrote: > Ah you are right.  I did somehow not define WITH_NAT for some reason.  > thanks! > > On Mon, Jan 7, 2019 at 9:06 AM Daniel-Constantin Mierla > mailto:mico...@gmail.com>> wrote: > > Hello, > > there seems to b

Re: [SR-Users] nat_uac_test not recognized command in onreply_route

2019-01-07 Thread Andrew Chen
Ah you are right. I did somehow not define WITH_NAT for some reason. thanks! On Mon, Jan 7, 2019 at 9:06 AM Daniel-Constantin Mierla wrote: > Hello, > > there seems to be something wrong in your config with loading the > nathelper module, can you check if you have proper #!ifdef ... #!endif > b

Re: [SR-Users] nat_uac_test not recognized command in onreply_route

2019-01-07 Thread Daniel-Constantin Mierla
Hello, there seems to be something wrong in your config with loading the nathelper module, can you check if you have proper #!ifdef ... #!endif blocks? Try to run it with debug=3 and see if you can spot more hints via the DEBUG messages printed in the logs... Cheers, Daniel On 07.01.19 14:44, A

Re: [SR-Users] nat_uac_test not recognized command in onreply_route

2019-01-07 Thread Andrew Chen
Hi Daniel, Here is all of it: Jan 3 18:33:01 sjomainkama55 systemd[1]: Stopped Kamailio (OpenSER) - the Open Source SIP Server. Jan 3 18:33:01 sjomainkama55 systemd[1]: Starting Kamailio (OpenSER) - the Open Source SIP Server... Jan 3 18:33:01 sjomainkama55 kamailio: ERROR: [core/cfg.y:3309]:

Re: [SR-Users] nat_uac_test not recognized command in onreply_route

2019-01-07 Thread Daniel-Constantin Mierla
Hello, nat_uac_test(...) is allowed in the reply route block. The error is not about using the function in an invalid route block, but  that the function is not found by name and 1 parameter. Were there other error messages before the one you pasted in your message? Cheers, Daniel On 04.01.19 0

Re: [SR-Users] nat_uac_test not recognized command in onreply_route

2019-01-04 Thread Andrew Chen
That's what I did. I commented out the whole onreply_route[WS_REPLY] and moved the if statement inside the route block. when I restarted, no errors. This onreply_route block is a direct copy and paste from the wiki page. On Fri, Jan 4, 2019 at 5:05 PM Henning Westerholt wrote: > Am Freitag, 4

Re: [SR-Users] nat_uac_test not recognized command in onreply_route

2019-01-04 Thread Henning Westerholt
Am Freitag, 4. Januar 2019, 01:28:23 CET schrieb Andrew Chen: > Yup. The default configuaration already have the nathelper.so loaded. > Plus, there are other places in the config where nat_uac_test was called > but never error out. Hi Andrew, sounds strange. I would suggest to minimize the confi

Re: [SR-Users] nat_uac_test not recognized command in onreply_route

2019-01-03 Thread Andrew Chen
Yup. The default configuaration already have the nathelper.so loaded. Plus, there are other places in the config where nat_uac_test was called but never error out. On Thu, Jan 3, 2019 at 5:39 PM Sergey Okhapkin wrote: > Did you load the module? > > On Thursday, January 3, 2019 5:27:12 PM EST An

Re: [SR-Users] nat_uac_test not recognized command in onreply_route

2019-01-03 Thread Sergey Okhapkin
Did you load the module? On Thursday, January 3, 2019 5:27:12 PM EST Andrew Chen wrote: Hey it's me again. So I'm following the instructions in the Kamailio 5.1.x wiki module page for websocket configuration and it specifically mention to set this block: onreply_route[WS_REPLY] { xlo

[SR-Users] nat_uac_test not recognized command in onreply_route

2019-01-03 Thread Andrew Chen
Hey it's me again. So I'm following the instructions in the Kamailio 5.1.x wiki module page for websocket configuration and it specifically mention to set this block: onreply_route[WS_REPLY] { xlog("L_INFO", "[CSeq $cs] Is in WS_REPLY."); xlog("L_INFO", "[CSeq $cs] Sending $rs $rr