<div>Are you sure that the message are been processed by a register block of your configuration? can you attach your configuration file? you can use log function in the differents blocks of your configuration , in order to clarify your debug.</div>

<div> </div>
<div>best regards.</div>
<div>Pancho.<br><br></div>
<div class="gmail_quote">On Mon, Jun 29, 2009 at 9:06 PM, Nathaniel L Keeling <span dir="ltr">&lt;<a href="mailto:keeling@akan-tech.com">keeling@akan-tech.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">I am new and need an explanation. I have installed opensips 1.5 with<br>database support. I am trying to authenticate via the subscriber&#39;s<br>
table. Utilizing the sample config file and uncommenting the areas to<br>allow authentication via database, I try to register a sip device. I<br>have added a user using opensipsctl. When the registration requests<br>comes in, it dies in the loose_route() function with the error &quot;403<br>
Preload Route Denied&quot;. According to the documentation on the<br>loose_route() function, if there is no to-tag and there is only on route<br>header indicating the localproxy, the function should return false. It<br>is returning true. I then added the sip domain to the domain table and<br>
the error changes to &quot;401Unauthorized&quot;. Please explain. I am including<br>the SIP message and the debug output.<br><br>Jun 29 01:15:03 [15473] DBG:core:parse_msg: SIP Request:<br>Jun 29 01:15:03 [15473] DBG:core:parse_msg:  method:  &lt;REGISTER&gt;<br>
Jun 29 01:15:03 [15473] DBG:core:parse_msg:  uri:<br>&lt;sip:<a href="http://kwesi.chicagosip1.akan.us.com/" target="_blank">kwesi.chicagosip1.akan.us.com</a>&gt;<br>Jun 29 01:15:03 [15473] DBG:core:parse_msg:  version: &lt;SIP/2.0&gt;<br>
Jun 29 01:15:03 [15473] DBG:core:parse_headers: flags=2<br>Jun 29 01:15:03 [15473] DBG:core:parse_via_param: found param type 232,<br>&lt;branch&gt; = &lt;z9hG4bK728627284&gt;; state=6<br>Jun 29 01:15:03 [15473] DBG:core:parse_via_param: found param type 235,<br>
&lt;rport&gt; = &lt;n/a&gt;; state=17<br>Jun 29 01:15:03 [15473] DBG:core:parse_via: end of header reached, state=5<br>Jun 29 01:15:03 [15473] DBG:core:parse_headers: via found, flags=2<br>Jun 29 01:15:03 [15473] DBG:core:parse_headers: this is the first via<br>
Jun 29 01:15:03 [15473] DBG:core:receive_msg: After parse_msg...<br>Jun 29 01:15:03 [15473] DBG:core:receive_msg: preparing to run routing<br>scripts...<br>Jun 29 01:15:03 [15473] DBG:core:parse_headers: flags=100<br>Jun 29 01:15:03 [15473] DBG:core:parse_to: end of header reached, state=10<br>
Jun 29 01:15:03 [15473] DBG:core:parse_to: display={},<br>ruri={<a href="mailto:sip%3A3124530700@kwesi.chicagosip1.akan.us.com">sip:3124530700@kwesi.chicagosip1.akan.us.com</a>}<br>Jun 29 01:15:03 [15473] DBG:core:get_hdr_field: &lt;To&gt; [48];<br>
uri=[<a href="mailto:sip%3A3124530700@kwesi.chicagosip1.akan.us.com">sip:3124530700@kwesi.chicagosip1.akan.us.com</a>]<br>Jun 29 01:15:03 [15473] DBG:core:get_hdr_field: to body<br>[&lt;<a href="mailto:sip%3A3124530700@kwesi.chicagosip1.akan.us.com">sip:3124530700@kwesi.chicagosip1.akan.us.com</a>&gt;<br>
]<br>Jun 29 01:15:03 [15473] DBG:core:get_hdr_field: cseq &lt;CSeq&gt;: &lt;6493&gt;<br>&lt;REGISTER&gt;<br>Jun 29 01:15:03 [15473] DBG:maxfwd:is_maxfwd_present: value = 70<br>Starting to process request................<br>
Jun 29 01:15:03 [15473] DBG:uri:has_totag: no totag<br>we are about to check for cancel................<br>Jun 29 01:15:03 [15473] DBG:core:parse_headers: flags=78<br>Jun 29 01:15:03 [15473] DBG:tm:t_lookup_request: start searching:<br>
hash=15692, isACK=0<br>Jun 29 01:15:03 [15473] DBG:tm:matching_3261: RFC3261 transaction<br>matching failed<br>Jun 29 01:15:03 [15473] DBG:tm:t_lookup_request: no transaction found<br>we are about to check registration and multidomain................<br>
we are about to check for loose route................<br>Jun 29 01:15:03 [15473] DBG:core:parse_headers: flags=200<br>Jun 29 01:15:03 [15473] DBG:rr:is_preloaded: is_preloaded: Yes<br>Jun 29 01:15:03 [15473] DBG:core:grep_sock_info: checking if host==us:<br>
29==14 &amp;&amp;  [<a href="http://kwesi.chicagosip1.akan.us.com/" target="_blank">kwesi.chicagosip1.akan.us.com</a>] == [209.252.110.37]<br>Jun 29 01:15:03 [15473] DBG:core:grep_sock_info: checking if port 5060<br>matches port 5060<br>
Jun 29 01:15:03 [15473] DBG:core:check_self: host != me<br>Jun 29 01:15:03 [15473] DBG:rr:after_loose: Topmost URI is NOT myself<br>Jun 29 01:15:03 [15473] DBG:rr:after_loose: URI to be processed:<br>&#39;sip:kwesi.chicagosip1.akan.us.com:5060;lr&#39;<br>
Jun 29 01:15:03 [15473] DBG:rr:after_loose: Next URI is a loose router<br>Jun 29 01:15:03 [15473] DBG:core:parse_to_param: tag=1590215359<br>Jun 29 01:15:03 [15473] DBG:core:parse_to: end of header reached, state=29<br>Jun 29 01:15:03 [15473] DBG:core:parse_to: display={},<br>
ruri={<a href="mailto:sip%3A3124530700@kwesi.chicagosip1.akan.us.com">sip:3124530700@kwesi.chicagosip1.akan.us.com</a>}<br>Attempt to route with preloaded Route&#39;s<br><br>[<a href="http://sip:3124530700@kwesi.chicagosip1.akan.us.com/sip:3124530700@kwesi.chicagosip1.akan.us.com/sip:kwesi.chicagosip1.akan.us.com/1069016662-6062-1@98.122.86.123]Jun" target="_blank">sip:3124530700@kwesi.chicagosip1.akan.us.com/sip:3124530700@kwesi.chicagosip1.akan.us.com/sip:kwesi.chicagosip1.akan.us.com/1069016662-6062-1@98.122.86.123]Jun</a><br>
29<br><br>01:15:03 [15473] DBG:core:parse_headers: flags=ffffffffffffffff<br>Jun 29 01:15:03 [15473] DBG:core:get_hdr_field: content_length=0<br>Jun 29 01:15:03 [15473] DBG:core:get_hdr_field: found end of header<br>Jun 29 01:15:03 [15473] DBG:core:check_via_address: params<br>
98.122.86.123, 98.122.86.123, 0<br>Jun 29 01:15:03 [15473] DBG:core:destroy_avp_list: destroying list 0<br>Jun 29 01:15:03 [15473] DBG:core:receive_msg: cleaning up<br><br><br>#<br>U 2009/06/29 01:35:01.608581 <a href="http://98.122.86.123:6062/" target="_blank">98.122.86.123:6062</a> -&gt; <a href="http://209.252.110.37:5060/" target="_blank">209.252.110.37:5060</a><br>
REGISTER sip:<a href="http://kwesi.chicagosip1.akan.us.com/" target="_blank">kwesi.chicagosip1.akan.us.com</a> SIP/2.0.<br>Via: SIP/2.0/UDP 98.122.86.123:6062;branch=z9hG4bK1362945809;rport.<br>Route: &lt;sip:kwesi.chicagosip1.akan.us.com:5060;lr&gt;.<br>
From: &lt;<a href="mailto:sip%3A3124530700@kwesi.chicagosip1.akan.us.com">sip:3124530700@kwesi.chicagosip1.akan.us.com</a>&gt;;tag=1590215359.<br>To: &lt;<a href="mailto:sip%3A3124530700@kwesi.chicagosip1.akan.us.com">sip:3124530700@kwesi.chicagosip1.akan.us.com</a>&gt;.<br>
Call-ID: <a href="mailto:1069016662-6062-1@98.122.86.123">1069016662-6062-1@98.122.86.123</a>.<br>CSeq: 6494 REGISTER.<br>Contact:<br>&lt;<a href="http://sip:3124530700@98.122.86.123:6062" target="_blank">sip:3124530700@98.122.86.123:6062</a>&gt;;reg-id=2;+sip.instance=&quot;&lt;urn:uuid:00000000-0000-1000-8000-000B821473A2&gt;&quot;.<br>
Max-Forwards: 70.<br>User-Agent: Grandstream GXW-4004  V1.3A 1.0.1.15.<br>Supported: path.<br>Expires: 3600.<br>Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO,<br>REFER, UPDATE.<br>Content-Length: 0.<br>
.<br><br>#<br>U 2009/06/29 01:35:01.633256 <a href="http://209.252.110.37:5060/" target="_blank">209.252.110.37:5060</a> -&gt; <a href="http://98.122.86.123:6062/" target="_blank">98.122.86.123:6062</a><br>SIP/2.0 403 Preload Route denied.<br>
Via: SIP/2.0/UDP 98.122.86.123:6062;branch=z9hG4bK1362945809;rport=6062.<br>From: &lt;<a href="mailto:sip%3A3124530700@kwesi.chicagosip1.akan.us.com">sip:3124530700@kwesi.chicagosip1.akan.us.com</a>&gt;;tag=1590215359.<br>
To:<br>&lt;<a href="mailto:sip%3A3124530700@kwesi.chicagosip1.akan.us.com">sip:3124530700@kwesi.chicagosip1.akan.us.com</a>&gt;;tag=d3ff5fc5ce3916ee69f721c7781603d2.2cfe.<br>Call-ID: <a href="mailto:1069016662-6062-1@98.122.86.123">1069016662-6062-1@98.122.86.123</a>.<br>
CSeq: 6494 REGISTER.<br>Server: OpenSIPS (1.5.1-tls (sparc64/solaris)).<br>Content-Length: 0.<br><br><br>Thanks<br><br>Nathaniel<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></blockquote></div><br><br clear="all">
<div></div><br>-- <br>Eduardo Panciera<br>