<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
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 '_' in header name, but I guess there can
be headers with underscore in name...<br>
<br>
However, if you just want to take the value for header
X-Digium-AppServer-Response-URI, you can use Kamailio's native
pseudo-variable (pv): $hdr(X-Digium-AppServer-Response-URI)<br>
<br>
If you need from the second header with same name:
$(hdr(X-Digium-AppServer-Response-URI)[1]) . The index can be an
integer or a PV holding an integer. If the value is negative, it
counts from the end of the list of headers.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 27/03/15 16:09, Kyle Kurz wrote:<br>
</div>
<blockquote
cite="mid:CAE=ddtfgnuFgPYauuqnYjUr5yJ3dOaHsLhDcS4b_CsQzyw8gUg@mail.gmail.com"
type="cite">
<div dir="ltr">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:
<div><br>
</div>
<div>
<p class=""><span class="">2(12149) BUG: <core>
[select.c:426]: run_select(): Select structure has not
been resolved<br>
</span>2(12149) ERROR: <core> [lvalue.c:416]:
lval_assign(): assignment failed at pos: (99,58-99,58)<br>
2(12149) ERROR: <script>: </p>
<p class="">A quick Google search yielded no results for why
this could be happening. Originally, I had my code in
route[REPLY], but noticed that was not one of the paths it
was listed as available in the textops document, so I moved
it to request_route, but got the same errors. Does anyone
have any feedback on how to move forward? My code snippet is
below:</p>
<p class="">if
(is_present_hf("X-Digium-AppServer-Response-URI")) {<br>
$var(a) = @hf_value.X_Digium_AppServer_Response_URI[1];<br>
xlog ("\n\nHERE RESPONSE URI $var(a)\n\n");<br>
}</p>
<p class="">Thanks,<br>
Kyle</p>
-- <br>
<div class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><img moz-do-not-send="true"
src="https://dl.dropboxusercontent.com/u/1538991/Photos/digiumlogo.png"><br
style="color:rgb(0,0,0);font-family:Times;font-size:medium">
<font style="color:rgb(0,0,0);font-size:medium"
color="#000000" face="Calibri, Helvetica, Arial,
Sans"><span style="font-weight:bold;font-size:12px"><b><span>Kyle
Kurz</span></b></span><br>
<span style="font-size:11px">Digium, Inc. · Senior <span>Software
Engineer</span><br>
<span>9115 Brown Deer Rd</span> · <span>San Diego,
CA 92121</span> · <span>US</span><br>
<span>direct</span> <span>+1 858.537.1166</span><br>
<span>Check us out at: <a moz-do-not-send="true"
href="http://digium.com/" target="_blank">http://digium.com</a> · <a
moz-do-not-send="true"
href="http://www.asterisk.org/"
target="_blank">http://asterisk.org</a> </span></span></font><br>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
</body>
</html>