Hier ein Trace aus dem privaten Netz und Source NAT zum SIP Proxy. Entstanden ist er im öffentlichen Netz, nachdem die Source NAT angewendet wurde.
Wichtige Infos zu SIP findet man hier:
http://tools.ietf.org/html/rfc6665
- Ein SIP Client kommt von der öffentlichen IP 145.253.101.206 und registriert sich beim SIP Proxy
- Danach folgen für die in EXPIRES festgelete Zeit die Keep Alive Pakete ….. bis eine neue Registrierung nötig ist zurück zu (1).
Der Trace im Original ist hier.
Hier der Registrierungsvorgang:
ZUM SIP PROXY
Beim SIP Proxy registrieren
REGISTER sip:195.222.249.61 SIP/2.0
Die private IP des Clients ist 10.136.183.9:5060
Via: SIP/2.0/UDP 10.136.183.9:5060;branch=z9hG4bK-d8754z-3514a860e10cac40-1—d8754z-;rport
Max-Forwards: 70
Contact: <sip:316_13456_agent01@10.136.183.9:5060;rinstance=3f5f3af7bca4a30b>;methods=“INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,NOTIFY,SUBSCRIBE,INFO,MESSAGE“
Empfänger ist sip:316_13456_agent01@195.222.249.61
To: <sip:316_13456_agent01@195.222.249.61>
From: <sip:316_13456_agent01@195.222.249.61>;tag=d964f91f
Call-ID: NGYwNWNiMWI1ODRjMzQwYjY4Y2I4OGM3NTMxZmFiODU.
CSeq: 55 REGISTER
Der Proxy löscht die Registrierung nach 300 Sekunden, wenn kein Kee Alive kommt.
Expires: 300
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, SUBSCRIBE, INFO, MESSAGE
Supported: replaces, timer, norefersub, answermode, tdialog
User-Agent: VoIP Agent Client
Authorization: Digest username=“316_13456_agent01″,realm=“195.222.249.61″,nonce=“511ce2d60000bcdff105c236c72badfab2ac3b18d0609432″,uri=“sip:195.222.249.61″,response=“483d85bb0a53e1cef204f7220f460cbe“,algorithm=MD5
Content-Length: 0
DER SIP PROXY ANTWORTET
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.136.183.9:5060;branch=z9hG4bK-d8754z-3514a860e10cac40-1—d8754z-;rport=1024;received=145.253.101.206
To: <sip:316_13456_agent01@195.222.249.61>
From: <sip:316_13456_agent01@195.222.249.61>;tag=d964f91f
Call-ID: NGYwNWNiMWI1ODRjMzQwYjY4Y2I4OGM3NTMxZmFiODU.
CSeq: 55 REGISTER
Server: Kamailio (1.5.1-notls (i386/linux))
Content-Length: 0
DER SIP PROXY ANTWORTET
SIP/2.0 401 Unauthorized
Die Register Anfrage kam 145.253.101.206
Via: SIP/2.0/UDP 10.136.183.9:5060;branch=z9hG4bK-d8754z-3514a860e10cac40-1—d8754z-;rport=1024;received=145.253.101.206
To: <sip:316_13456_agent01@195.222.249.61>;tag=a7c80522f3463fd93a372375df56bf11.3867
From: <sip:316_13456_agent01@195.222.249.61>;tag=d964f91f
Call-ID: NGYwNWNiMWI1ODRjMzQwYjY4Y2I4OGM3NTMxZmFiODU.
CSeq: 55 REGISTER
Aufforderung zum Anmelden am SIP Proxy
WWW-Authenticate: Digest realm=“195.222.249.61″, nonce=“511ce3e40000bce1dcd606402b5b01daa2fc511336a1fab6″, stale=true
Server: Kamailio (1.5.1-notls (i386/linux))
Content-Length: 0
ZUM SIP PROXY
REGISTER sip:195.222.249.61 SIP/2.0
Via: SIP/2.0/UDP 10.136.183.9:5060;branch=z9hG4bK-d8754z-9804a67e991bae05-1—d8754z-;rport
Max-Forwards: 70
Contact: <sip:316_13456_agent01@10.136.183.9:5060;rinstance=3f5f3af7bca4a30b>;methods=“INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,NOTIFY,SUBSCRIBE,INFO,MESSAGE“
To: <sip:316_13456_agent01@195.222.249.61>
From: <sip:316_13456_agent01@195.222.249.61>;tag=d964f91f
Call-ID: NGYwNWNiMWI1ODRjMzQwYjY4Y2I4OGM3NTMxZmFiODU.
CSeq: 56 REGISTER
Expires: 300
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, SUBSCRIBE, INFO, MESSAGE
Supported: replaces, timer, norefersub, answermode, tdialog
User-Agent: VoIP Agent Client
Authorization: Digest username=“316_13456_agent01″,realm=“195.222.249.61″,nonce=“511ce3e40000bce1dcd606402b5b01daa2fc511336a1fab6″,uri=“sip:195.222.249.61″,response=“f97f3a7c31e9fd63ebd3a1353b65cb32″,algorithm=MD5
Content-Length: 0
VOM SIP PROXY
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.136.183.9:5060;branch=z9hG4bK-d8754z-9804a67e991bae05-1—d8754z-;rport=1024;received=145.253.101.206
To: <sip:316_13456_agent01@195.222.249.61>
From: <sip:316_13456_agent01@195.222.249.61>;tag=d964f91f
Call-ID: NGYwNWNiMWI1ODRjMzQwYjY4Y2I4OGM3NTMxZmFiODU.
CSeq: 56 REGISTER
Server: Kamailio (1.5.1-notls (i386/linux))
Content-Length: 0
VOM SIP PROXY
angemeldet
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.136.183.9:5060;branch=z9hG4bK-d8754z-9804a67e991bae05-1—d8754z-;rport=1024;received=145.253.101.206
To: <sip:316_13456_agent01@195.222.249.61>;tag=a7c80522f3463fd93a372375df56bf11.a2c7
From: <sip:316_13456_agent01@195.222.249.61>;tag=d964f91f
Call-ID: NGYwNWNiMWI1ODRjMzQwYjY4Y2I4OGM3NTMxZmFiODU.
CSeq: 56 REGISTER
Contact: <sip:316_13456_agent01@10.136.183.9:5060;rinstance=3f5f3af7bca4a30b>;expires=300;received=“sip:145.253.101.206:1024″
Server: Kamailio (1.5.1-notls (i386/linux))
Content-Length: 0