SOWN VoIP/connecting

From SOWNWiki
Jump to: navigation, search

Currently you need to be on the SOWN network to access the VoIP server. The easiest way to do this is to connect to a SOWN at Home node or a campus node. You will need the following information regarding your account:

  • Your username, this will be something like arww104 or test1
  • Your password, this will be something like 'password', if you forget your password you can always extract it from the Asterisk database

You will most likely need to configure the following in your client:

  • The domain, which should be sown-dev.ecs.soton.ac.uk

Because access is only via the SOWN network you will not need to worry about configuring a STUN server. When trying to debug connections it may be userfull to use a program like wireshark. A successfull conection followed by a call should look like the following. Apparantly the unautherised stuff is normal, the SIP/2.0 200 OK is what tells you that the authentication was successfull.

REGISTER sip:dev.sown.org.uk SIP/2.0
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-ac149d3ade248420-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:test1@10.13.140.143:18220;rinstance=052955c4ec6309d6>
To: "test1"<sip:test1@dev.sown.org.uk>
From: "test1"<sip:test1@dev.sown.org.uk>;tag=cd575e2e
Call-ID: ZDYzOTlmZjI0OTY2MzJkMzY0ZjkyNTlmZTI1MjZmYTM.
CSeq: 1 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1100l stamp 47546
Content-Length: 0

SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-ac149d3ade248420-1---d8754z-;received=10.13.140.143;rport=18220
From: "test1"<sip:test1@dev.sown.org.uk>;tag=cd575e2e
To: "test1"<sip:test1@dev.sown.org.uk>;tag=as0beecaf1
Call-ID: ZDYzOTlmZjI0OTY2MzJkMzY0ZjkyNTlmZTI1MjZmYTM.
CSeq: 1 REGISTER
User-Agent: Asterisk PBX asteriskv6-20080107
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="784862d5"
Content-Length: 0

REGISTER sip:dev.sown.org.uk SIP/2.0
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-8e3d893e5539d917-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:test1@10.13.140.143:18220;rinstance=052955c4ec6309d6>
To: "test1"<sip:test1@dev.sown.org.uk>
From: "test1"<sip:test1@dev.sown.org.uk>;tag=cd575e2e
Call-ID: ZDYzOTlmZjI0OTY2MzJkMzY0ZjkyNTlmZTI1MjZmYTM.
CSeq: 2 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1100l stamp 47546
Authorization: Digest username="test1",realm="asterisk",nonce="784862d5",uri="sip:dev.sown.org.uk",response="68c6e11cd377522b86745e3b222071d2",algorithm=MD5
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-8e3d893e5539d917-1---d8754z-;received=10.13.140.143;rport=18220
From: "test1"<sip:test1@dev.sown.org.uk>;tag=cd575e2e
To: "test1"<sip:test1@dev.sown.org.uk>;tag=as0beecaf1
Call-ID: ZDYzOTlmZjI0OTY2MzJkMzY0ZjkyNTlmZTI1MjZmYTM.
CSeq: 2 REGISTER
User-Agent: Asterisk PBX asteriskv6-20080107
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Expires: 3600
Contact: <sip:test1@10.13.140.143:18220;rinstance=052955c4ec6309d6>;expires=3600
Date: Sat, 04 Apr 2009 11:42:34 GMT
Content-Length: 0

SUBSCRIBE sip:test1@dev.sown.org.uk SIP/2.0
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-7207da7e6122e142-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:test1@10.13.140.143:18220>
To: "test1"<sip:test1@dev.sown.org.uk>
From: "test1"<sip:test1@dev.sown.org.uk>;tag=b2635c7e
Call-ID: MDA4ZTk2NzRjZmE1YzY3OWNhMzIxNzE1MjU0ODQ3Mjk.
CSeq: 1 SUBSCRIBE
Expires: 300
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1100l stamp 47546
Event: message-summary
Content-Length: 0

SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-7207da7e6122e142-1---d8754z-;received=10.13.140.143;rport=18220
From: "test1"<sip:test1@dev.sown.org.uk>;tag=b2635c7e
To: "test1"<sip:test1@dev.sown.org.uk>;tag=as6315008e
Call-ID: MDA4ZTk2NzRjZmE1YzY3OWNhMzIxNzE1MjU0ODQ3Mjk.
CSeq: 1 SUBSCRIBE
User-Agent: Asterisk PBX asteriskv6-20080107
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="3b26eb6d"
Content-Length: 0

SUBSCRIBE sip:test1@dev.sown.org.uk SIP/2.0
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-de0c1c5cc04d0516-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:test1@10.13.140.143:18220>
To: "test1"<sip:test1@dev.sown.org.uk>
From: "test1"<sip:test1@dev.sown.org.uk>;tag=b2635c7e
Call-ID: MDA4ZTk2NzRjZmE1YzY3OWNhMzIxNzE1MjU0ODQ3Mjk.
CSeq: 2 SUBSCRIBE
Expires: 300
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1100l stamp 47546
Authorization: Digest username="test1",realm="asterisk",nonce="3b26eb6d",uri="sip:test1@dev.sown.org.uk",response="ee6143c75cdaebfd7404d9f6e36e0400",algorithm=MD5
Event: message-summary
Content-Length: 0

SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-de0c1c5cc04d0516-1---d8754z-;received=10.13.140.143;rport=18220
From: "test1"<sip:test1@dev.sown.org.uk>;tag=b2635c7e
To: "test1"<sip:test1@dev.sown.org.uk>;tag=as6315008e
Call-ID: MDA4ZTk2NzRjZmE1YzY3OWNhMzIxNzE1MjU0ODQ3Mjk.
CSeq: 2 SUBSCRIBE
User-Agent: Asterisk PBX asteriskv6-20080107
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0





SUBSCRIBE sip:test1@dev.sown.org.uk SIP/2.0
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-c414050b12608d6f-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:test1@10.13.140.143:18220>
To: "test1"<sip:test1@dev.sown.org.uk>
From: "test1"<sip:test1@dev.sown.org.uk>;tag=004d255a
Call-ID: NmQwYzllNTFjMjliMzlhYmNmMTI4NzUxMjJhNmZkMTI.
CSeq: 1 SUBSCRIBE
Expires: 300
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1100l stamp 47546
Event: message-summary
Content-Length: 0

SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-c414050b12608d6f-1---d8754z-;received=10.13.140.143;rport=18220
From: "test1"<sip:test1@dev.sown.org.uk>;tag=004d255a
To: "test1"<sip:test1@dev.sown.org.uk>;tag=as69fb98de
Call-ID: NmQwYzllNTFjMjliMzlhYmNmMTI4NzUxMjJhNmZkMTI.
CSeq: 1 SUBSCRIBE
User-Agent: Asterisk PBX asteriskv6-20080107
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="1dfea481"
Content-Length: 0

SUBSCRIBE sip:test1@dev.sown.org.uk SIP/2.0
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-fa0e8a20684afe50-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:test1@10.13.140.143:18220>
To: "test1"<sip:test1@dev.sown.org.uk>
From: "test1"<sip:test1@dev.sown.org.uk>;tag=004d255a
Call-ID: NmQwYzllNTFjMjliMzlhYmNmMTI4NzUxMjJhNmZkMTI.
CSeq: 2 SUBSCRIBE
Expires: 300
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1100l stamp 47546
Authorization: Digest username="test1",realm="asterisk",nonce="1dfea481",uri="sip:test1@dev.sown.org.uk",response="a4e71ac33f1464a2fb0678d2c93b6073",algorithm=MD5
Event: message-summary
Content-Length: 0

SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-fa0e8a20684afe50-1---d8754z-;received=10.13.140.143;rport=18220
From: "test1"<sip:test1@dev.sown.org.uk>;tag=004d255a
To: "test1"<sip:test1@dev.sown.org.uk>;tag=as69fb98de
Call-ID: NmQwYzllNTFjMjliMzlhYmNmMTI4NzUxMjJhNmZkMTI.
CSeq: 2 SUBSCRIBE
User-Agent: Asterisk PBX asteriskv6-20080107
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0

INVITE sip:1287@dev.sown.org.uk SIP/2.0
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-e92863159c33857c-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:test1@10.13.140.143:18220>
To: "1287"<sip:1287@dev.sown.org.uk>
From: "test1"<sip:test1@dev.sown.org.uk>;tag=cc261411
Call-ID: MGZlZTcyMDExMjFlOTE3MjI4YjZlMjFjYTkzODYzNTI.
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Content-Type: application/sdp
User-Agent: X-Lite release 1100l stamp 47546
Content-Length: 468

v=0
o=- 3 2 IN IP4 127.0.0.1
s=CounterPath X-Lite 3.0
c=IN IP4 127.0.0.1
t=0 0
m=audio 49490 RTP/AVP 107 119 100 106 0 105 98 8 3 101
a=alt:1 2 : /XBof9nP dhrc62p0 169.254.3.180 49490
a=alt:2 1 : B9eFP1wp K+MFWbg/ 10.13.140.143 49490
a=fmtp:101 0-15
a=rtpmap:107 BV32/16000
a=rtpmap:119 BV32-FEC/16000
a=rtpmap:100 SPEEX/16000
a=rtpmap:106 SPEEX-FEC/16000
a=rtpmap:105 SPEEX-FEC/8000
a=rtpmap:98 iLBC/8000
a=rtpmap:101 telephone-event/8000
a=sendrecv
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-e92863159c33857c-1---d8754z-;received=10.13.140.143;rport=18220
From: "test1"<sip:test1@dev.sown.org.uk>;tag=cc261411
To: "1287"<sip:1287@dev.sown.org.uk>;tag=as3af30859
Call-ID: MGZlZTcyMDExMjFlOTE3MjI4YjZlMjFjYTkzODYzNTI.
CSeq: 1 INVITE
User-Agent: Asterisk PBX asteriskv6-20080107
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="767e11e6"
Content-Length: 0

ACK sip:1287@dev.sown.org.uk SIP/2.0
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-e92863159c33857c-1---d8754z-;rport
To: "1287"<sip:1287@dev.sown.org.uk>;tag=as3af30859
From: "test1"<sip:test1@dev.sown.org.uk>;tag=cc261411
Call-ID: MGZlZTcyMDExMjFlOTE3MjI4YjZlMjFjYTkzODYzNTI.
CSeq: 1 ACK
Content-Length: 0

INVITE sip:1287@dev.sown.org.uk SIP/2.0
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-e81a4a3ff71bac39-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:test1@10.13.140.143:18220>
To: "1287"<sip:1287@dev.sown.org.uk>
From: "test1"<sip:test1@dev.sown.org.uk>;tag=cc261411
Call-ID: MGZlZTcyMDExMjFlOTE3MjI4YjZlMjFjYTkzODYzNTI.
CSeq: 2 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Content-Type: application/sdp
User-Agent: X-Lite release 1100l stamp 47546
Authorization: Digest username="test1",realm="asterisk",nonce="767e11e6",uri="sip:1287@dev.sown.org.uk",response="110be1aafee8de5457a7cceb65e27c40",algorithm=MD5
Content-Length: 468

v=0
o=- 3 2 IN IP4 127.0.0.1
s=CounterPath X-Lite 3.0
c=IN IP4 127.0.0.1
t=0 0
m=audio 49490 RTP/AVP 107 119 100 106 0 105 98 8 3 101
a=alt:1 2 : /XBof9nP dhrc62p0 169.254.3.180 49490
a=alt:2 1 : B9eFP1wp K+MFWbg/ 10.13.140.143 49490
a=fmtp:101 0-15
a=rtpmap:107 BV32/16000
a=rtpmap:119 BV32-FEC/16000
a=rtpmap:100 SPEEX/16000
a=rtpmap:106 SPEEX-FEC/16000
a=rtpmap:105 SPEEX-FEC/8000
a=rtpmap:98 iLBC/8000
a=rtpmap:101 telephone-event/8000
a=sendrecv
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-e81a4a3ff71bac39-1---d8754z-;received=10.13.140.143;rport=18220
From: "test1"<sip:test1@dev.sown.org.uk>;tag=cc261411
To: "1287"<sip:1287@dev.sown.org.uk>
Call-ID: MGZlZTcyMDExMjFlOTE3MjI4YjZlMjFjYTkzODYzNTI.
CSeq: 2 INVITE
User-Agent: Asterisk PBX asteriskv6-20080107
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:1287@10.13.0.250>
Content-Length: 0

SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-e81a4a3ff71bac39-1---d8754z-;received=10.13.140.143;rport=18220
From: "test1"<sip:test1@dev.sown.org.uk>;tag=cc261411
To: "1287"<sip:1287@dev.sown.org.uk>;tag=as0c0d0ea9
Call-ID: MGZlZTcyMDExMjFlOTE3MjI4YjZlMjFjYTkzODYzNTI.
CSeq: 2 INVITE
User-Agent: Asterisk PBX asteriskv6-20080107
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:1287@10.13.0.250>
Content-Type: application/sdp
Content-Length: 364

v=0
o=root 1395872329 1395872329 IN IP4 10.13.0.250
s=Asterisk PBX asteriskv6-20080107
c=IN IP4 10.13.0.250
t=0 0
m=audio 5004 RTP/AVP 98 3 0 8 101
a=rtpmap:98 iLBC/8000
a=fmtp:98 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
CANCEL sip:1287@dev.sown.org.uk SIP/2.0
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-e81a4a3ff71bac39-1---d8754z-;rport
To: "1287"<sip:1287@dev.sown.org.uk>
From: "test1"<sip:test1@dev.sown.org.uk>;tag=cc261411
Call-ID: MGZlZTcyMDExMjFlOTE3MjI4YjZlMjFjYTkzODYzNTI.
CSeq: 2 CANCEL
User-Agent: X-Lite release 1100l stamp 47546
Authorization: Digest username="test1",realm="asterisk",nonce="767e11e6",uri="sip:1287@dev.sown.org.uk",response="cbe14b3079c4f1dbf644a7700aeff227",algorithm=MD5
Content-Length: 0

SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-e81a4a3ff71bac39-1---d8754z-;received=10.13.140.143;rport=18220
From: "test1"<sip:test1@dev.sown.org.uk>;tag=cc261411
To: "1287"<sip:1287@dev.sown.org.uk>;tag=as0c0d0ea9
Call-ID: MGZlZTcyMDExMjFlOTE3MjI4YjZlMjFjYTkzODYzNTI.
CSeq: 2 INVITE
User-Agent: Asterisk PBX asteriskv6-20080107
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0

ACK sip:1287@dev.sown.org.uk SIP/2.0
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-e81a4a3ff71bac39-1---d8754z-;rport
To: "1287"<sip:1287@dev.sown.org.uk>;tag=as0c0d0ea9
From: "test1"<sip:test1@dev.sown.org.uk>;tag=cc261411
Call-ID: MGZlZTcyMDExMjFlOTE3MjI4YjZlMjFjYTkzODYzNTI.
CSeq: 2 ACK
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.13.140.143:18220;branch=z9hG4bK-d8754z-e81a4a3ff71bac39-1---d8754z-;received=10.13.140.143;rport=18220
From: "test1"<sip:test1@dev.sown.org.uk>;tag=cc261411
To: "1287"<sip:1287@dev.sown.org.uk>;tag=as0c0d0ea9
Call-ID: MGZlZTcyMDExMjFlOTE3MjI4YjZlMjFjYTkzODYzNTI.
CSeq: 2 CANCEL
User-Agent: Asterisk PBX asteriskv6-20080107
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:1287@10.13.0.250>
Content-Length: 0