[Serusers] Call Failed: 404 Not Found

Bogdan-Andrei IANCU iancu at fokus.fraunhofer.de
Tue Jul 27 17:25:41 CEST 2004


looks like your callee is not in usr location:

 2(3358) lookup(): 'dani' Not found in usrloc

please check with "serctl ul show" the content of user location mem 
cache and see if that user is really registered or not.

bogdan

Pavel Siderov wrote:

> 2(3358) SIP Request:
> 2(3358)  method:  <INVITE>
> 2(3358)  uri:     <sip:dani at mydomain.org>
> 2(3358)  version: <SIP/2.0>
> 2(3358) parse_headers: flags=1
> 2(3358) Found param type 235, <rport> = <n/a>; state=6
> 2(3358) Found param type 232, <branch> =
><z9hG4bK6E32A94E8FC742AFAC077B24E64C1319>; state=16
> 2(3358) end of header reached, state=5
> 2(3358) parse_headers: Via found, flags=1
> 2(3358) parse_headers: this is the first via
> 2(3358) After parse_msg...
> 2(3358) preparing to run routing scripts...
> 2(3358) DEBUG : is_maxfwd_present: searching for max_forwards header
> 2(3358) parse_headers: flags=128
> 2(3358) end of header reached, state=9
> 2(3358) DEBUG: get_hdr_field: <To> [26]; uri=[sip:dani at mydomain.org]
> 2(3358) DEBUG: to body [<sip:dani at mydomain.org>
>]
> 2(3358) get_hdr_field: cseq <CSeq>: <880> <INVITE>
> 2(3358) DEBUG: is_maxfwd_present: value = 70
> 2(3358) DEBUG: add_param: tag=4155995681
> 2(3358) end of header reached, state=29
> 2(3358) parse_headers: flags=256
> 2(3358) DEBUG: get_hdr_body : content_length=308
> 2(3358) found end of header
> 2(3358) find_first_route(): No Route headers found
> 2(3358) loose_route(): There is no Route HF
> 2(3358) check_self - checking if host==us: 13==13 &&  [mydomain.org] ==
>[mydomain.org]
> 2(3358) check_self - checking if port 5060 matches port 5060
> 2(3358) lookup(): 'dani' Not found in usrloc
> 2(3358) parse_headers: flags=-1
> 2(3358) check_via_address(192.168.51.2, 192.168.51.2, 3)
> 2(3358) receive_msg: cleaning up
> 5(3363) SIP Request:
> 5(3363)  method:  <ACK>
> 5(3363)  uri:     <sip:dani at mydomain.org>
> 5(3363)  version: <SIP/2.0>
> 5(3363) parse_headers: flags=1
> 5(3363) Found param type 235, <rport> = <n/a>; state=6
> 5(3363) Found param type 232, <branch> =
><z9hG4bK6E32A94E8FC742AFAC077B24E64C1319>; state=16
> 5(3363) end of header reached, state=5
> 5(3363) parse_headers: Via found, flags=1
> 5(3363) parse_headers: this is the first via
> 5(3363) After parse_msg...
> 5(3363) parse_headers: flags=4
> 5(3363) DEBUG: add_param: tag=99d196a8a45a6ad6a584303c392bdd59.db43
> 5(3363) end of header reached, state=29
> 5(3363) DEBUG: get_hdr_field: <To> [68]; uri=[sip:dani at mydomain.org]
> 5(3363) DEBUG: to body [<sip:dani at mydomain.org>]
> 5(3363) DEBUG: sl_filter_ACK : local ACK found -> dropping it!
> 5(3363) receive_msg: cleaning up
>
>----- Original Message ----- 
>From: "Bogdan-Andrei IANCU" <iancu at fokus.fraunhofer.de>
>To: "Pavel Siderov" <pi at hostmates.com>
>Sent: Tuesday, July 27, 2004 5:07 PM
>Subject: Re: [Serusers] Call Failed: 404 Not Found
>
>
>  
>
>>full log of ser when processing the INVITE will be helpful. ser debug=9,
>>fork=no, log_stderr=yes in your script and make the call.
>>bogdan
>>
>>Pavel Siderov wrote:
>>
>>    
>>
>>>I tried this but the same problem exists :(
>>>----- Original Message ----- 
>>>From: "Bogdan-Andrei IANCU" <iancu at fokus.fraunhofer.de>
>>>To: "Pavel Siderov" <pi at hostmates.com>
>>>Cc: <serusers at lists.iptel.org>
>>>Sent: Tuesday, July 27, 2004 3:49 PM
>>>Subject: Re: [Serusers] Call Failed: 404 Not Found
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>try to set "db_mode" to 0 - maybe you have some mysql connection error -
>>>>and see if it works.
>>>>also, listen=mydomain.org, shouldn't be actually alias=mydomain.org?
>>>>bogdan
>>>>
>>>>Pavel Siderov wrote:
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>Hello,
>>>>>I read moany posts but cannot resolve my problem with ser...
>>>>>here it is (i've changed my real ip and domain name)
>>>>>
>>>>>slackware 10 (actually it is current)
>>>>>ser-08.12
>>>>>my ser.cfg
>>>>>
>>>>># $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 andrei Exp $
>>>>>check_via=no
>>>>>dns=yes
>>>>>rev_dns=yes
>>>>>port=5060
>>>>>fifo="/tmp/ser_fifo"
>>>>>
>>>>># ------------------ module loading ----------------------------------
>>>>>loadmodule "/usr/local/lib/ser/modules/mysql.so"
>>>>>loadmodule "/usr/local/lib/ser/modules/sl.so"
>>>>>loadmodule "/usr/local/lib/ser/modules/tm.so"
>>>>>loadmodule "/usr/local/lib/ser/modules/rr.so"
>>>>>loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
>>>>>loadmodule "/usr/local/lib/ser/modules/usrloc.so"
>>>>>loadmodule "/usr/local/lib/ser/modules/registrar.so"
>>>>>loadmodule "/usr/local/lib/ser/modules/auth.so"
>>>>>loadmodule "/usr/local/lib/ser/modules/auth_db.so"
>>>>>
>>>>># -- usrloc params --
>>>>>modparam("usrloc", "db_mode", 2)
>>>>>modparam("auth_db", "calculate_ha1", yes)
>>>>>modparam("auth_db", "password_column", "password")
>>>>>modparam("rr", "enable_full_lr", 1)
>>>>>listen=mydomain.org
>>>>>listen=213.213.213.213
>>>>>
>>>>># ------------------------- request routing logic -------------------
>>>>>
>>>>>route{
>>>>>if (!mf_process_maxfwd_header("10")) {
>>>>>sl_send_reply("483","Too Many Hops");
>>>>>break;
>>>>>};
>>>>>if ( msg:len > max_len ) {
>>>>>sl_send_reply("513", "Message too big");
>>>>>break;
>>>>>};
>>>>>record_route();
>>>>>if (loose_route()) {
>>>>>t_relay();
>>>>>break;
>>>>>};
>>>>>if (uri==myself) {
>>>>>if (method=="REGISTER") {
>>>>># if (!www_authorize("mydomain.org", "subscriber")) {
>>>>># www_challenge("mydomain.org", "0");
>>>>># break;
>>>>># };
>>>>>save("location");
>>>>>break;
>>>>>};
>>>>>if (!lookup("location")) {
>>>>>sl_send_reply("404", "Not Found");
>>>>>break;
>>>>>};
>>>>>};
>>>>>if (!t_relay()) {
>>>>>sl_reply_error();
>>>>>};
>>>>>}
>>>>>
>>>>>
>>>>>
>>>>>Everything seems to be ok and no error messages in
>>>>>
>>>>>/var/log/syslog
>>>>>
>>>>>/var/log/messages
>>>>>Jul 27 14:10:39 sf /usr/local/sbin/ser[xxx]: INFO: signal 15 received
>>>>>
>>>>>Something in /var/lib/mysql/myhost.err
>>>>>040727 14:07:01 Aborted connection 1480 to db: 'ser' user: 'ser' host:
>>>>>`localhost' (Got an error reading communication packets)
>>>>>040727 14:07:01 Aborted connection 1485 to db: 'ser' user: 'serro'
>>>>>host: `localhost' (Got an error reading communication packets)
>>>>>
>>>>>But messages go only when I stop ser.
>>>>>SO the problem is that - I use X-Lite sip phone, I login and
>>>>>everything is ok but when I try to call another user
>>>>>typing user2 at mydomain.org <mailto:user2 at mydomain.org> I got message
>>>>>Call Failed: 404 Not Found. User2 is logged in too. Here I use user
>>>>>          
>>>>>
>>>>>from internal
>>>>        
>>>>
>>>>>network but whatever user log in even with real ip ... same problem.
>>>>>serctl moni:
>>>>>...
>>>>>UsrLoc Stats
>>>>>Domain Registered Expired
>>>>>'location' 2 0
>>>>>serctl ul show:
>>>>>q : 0.00
>>>>>Call-ID: '83F62A146F1849D38374C4FE587C96E7 at mydomain.org'
>>>>><mailto:%2783F62A146F1849D38374C4FE587C96E7 at mydomain.org%27>
>>>>>CSeq : 62404
>>>>>replic : 0
>>>>>State : CS_SYNC
>>>>>Flags : 0
>>>>>next : (nil)
>>>>>prev : (nil)
>>>>>~~~/Contact~~~~
>>>>>.../Record...
>>>>>...Record(0x402e4aa0)...
>>>>>domain: 'location'
>>>>>aor : 'dani at mydomain.org' <mailto:%27dani at mydomain.org%27>
>>>>>
>>>>>~~~Contact(0x402e4af0)~~~
>>>>>
>>>>>domain : 'location'
>>>>>aor : 'dani at mydomain.org' <mailto:%27dani at mydomain.org%27>
>>>>>Contact: 'sip:dani%40mydomain.org at 192.168.1.2:5060'
>>>>>Expires: 1714
>>>>>q : 0.00
>>>>>Call-ID: '919B7F440210436E848ED6EE743C472C at mydomain.org'
>>>>><mailto:%27919B7F440210436E848ED6EE743C472C at mydomain.org%27>
>>>>>CSeq : 40853
>>>>>replic : 0
>>>>>State : CS_SYNC
>>>>>Flags : 0
>>>>>next : (nil)
>>>>>prev : (nil)
>>>>>~~~/Contact~~~~
>>>>>.../Record...
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>X-lite diagnostic log:
>>>>>
>>>>>v=0
>>>>>o=petko at mydomain.org <mailto:o=petko at mydomain.org> 16984234 16984250
>>>>>IN IP4 192.168.51.2
>>>>>s=X-Lite
>>>>>c=IN IP4 192.168.51.2
>>>>>t=0 0
>>>>>m=audio 8000 RTP/AVP 0 8 3 98 97 101
>>>>>a=rtpmap:0 pcmu/8000
>>>>>a=rtpmap:8 pcma/8000
>>>>>a=rtpmap:3 gsm/8000
>>>>>a=rtpmap:98 iLBC/8000
>>>>>a=rtpmap:97 speex/8000
>>>>>a=rtpmap:101 telephone-event/8000
>>>>>a=fmtp:101 0-15
>>>>>SEND TIME: 16890921
>>>>>
>>>>>SEND >> 213.213.213.213:5060
>>>>>ACK sip:dani at mydomain.org SIP/2.0
>>>>>Via: SIP/2.0/UDP
>>>>>192.168.51.2:5060;rport;branch=z9hG4bK2C881ABD05574ECFB9ECA868ED909189
>>>>>From: Pavel <sip:petko%40mydomain.org at mydomain.org>;tag=251597520
>>>>>To: <sip:dani at mydomain.org>;tag=99d196a8a45a6ad6a584303c392bdd59.a444
>>>>>Contact: <sip:petko%40mydomain.org at 192.168.51.2:5060>
>>>>>Call-ID: D8AAB24B-799F-4485-B18A-A52C996E2BFA at 192.168.51.2
>>>>><mailto:D8AAB24B-799F-4485-B18A-A52C996E2BFA at 192.168.51.2>
>>>>>CSeq: 25255 ACK
>>>>>Max-Forwards: 70
>>>>>Content-Length: 0
>>>>>
>>>>>
>>>>>SEND TIME: 16984250
>>>>>SEND >> 213.213.213.213:5060
>>>>>INVITE sip:dani at mydomain.org SIP/2.0
>>>>>Via: SIP/2.0/UDP
>>>>>192.168.51.2:5060;rport;branch=z9hG4bKE1A01C567E6E4C4D8E97F16D05498E79
>>>>>From: Pavel <sip:petko%40mydomain.org at mydomain.org>;tag=1337044785
>>>>>To: <sip:dani at mydomain.org>
>>>>>Contact: <sip:petko%40mydomain.org at 192.168.51.2:5060>
>>>>>Call-ID: 3FC4393F-8B1A-49F2-BF30-9426F6C1F1AE at 192.168.51.2
>>>>><mailto:3FC4393F-8B1A-49F2-BF30-9426F6C1F1AE at 192.168.51.2>
>>>>>CSeq: 9818 INVITE
>>>>>Max-Forwards: 70
>>>>>Content-Type: application/sdp
>>>>>User-Agent: X-Lite release 1103m
>>>>>Content-Length: 308
>>>>>
>>>>>
>>>>>Please help me!
>>>>>Thanks in advance
>>>>>
>>>>>          
>>>>>
>>>>------------------------------------------------------------------------
>>>>        
>>>>
>>>>>_______________________________________________
>>>>>Serusers mailing list
>>>>>serusers at lists.iptel.org
>>>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>__________ NOD32 1.578 (20031212) Information __________
>>>>
>>>>This message was checked by NOD32 antivirus system.
>>>>http://www.nod32.com
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>
>>>      
>>>
>>
>>__________ NOD32 1.578 (20031212) Information __________
>>
>>This message was checked by NOD32 antivirus system.
>>http://www.nod32.com
>>
>>
>>    
>>
>
>
>  
>




More information about the sr-users mailing list