<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Try:<div><br></div><div>$var(x) = “x” + y + z;</div><div>$hdr($var(x));</div><div><br><div id="AppleMailSignature" dir="ltr">—<div>Sent from mobile, with due apologies for brevity and errors.</div></div><div dir="ltr"><br>On Jul 24, 2019, at 11:41 PM, David Cunningham <<a href="mailto:dcunningham@voisonics.com">dcunningham@voisonics.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div><br></div><div>I'm having an issue where this doesn't work:</div><div><br></div><div>#!trydef PRODUCT "Foo"<br></div><div><br></div><div>if( $hdr("X-" + PRODUCT + "-Transport") != "" ) {</div><div>    add_uri_param( $hdr("X-" + PRODUCT + "-Transport") );</div><div>}</div><div><br></div><div>It seems Kamailio doesn't like the concatenation within the $hdr(). Concatenation does work in other places though:<br></div><div><br></div><div>append_hf( "X-" + PRODUCT + "-Transport: tcp\r\n" );</div><div><br></div><div>Can anyone advise how to make the concatenation within $hdr() work? Thanking you in advance.<br></div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>David Cunningham, Voisonics Limited<br><a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>USA: +1 213 221 1092<br>New Zealand: +64 (0)28 2558 3782</div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></blockquote><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>Kamailio (SER) - Users Mailing List</span><br><span><a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a></span><br><span><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></span><br></div></blockquote></div></body></html>