[Serusers] SUBSCRIBE -> BAD REQEST (Instant Communication Application + PA Module)

Jaroslaw Gawron j.gawron at wasko.pl
Mon May 23 14:19:33 CEST 2005


Hello Everybody 

I am trying to create Instant Communication Application based on MS RTC 1.2
library. I am also using SER 0.8.14 as a SIP server. Voice communication
works perfect, messages works perfect but I have a big problem with sending
user's status. 
When I tray to send SUBSCRIBE message I get BAD REQEST response.

T 10.1.1.62:3749 -> 10.1.3.10:5060 [AP]

SUBSCRIBE sip:pszymanek at sippbx.bb.wasko.pl SIP/2.0
Via: SIP/2.0/TCP 10.1.1.62:8718
Max-Forwards: 70
From: "yarek"
<sip:yarek at sippbx.bb.wasko.pl>;tag=d290de95c2124ceca42a748963dd04e9;epid=885
a5b4691
To: <sip:pszymanek at sippbx.bb.wasko.pl>
Call-ID: fb0ac597ee2b480f9315e88a9e6bcb06 at 10.1.1.62
CSeq: 2 SUBSCRIBE..Contact:
<sip:yarek at sippbx.bb.wasko.pl:8718;maddr=10.1.1.62;transport=tcp>
User-Agent: RTC/1.2..Expires: 0
Event: presence..Content-Length: 0
#

T 10.1.3.10:5060 -> 10.1.1.62:3749 [AP]

SIP/2.0 400 Bad Request
Via: SIP/2.0/TCP 10.1.1.62:8718
From: "yarek" <sip:yarek at sippbx.bb.wasko.pl>;tag=d290de95c2124
ceca42a748963dd04e9;epid=885a5b4691
To:
<sip:pszymanek at sippbx.bb.wasko.pl>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-3fbe
Call-ID: fb0ac597ee2b480f9315e88a9e6bcb06 at 10.1.1.62
CSeq: 2 SUBSCRIBE..Error while parsing headersServer: Sip EXpress router
(0.8.14 (i386/linux))
Content-Length: 0
Warning: 392 10.1.3.10:5060 "Noisy feedback tells:  pid=13753 req_src_ip=
10.1.1.62 req_src_port=3749 in_uri=sip:pszymanek at sippbx.bb.wasko.pl
out_uri=sip:pszymanek at sippbx.bb.wasko.pl via_cnt==1"
  
I configured the presence module, added the lines to ser.cfg 



                if (method=="SUBSCRIBE")
                {
                        log(1, "Subscribe\n");
                        if (t_newtran())
                       {
                                log(1, "Registrar\n");
                                handle_subscription("registrar");
                      };
                        break;


                };


But it still doesn't work. 
Has anyone faced a similar problem ? Why it doesn't work ? Is the PA module
compatible with MS RTC. Why this masseges are in bad format.
Any ideas are very welcome.


Best regards 

Jarosław Gawron
email: J.Gawron at wasko.pl

 




More information about the sr-users mailing list