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=......
CSeq: 1 MESSAGE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY
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!!