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: <core> [select.c:426]: run_select(): Select structure has not been resolved
2(12149) ERROR: <core> [lvalue.c:416]: lval_assign(): assignment failed at pos: (99,58-99,58)
2(12149) ERROR: <script>: 

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:

if (is_present_hf("X-Digium-AppServer-Response-URI")) {
     $var(a) = @hf_value.X_Digium_AppServer_Response_URI[1];
     xlog ("\n\nHERE RESPONSE URI $var(a)\n\n");
}

Thanks,
Kyle

--

Kyle Kurz
Digium, Inc. · Senior Software Engineer
9115 Brown Deer Rd · San Diego, CA 92121 · US
direct +1 858.537.1166
Check us out at: http://digium.com · http://asterisk.org