I need help sending a SIP MESSAGE request

When I try and send a SIP MESSAGE from one phone to another it doesn’t work. I sniffed the network and found that Asterisk was blocking those messages. The response I got from Asterisk was:

SIP/2.0 405 Method Not Allowed Via: SIP/2.0/UDP 172.16.0.46:5061;branch=...... From: sip:300@172.16.0.38 To: sip:201@172.16.0.38;tag=...... Call-ID: ...... CSeq: 1 MESSAGE User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY Contact: Content-Length: 0

Looking in the some older (v1.2) Asterisk code (we implement Asterisk@Home here and have actually not compiled generic Asterisk) I found a method in in chan_sip.c named handle_request_message(…) which calls transmit_response(p, “405 Method Not Allowed”, req); when b != TRUE[/b] (where p is a struct sip_pvt *).

I searched everywhere online and it seems the only way to send a MESSAGE from one SIP peer to another through Asterisk is to implement a patch. The documentation on the patch is pretty vague and I am afraid that it has left me rather stuck.

I would appreciate ANY and ALL help on this problem!!

Thanks,
Lilli

In fact, I need this patch too.
Where you found this patch?
I’m thinking in create a method to passthrough SIP Messages.