Hi Alex,<div><br></div><div>I modified the script, same result. sip[8892]: INFO: &lt;script&gt;: [ROUTE-4 -&gt;] rpid test: &lt;null&gt; and the rpid is not being added.</div><div><br></div><div>Very odd..</div><div><br></div>
<div>Stephen.</div><div><br><div class="gmail_quote">On 25 March 2010 21:57, Alex Balashov <span dir="ltr">&lt;<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 03/25/2010 05:53 PM, dotnetdub wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Attached:<br>
<br>
    if(is_uri_host_local()) {<br>
                 if(!allow_trusted()) {<br>
                         if(!proxy_authorize(&quot;&quot;, &quot;subscriber&quot;)) {<br>
                                 proxy_challenge(&quot;&quot;, &quot;1&quot;);<br>
                                 exit;<br>
                         }<br>
<br>
                         else if(!check_from()) {<br>
                                 sl_send_reply(&quot;403&quot;, &quot;Forbidden&quot;);<br>
                                 exit;<br>
                         }<br>
                 }<br>
<br>
                 else {<br>
                         sl_send_reply(&quot;403&quot;, &quot;Forbidden&quot;);<br>
                         exit;<br>
                 }<br>
         }<br>
<br>
         append_rpid_hf();<br>
<br>
         consume_credentials();<br>
</blockquote>
<br></div>
There is no guarantee that either append_rpid_hf() or consume_credentials() runs if and only if proxy_authorize() was called.<br>
<br>
Also, it is not clear why check_from() is at a relationship of logical disjunction vis-a-vis to proxy_authorize().  While not incorrect, it obfuscates the flow.<br>
<br>
Try this and see if the problem continues:<div class="im"><br>
<br>
   if(is_uri_host_local()) {<br>
<br>
                if(!allow_trusted()) {<br>
<br>
                        if(!proxy_authorize(&quot;&quot;, &quot;subscriber&quot;)) {<br>
                                proxy_challenge(&quot;&quot;, &quot;1&quot;);<br>
                                exit;<br>
                        }<br>
<br></div><div class="im">
                        if(!check_from()) {<br>
                                sl_send_reply(&quot;403&quot;, &quot;Forbidden&quot;);<br>
                                exit;<br>
                        }<br>
<br></div><div class="im">
                        append_rpid_hf();<br>
                        consume_credentials();<br>
                }<br>
<br>
                else {<br>
                        sl_send_reply(&quot;403&quot;, &quot;Forbidden&quot;);<br>
                        exit;<br>
                }<br>
        }<br>
<br></div>
-- <br><div><div></div><div class="h5">
Alex Balashov - Principal<br>
Evariste Systems LLC<br>
<br>
Tel    : +1 678-954-0670<br>
Direct : +1 678-954-0671<br>
Web    : <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
</div></div></blockquote></div><br></div>