Skip to content

Instantly share code, notes, and snippets.

@benlangfeld
Last active August 29, 2015 14:10
Show Gist options
  • Save benlangfeld/b374a0ce0bdb6bdc35e7 to your computer and use it in GitHub Desktop.
Save benlangfeld/b374a0ce0bdb6bdc35e7 to your computer and use it in GitHub Desktop.
Note that the multiple paths are not translated into multiple Route headers on the invite. This causes the edge proxy to only check the first entry in the route, conclude it is self, then follow the contact, instead of following the second path.
Registration received by registrar:
REGISTER sip:codeminer.com.br:5070 SIP/2.0
Via: SIP/2.0/UDP 192.168.231.13;branch=z9hG4bK6ef.9071b3b502c6e0bf84b7e3963de594b2.0;i=81
Via: SIP/2.0/TCP 192.168.231.14:5070;rport=39087;branch=z9hG4bK6ef.a57374df4146309b7a85dcc395fa8d41.0
v: SIP/2.0/UDP 192.168.231.14:5060;received=192.168.231.14;branch=z9hG4bK53148025;rport=5060
f: <sip:destination_023@codeminer.com.br>;tag=as5d260416
t: <sip:destination_023@codeminer.com.br>
i: 7fb09d346f80c5e576b1e7d333cd62ba@127.0.1.1
CSeq: 103 REGISTER
User-Agent: Asterisk with Adhearsion
Max-Forwards: 69
Authorization: Digest username="destination_023@codeminer.com.br", realm="codeminer.com.br", algorithm=MD5, uri="sip:codeminer.com.br:5070", nonce="VIBBUFSAQCR8CKsmhOogF0jQ6Nkb2Ded", response="4822bbafa0f1ea5fc52dc8825bad6c8b"
Expires: 120
m: <sip:s@192.168.231.14>
o: registration
l: 0
Path: <sip:192.168.231.13;lr>
Path: <sip:192.168.231.14:5070;transport=tcp;lr>
INVITE processed by registrar:
INVITE sip:s@192.168.231.14 SIP/2.0
Record-Route: <sip:192.168.231.10;lr=on>
Record-Route: <sip:6qZ363v3UxDzOwXAqOcLE8vAqOcB1mE=@192.168.231.11;r2=on;lr=on>
Record-Route: <sip:6qZ363v3UxDzOwXAqOcLE8vAqOcB1mE=@192.168.231.11:5067;transport=ws;r2=on;lr=on>
Via: SIP/2.0/UDP 192.168.231.10;branch=z9hG4bK696c.07782e3ee1b570dcbd4023b2ee8cb1d7.0
Route: <sip:192.168.231.13;lr>,<sip:192.168.231.14:5070;transport=tcp;lr>
Via: SIP/2.0/UDP 192.168.231.11;branch=z9hG4bK696c.b21b1bbeab8dcd64774175eba37601ba.0
Via: SIP/2.0/WS h4thjeqgku5d.invalid;rport=54881;received=192.168.231.1;branch=z9hG4bK957936
Max-Forwards: 68
To: <sip:destination_023@codeminer.com.br>
From: <sip:anonymous.qrc6uv@anonymous.invalid>;tag=2if2icg4ce
Call-ID: 7mt8is3ei5ia2gmhsgu7
CSeq: 8134 INVITE
X-User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36
X-Origin:http://localhost:3000/destinations/23
Contact: <sip:8sv9sa36@h4thjeqgku5d.invalid;transport=ws;ob>
Allow: ACK,CANCEL,BYE,OPTIONS,INFO,NOTIFY,INVITE
Content-Type: application/sdp
Supported: 100rel,outbound
User-Agent: SIP.js/0.6.2
Content-Length: 2580
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment