[OpenSIPS-Users] Sip ALG causing 400 bad request

Saul Ibarra Corretge saul at ag-projects.com
Wed Jan 4 14:16:06 CET 2012


On Jan 4, 2012, at 12:21 PM, Schneur Rosenberg wrote:

> The Contact header is missing the closing bracket, it happens to all
> phones at this customers location, that's why I believe its a broken
> ALG in the router, I dont have access to this router, I tried
> registering to Asterisk and Asterisk finds the error, but says trying
> anyway and everything runs fine, but in OpenSIPS I get a 400 bad
> request, is there anyway I can have Opensips ignore this error?
> 
> 
> U 38.117.235.59:61052 -> 64.67.45.20:5060
> REGISTER sip:sipsvr.myip.com SIP/2.0.
> Via: SIP/2.0/UDP 192.168.1.2:5072;branch=z9hG4bK-2ca21443.
> From: <sip:stern2 at myip.com>;tag=34291a3575655678o0.
> To: <sip:stern2 at myip.com>.
> Call-ID: 8add449a-7e226e8 at 192.168.1.2.
> CSeq: 63736 REGISTER.
> Max-Forwards: 70.
> Authorization: Digest
> username="stern2",realm="sipsvr.myip.com",nonce="4f042778000117f7da6d45c872f829721268ee7f5309b0aa",uri="sip:sipsvr.myip.com",algorithm=MD5,response="93b15ebe2f6d1853e633a8ba90a54b4b".
> Contact: <sip:stern2 at 38.117.235.59:61052;expires=60.
> User-Agent: Linksys/PAP2T-5.1.6(LS).
> Content-Length: 0.
> Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
> Supported: x-sipura, replaces.
> 

ALGs are evil. They usually work so bad that no matter how hard you try there is no guarantee that you'll not encounter another issue. You should replace the router.

-- 
Saúl Ibarra Corretgé
AG Projects








More information about the Users mailing list