Hello Geetha,
On Saturday 29 March 2003 04:49, Geetha Shree wrote:
I wanted to know which are the methods it supports from the 200OK response of my OPTIONS method.
My packet was as below
OPTIONS sip:192.168.1.9 SIP/2.0 Via: sip/2.0/UDP 192.168.1.9:5060 Max-Forwards: 70 To: sip:192.168.1.9 From: sip:geetha@192.168.1.21;tag=1047012665620 Call-Id: 82963748691a049dc5aadf81b162c894@192.168.1.9 CSeq: 1 OPTIONS Contact: sip:192.168.1.9:5060 Accept: application/sdp Content-Length: 0
Can some one tell me How SER works for OPTIONS method and why am i getting that "404 not found" response.Is there some problem with my packet?
the answer is pretty simple: Ser is currently not yet able to answer OPTIONS to the server itself. Maybe it is possible to create a correct answer with a lot of script commands (e.g. if==OPTIONS and user not present in uri { sl_reply(200); append_hf(header filed with the methods);break}), but their is support for this built into Ser or one of its modules. As a proxy it tries to find the user, to which it should process the request, which is not present, and because of this you get a 404 back.
Regards Nils Ohlmeier