[Serusers] Error in routing

GMario gianmario.mereu at ca.infn.it
Mon Feb 19 16:38:50 CET 2007


On Mon, 2007-02-19 at 11:52 +0100, samuel wrote: 
> It looks like the Req-URI after the lookup for
> sip:dmura at netbox.ca.infn.it hasn't got the rigth format...can you post
> the REGISTER process of the Ekiga softphone and the resulting binding
> in SER?

    
    REGISTER sip:netbox.ca.infn.it SIP/2.0\r\n
    CSeq: 1 REGISTER\r\n
    Via: SIP/2.0/UDP
XXX.XXX.XXX.XXX:5061;branch=z9hG4bKee94e722-9abe-db11-8de8-0019d125a10d;rport\r\n
    User-Agent: Ekiga/2.0.3\r\n
    From:
<sip:gmario at netbox.ca.infn.it>;tag=b48de722-9abe-db11-8de8-0019d125a10d
\r\n
    Call-ID: b8e1e422-9abe-db11-8de8-0019d125a10d at snatch\r\n
    To: <sip:gmario at netbox.ca.infn.it>\r\n
    Contact: <sip:gmario at XXX.XXX.XXX.XXX:5061;transport=udp>\r\n
    Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,NOTIFY,REFER,MESSAGE\r\n
    Expires: 3600\r\n
    Content-Length: 0\r\n
    Max-Forwards: 70\r\n
    \r\n

    SIP/2.0 401 Unauthorized\r\n
    CSeq: 1 REGISTER\r\n
    Via: SIP/2.0/UDP
192.135.33.20:5061;branch=z9hG4bKee94e722-9abe-db11-8de8-0019d125a10d;rport=5061\r\n
    From:
<sip:gmario at netbox.ca.infn.it>;tag=b48de722-9abe-db11-8de8-0019d125a10d
\r\n
    Call-ID: b8e1e422-9abe-db11-8de8-0019d125a10d at snatch\r\n
    To:
<sip:gmario at netbox.ca.infn.it>;tag=c167b2d11dd30beef68a8a9799e00092.e630
\r\n
    WWW-Authenticate: Digest realm="netbox.ca.infn.it",
nonce="45d9c11197fce332ae1c0bd5527e9c3bd93b4f47"\r\n
    Server: Sip EXpress router (0.9.6-sems (i386/linux))\r\n
    Content-Length: 0\r\n
    Warning: 392 XXX.XXX.XXX.XXX:5060 "Noisy feedback tells:  pid=2343
req_src_ip=XXX.XXX.XXX.XXX req_src_port=5061
in_uri=sip:netbox.ca.infn.it out_uri=sip:netbox.ca.infn.it via_cnt==1"\r
\n
    \r\n


    REGISTER sip:netbox.ca.infn.it SIP/2.0\r\n
    CSeq: 3 REGISTER\r\n
    Via: SIP/2.0/UDP
XXX.XXX.XXX.XXX:5061;branch=z9hG4bKc69ce922-9abe-db11-8de8-0019d125a10d;rport\r\n
    User-Agent: Ekiga/2.0.3\r\n
    Authorization: Digest username="gmario", realm="netbox.ca.infn.it",
nonce="45d9c11197fce332ae1c0bd5527e9c3bd93b4f47",
uri="sip:netbox.ca.infn.it", algorithm=md5,
response="70326714e7a3a99b4bf0e338f3b13c64"\r\n
    From:
<sip:gmario at netbox.ca.infn.it>;tag=b48de722-9abe-db11-8de8-0019d125a10d
\r\n
    Call-ID: b8e1e422-9abe-db11-8de8-0019d125a10d at snatch\r\n
    To: <sip:gmario at netbox.ca.infn.it>\r\n
    Contact: <sip:gmario at XXX.XXX.XXX.XXX:5061;transport=udp>\r\n
    Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,NOTIFY,REFER,MESSAGE\r\n
    Expires: 3600\r\n
    Content-Length: 0\r\n
    Max-Forwards: 70\r\n
    \r\n

    SIP/2.0 200 OK\r\n
    CSeq: 3 REGISTER\r\n
    Via: SIP/2.0/UDP
XXX.XXX.XXX.XXX:5061;branch=z9hG4bKc69ce922-9abe-db11-8de8-0019d125a10d;rport=5061\r\n
    From:
<sip:gmario at netbox.ca.infn.it>;tag=b48de722-9abe-db11-8de8-0019d125a10d
\r\n
    Call-ID: b8e1e422-9abe-db11-8de8-0019d125a10d at snatch\r\n
    To:
<sip:gmario at netbox.ca.infn.it>;tag=c167b2d11dd30beef68a8a9799e00092.7918
\r\n
    Contact:
<sip:gmario at xxx.xxx.xxx.xxx:5061;transport=udp>;expires=3600\r\n
    Server: Sip EXpress router (0.9.6-sems (i386/linux))\r\n
    Content-Length: 0\r\n
    Warning: 392 XXX.XXX.XXX.XXX:5060 "Noisy feedback tells:  pid=2343
req_src_ip=XXX.XXX.XXX.XXX req_src_port=5061
in_uri=sip:netbox.ca.infn.it out_uri=sip:netbox.ca.infn.it via_cnt==1"\r
\n
    \r\n

from the location table.

username: gmario
domain: 
contact: sip:gmario at XXX.XXX.XXX.XXX:5061;transport=udp
received: NULL 
expires: 2007-02-19 17:19:01
q: -1.00
callid: b8e1e422-9abe-db11-8de8-0019d125a10d at snatch
cseq: 3 
last_modified: 2007-02-19 16:19:36 
replicate: 0
state: 0
flags: 0
user_agent: Ekiga/2.0.3

> I had some issues with Ekiga but newer versions might have
> improved...can you try to use another softphone to see if the problem
> occurs due to the ekiga implementation??
> SAmuel.

I had tried with kphone too, and the result is the same. 

The problem persist yet if i rewrite uri with rewriteuri function
(without call the lookup("location")) and then use t_relay() function.

tnks a lot.

> 2007/2/19, GMario <gianmario.mereu at ca.infn.it>:
> > On Tue, 2007-02-13 at 09:57 +0100, samuel wrote:
> > > It seems that the phone is not sending the Req-URI (the other party
> > > SIP address) in the (probably) INVITE. I guess there's something
> > > misconfigured in the phone...
> > >
> > >  How are you calling from one phone to the other?
> > >
> > > Which phone are you using? How have you configured it?
> > I use different software phone kphone, ekiga.
> >
> > kphone:
> > User part of SIP URL: gmario
> > Host part of SIP URL: hostname (pippo.pluto.org)
> > Outbound Proxy     : hostname (pippo.pluto.org)
> > Authentication Username: gmario
> > q-value     : (empty)
> > Auto register     : yes
> >
> > ekiga:
> > Account name     : Name Surname
> > Registrar     : hostname (pippo.pluto.org)
> > user          : provauser
> > Password      : Correct Password
> > Authentication login: provauser
> > Realm/Domain     : hostname (pippo.pluto.org)
> > Registration Timeout: 3600
> >
> >
> > > Can you get any network capture (ethereal,ngrep,...) of the involved paquets?
> >
> > Yes, i have a Ethereal's Capture file. SIP messages exchanged between
> > two clients kphone and ser (0.9.7):
> >
> >     INVITE sip:dmura at netbox.ca.infn.it SIP/2.0\r\n
> >     Via: SIP/2.0/UDP xxx.xxx.xxx.xxx;branch=z9hG4bK3ED49CED\r\n
> >     CSeq: 5701 INVITE\r\n
> >     To: <sip:dmura at netbox.ca.infn.it>\r\n
> >     Content-Type: application/sdp\r\n
> >     From: "Gian Mario" <sip:gmario at netbox.ca.infn.it>;tag=537FDEE8\r\n
> >     Call-ID: 1000039187 at xxx.xxx.xxx.xxx\r\n
> >     Subject: sip:gmario at netbox.ca.infn.it\r\n
> >     Content-Length: 230\r\n
> >     User-Agent: kphone/4.2\r\n
> >     Contact: "Gian Mario" <sip:gmario at xxx.xxx.xxx.xxx;transport=udp>\r\n
> >     \r\n
> >     v=0\r\n
> >     o=username 0 0 IN IP4 xxx.xxx.xxx.xxx\r\n
> >     s=The Funky Flow\r\n
> >     c=IN IP4 xxx.xxx.xxx.xxx\r\n
> >     t=0 0\r\n
> >     m=audio 33462 RTP/AVP 3 97 0 8\r\n
> >     a=rtpmap:0 PCMU/8000\r\n
> >     a=rtpmap:3 GSM/8000\r\n
> >     a=rtpmap:8 PCMA/8000\r\n
> >     a=rtpmap:97 iLBC/8000\r\n
> >     a=fmtp:97 mode=30\r\n
> >
> >
> >
> >     SIP/2.0 100 trying -- your call is important to us\r\n
> >     Via: SIP/2.0/UDP xxx.xxx.xxx.xxx;branch=z9hG4bK3ED49CED\r\n
> >     CSeq: 5701 INVITE\r\n
> >     To: <sip:dmura at netbox.ca.infn.it>\r\n
> >     From: "Gian Mario" <sip:gmario at netbox.ca.infn.it>;tag=537FDEE8\r\n
> >     Call-ID: 1000039187 at xxx.xxx.xxx.xxx\r\n
> >     Server: Sip EXpress router (0.9.6-sems (i386/linux))\r\n
> >     Content-Length: 0\r\n
> >     Warning: 392 xxx.xxx.xxx.xxx:5060 "Noisy feedback tells:  pid=22651
> > req_src_ip=xxx.xxx.xxx.xxx req_src_port=5060
> > in_uri=sip:dmura at netbox.ca.infn.it
> > out_uri=sip:dmura at xxx.xxx.xxx.xxx;transport=udp via_cnt==1"\r\n
> >     \r\n
> >
> >
> >
> >     SIP/2.0 479 Regretfully, we were not able to process the URI
> > (479/TM)\r\n
> >     Via: SIP/2.0/UDP xxx.xxx.xxx.xxx;branch=z9hG4bK3ED49CED\r\n
> >     CSeq: 5701 INVITE\r\n
> >     To:
> > <sip:dmura at netbox.ca.infn.it>;tag=335a3dd9818e889dfa3f53a8496b53b6-9084
> > \r\n
> >     From: "Gian Mario" <sip:gmario at netbox.ca.infn.it>;tag=537FDEE8\r\n
> >     Call-ID: 1000039187 at xxx.xxx.xxx.xxx\r\n
> >     Server: Sip EXpress router (0.9.6-sems (i386/linux))\r\n
> >     Content-Length: 0\r\n
> >     Warning: 392 xxx.xxx.xxx.xxx:5060 "Noisy feedback tells:  pid=22651
> > req_src_ip=xxx.xxx.xxx.xxx req_src_port=5060
> > in_uri=sip:dmura at netbox.ca.infn.it
> > out_uri=sip:dmura at xxx.xxx.xxx.xxx;transport=udp via_cnt==1"\r\n
> >     \r\n
> >
> >
> >     ACK sip:dmura at netbox.ca.infn.it SIP/2.0\r\n
> >     Via: SIP/2.0/UDP xxx.xxx.xxx.xxx;branch=z9hG4bK3ED49CED\r\n
> >     CSeq: 5701 ACK\r\n
> >     To:
> > <sip:dmura at netbox.ca.infn.it>;tag=335a3dd9818e889dfa3f53a8496b53b6-9084
> > \r\n
> >     From: "Gian Mario" <sip:gmario at netbox.ca.infn.it>;tag=537FDEE8\r\n
> >     Call-ID: 1000039187 at xxx.xxx.xxx.xxx\r\n
> >     Content-Length: 0\r\n
> >     User-Agent: kphone/4.2\r\n
> >     Contact: "Gian Mario" <sip:gmario at xxx.xxx.xxx.xxx;transport=udp>\r\n
> >     \r\n
> >
> >
> >
> > I test ser mainly with two machine, in the first i have install ubuntu
> > Edgy while in the second Fedora core 6. When i start ser ( Friday
> > afternoon ) i can make call or send messages from ubuntu machine to
> > fedora one but not vice versa. I left ser on in this weekend and this
> > morning i try again, but i can't make call form no one machine. The
> > error ser gives me back is the (for me) usual:
> >
> > 0(971) ERROR: parse_uri: uri too short: <NULL> (4)
> > 0(971) ERROR: uri2proxy: bad_uri: NULL
> > 0(971) ERROR: t_forward_nonack: failure to add branches
> >
> > > Samuel.
> >
> > Thanks Samuel
> >
> > > 2007/2/13, GMario <gianmario.mereu at ca.infn.it>:
> > > > Hi all,
> > > > I'm trying to set-up a server ser. I have a basic installation with
> > > > mysql. My script is a basic script, but when i try to make a phone
> > > > between two user (or send a text message), the call isn't go and in the
> > > > standard output i read this error:
> > > >
> > > > ERROR: parse_uri: uri too short: <NULL> (4)
> > > > ERROR: uri2proxy: bad_uri: NULL
> > > >
> > > > With google i don't found anything.
> > > > (in attachment i put my config file)
> > > >
> > > > Anyone can help me?
> > > >
> > > > Tanks in advance.
> > > >
> > > > --
> > > > GMario
> > > >
> > > > PS: Sorry for my English, this one is my first email write in this
> > > > language.
> > > >
> > > > _______________________________________________
> > > > Serusers mailing list
> > > > Serusers at lists.iptel.org
> > > > http://lists.iptel.org/mailman/listinfo/serusers
> > > >
> > > >
> > > >
> >
> > _______________________________________________
> > Serusers mailing list
> > Serusers at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
> >




More information about the sr-users mailing list