Re: [SR-Users] is_present_hf error on select

2015-03-30 Thread Daniel-Constantin Mierla
Just an extra note for the records -- if you want to presenrve th request uri (which is $ru) in the forwarded message, you can set $du to the sip address of the hop where you want to relay the message. Cheers, Daniel On 30/03/15 21:28, Kyle Kurz wrote: > Perfect, thank you so much Javi. > > On Mo

Re: [SR-Users] is_present_hf error on select

2015-03-30 Thread Kyle Kurz
Perfect, thank you so much Javi. On Mon, Mar 30, 2015 at 12:40 AM, Javi Gallart wrote: > Hi > On 27/03/15 16:37, Kyle Kurz wrote: > > Thanks guys, that worked. Follow-up question, I want to reroute the > incoming packet to the sip URI in that header, but Kamailio is complaining > about the use

Re: [SR-Users] is_present_hf error on select

2015-03-30 Thread Javi Gallart
Hi On 27/03/15 16:37, Kyle Kurz wrote: Thanks guys, that worked. Follow-up question, I want to reroute the incoming packet to the sip URI in that header, but Kamailio is complaining about the use of a variable in t_relay_to_udp. Putting $var(b) in quotes just makes it try to use that literal st

Re: [SR-Users] is_present_hf error on select

2015-03-27 Thread Kyle Kurz
Thanks guys, that worked. Follow-up question, I want to reroute the incoming packet to the sip URI in that header, but Kamailio is complaining about the use of a variable in t_relay_to_udp. Putting $var(b) in quotes just makes it try to use that literal string as the target host. Is there another w

Re: [SR-Users] is_present_hf error on select

2015-03-27 Thread Javi Gallart
Hi On 27/03/15 16:09, Kyle Kurz wrote: I'm trying to use the is_present_hf function to detect the presence of a user-defined header and getting the following errors in my Kamailio logs: 2(12149) BUG: [select.c:426]: run_select(): Select structure has not been resolved 2(12149) ERROR: [lvalu

Re: [SR-Users] is_present_hf error on select

2015-03-27 Thread Daniel-Constantin Mierla
Hello, the selects were developed by SER guys in the past (when it was a separate project, 2005-2008), so I am not that familiar with all the features they support and the actual relation between header names and select paths. In this case I see that the dash '-' has to be replaced with underscore

[SR-Users] is_present_hf error on select

2015-03-27 Thread Kyle Kurz
I'm trying to use the is_present_hf function to detect the presence of a user-defined header and getting the following errors in my Kamailio logs: 2(12149) BUG: [select.c:426]: run_select(): Select structure has not been resolved 2(12149) ERROR: [lvalue.c:416]: lval_assign(): assignment failed a