[Serusers] Call Failed: 404 Not Found

Bogdan-Andrei IANCU iancu at fokus.fraunhofer.de
Tue Jul 27 14:49:02 CEST 2004


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
>  
>




More information about the sr-users mailing list