Re: [SR-Users] Return codes within a route

2018-02-20 Thread Jeff Bilyk
Thanks Muhammad, appreciate that clarification. On Tue, Feb 20, 2018 at 5:10 PM, M S wrote: > Hi, > > My understanding is that return value of last statement becomes the return > value of named route if none explicitly specified. Therefore i always > explicitly return 1

Re: [SR-Users] Return codes within a route

2018-02-20 Thread M S
Hi, My understanding is that return value of last statement becomes the return value of named route if none explicitly specified. Therefore i always explicitly return 1 or exit. — Muhammad. On Tue 20. Feb 2018 at 22:48, Jeff Bilyk wrote: > Hello, > > Running into odd

[SR-Users] Return codes within a route

2018-02-20 Thread Jeff Bilyk
Hello, Running into odd behaviour in Kamailio 5.0.2 and I'm hoping to clarify. I have a simple route that uses the textops functions subst and remove_hf. Other than that, there is nothing else done within the route. In some cases, the remove_hf function returns false as there are no matching