Click here to Skip to main content
15,889,281 members
Articles / Programming Languages / C#
Article

SIP Stack with SIP Proxy - (VOIP)

Rate me:
Please Sign up or sign in to vote.
4.86/5 (45 votes)
11 Jun 2007CPOL2 min read 1.6M   28.1K   162   354
C# implementation of SIP
Screenshot - proxy.jpg

SIP Overview

SIP is an application-layer control protocol that can establish, modify, and terminate multimedia sessions (conferences) such as Internet telephony calls. SIP can also invite participants to already existing sessions, such as multicast conferences. Normally SIP uses UDP and TCP port 5060 and TCP 5061 for SSL communication. SIP protocol is very similar to HTTP, so if you have some knowledge about HTTP, then it is easy to learn SIP. SIP doesn't transfer session data like audio, video. RTP(real time protocol) is used for that, SIP just helps to open RTP streams.

SIP Message Example

INVITE sip:john@domain.com SIP/2.0
From: <sip:doe@domain.com>;tag=2084442460
To: <sip:john@1domain.com>
Via: SIP/2.0/UDP domain.com:5060;branch=z9hG4bK2df7b9194cd51e25
Call-ID: john@domain.com-4524j
CSeq: 1 INVITE
Contact: <sip:doe@domain.com:5060>
Content-Length: 226
Content-Type: application/sdp

<session description data, like RTP description>

SIP Server Types

statelessSIP server doesn't store any transaction info.
statefullSIP server creates and holds SIP commands transaction state.
registrar/location Allows users to register their locations and later to use that info to forward calls to registered contact.
B2BUASIP server is like statefull + holds active calls state.(This is needed if call billing or full control of call is needed)
presence Provides user availability services, like if user is online,offline, ... .
...There are some more, but not so important ones.

Basic SIP Commands

  • INVITE - Initiates a session. This method includes information about the calling and called users and the type of media that is to be exchanged.
  • ACK - Sent by the client who sends the INVITE. ACK is sent to confirm that the session is established. Media can then be exchanged.
  • BYE - Terminates a session. This method can be sent by either user.
  • CANCEL - Terminates a pending request, such as an outstanding INVITE. After a session is established, a BYE method needs to be used to terminate the session.
  • OPTIONS - Queries the capabilities of the server or other devices. It can be used to check media capabilities before issuing an INVITE.
  • REGISTER - Used by a client to login and register its address with a SIP registrar server.

Ok, some ABC done, there are many documents on the internet, so it is not a good idea to rewrite these there.

If want more advanced information, then see:

SIP Proxy Demo Overview

This SIP proxy example just implements fully functional simple stateless, statefull, b2bua proxy. You can use hardware SIP phones or soft phones to play with this proxy.This is an advanced example, code is well commented, so beginners don't hate me because no more text here. Just read RFC 3216, see information links I noted earlier. After you go through those, if you then look at the code, it is all nicer then.

Some free available softphones are:

Version:
    11.06.2007
        *) Added B2BUA support.
    07.04.2007 
        *) Many bug fixes. 
        *) SIP -> PSTN and PSTN -> SIP gateway support. 
        *) Non-SIP URI gateway support. 

Contact Details

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Estonia Estonia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralRe: is there is client Pin
el3ashe215-Jun-09 1:54
el3ashe215-Jun-09 1:54 
GeneralRe: is there is client Pin
Ivar Lumi15-Jun-09 2:35
Ivar Lumi15-Jun-09 2:35 
GeneralDoes it work without setting domain Pin
lliaolx_guilin10-Jun-09 14:10
lliaolx_guilin10-Jun-09 14:10 
GeneralRe: Does it work without setting domain Pin
Ivar Lumi11-Jun-09 0:30
Ivar Lumi11-Jun-09 0:30 
GeneralRe: Does it work without setting domain Pin
lliaolx_guilin11-Jun-09 7:12
lliaolx_guilin11-Jun-09 7:12 
GeneralRe: Does it work without setting domain Pin
Ivar Lumi11-Jun-09 7:19
Ivar Lumi11-Jun-09 7:19 
GeneralRe: Does it work without setting domain Pin
lliaolx_guilin11-Jun-09 12:53
lliaolx_guilin11-Jun-09 12:53 
GeneralRe: Does it work without setting domain Pin
lliaolx_guilin11-Jun-09 7:57
lliaolx_guilin11-Jun-09 7:57 
Hi Ivar,

Another problem is I couldn't find the password from the function "private void SIP_Authenticate(SIP_AuthenticateEventArgs e)" when I was debugging. And my log is like:

Received (545 bytes): 192.168.1.66:5060 <- 192.168.1.66:21762
REGISTER sip:192.168.1.66 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:21762;branch=z9hG4bK-d87543-2042ed4a2e59bf36-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:liao@127.0.0.1:21762;rinstance=a261a0c192e1bdc0>
To: "liao"<sip:liao@192.168.1.66>
From: "liao"<sip:liao@192.168.1.66>;tag=a24bae12
Call-ID: 245d4d34381fcd21M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 1 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1002tx stamp 29712
Content-Length: 0




Transaction(id='z9hG4bK-d87543-2042ed4a2e59bf36-1--d87543-' method=REGISTER server=true) created.

Transaction(id='z9hG4bK-d87543-2042ed4a2e59bf36-1--d87543-' method=REGISTER server=true) Transaction timeout Timer started, will triger after 90000.

Transaction(id='z9hG4bK-d87543-2042ed4a2e59bf36-1--d87543-' method=REGISTER server=true) got response response='407'.

Sending (522 bytes): 192.168.1.66:5060 -> 192.168.1.66:21762
<begin>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 127.0.0.1:21762;branch=z9hG4bK-d87543-2042ed4a2e59bf36-1--d87543-;rport=21762;received=192.168.1.66
From: "liao" <sip:liao@192.168.1.66>;tag=a24bae12
To: "liao" <sip:liao@192.168.1.66>
Call-ID: 245d4d34381fcd21M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 1 REGISTER
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,PRACK
Proxy-Authenticate: digest realm="",nonce="92d86b95392e41e6a15312144cd0b810",opaque="073eb4c61699415ab613ca8f42af62d0"
Content-Length: 0

<end>


Transaction(id='z9hG4bK-d87543-2042ed4a2e59bf36-1--d87543-' method=REGISTER server=true) Timer J(wait time for retransmissions of non-INVITE requests) started, will triger after 32000.

Received (763 bytes): 192.168.1.66:5060 <- 192.168.1.66:21762
REGISTER sip:192.168.1.66 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:21762;branch=z9hG4bK-d87543-e647e2509f441064-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:liao@127.0.0.1:21762;rinstance=a261a0c192e1bdc0>
To: "liao"<sip:liao@192.168.1.66>
From: "liao"<sip:liao@192.168.1.66>;tag=a24bae12
Call-ID: 245d4d34381fcd21M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 2 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Proxy-Authorization: Digest username="liao",realm="",nonce="92d86b95392e41e6a15312144cd0b810",uri="sip:192.168.1.66",response="6ae91e5fc604b3099b347580e7c1523e",algorithm=MD5,opaque="073eb4c61699415ab613ca8f42af62d0"
User-Agent: X-Lite release 1002tx stamp 29712
Content-Length: 0




Received (763 bytes): 192.168.1.66:5060 <- 192.168.1.66:21762
REGISTER sip:192.168.1.66 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:21762;branch=z9hG4bK-d87543-e647e2509f441064-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:liao@127.0.0.1:21762;rinstance=a261a0c192e1bdc0>
To: "liao"<sip:liao@192.168.1.66>
From: "liao"<sip:liao@192.168.1.66>;tag=a24bae12
Call-ID: 245d4d34381fcd21M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 2 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Proxy-Authorization: Digest username="liao",realm="",nonce="92d86b95392e41e6a15312144cd0b810",uri="sip:192.168.1.66",response="6ae91e5fc604b3099b347580e7c1523e",algorithm=MD5,opaque="073eb4c61699415ab613ca8f42af62d0"
User-Agent: X-Lite release 1002tx stamp 29712
Content-Length: 0




Transaction(id='z9hG4bK-d87543-e647e2509f441064-1--d87543-' method=REGISTER server=true) created.

Transaction(id='z9hG4bK-d87543-e647e2509f441064-1--d87543-' method=REGISTER server=true) created.

Transaction(id='z9hG4bK-d87543-e647e2509f441064-1--d87543-' method=REGISTER server=true) Transaction timeout Timer started, will triger after 90000.

Transaction(id='z9hG4bK-d87543-e647e2509f441064-1--d87543-' method=REGISTER server=true) Transaction timeout Timer started, will triger after 90000.

Transaction(id='z9hG4bK-d87543-e647e2509f441064-1--d87543-' method=REGISTER server=true) got response response='407'.

Transaction(id='z9hG4bK-d87543-e647e2509f441064-1--d87543-' method=REGISTER server=true) got response response='407'.

Sending (522 bytes): 192.168.1.66:5060 -> 192.168.1.66:21762
<begin>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 127.0.0.1:21762;branch=z9hG4bK-d87543-e647e2509f441064-1--d87543-;rport=21762;received=192.168.1.66
From: "liao" <sip:liao@192.168.1.66>;tag=a24bae12
To: "liao" <sip:liao@192.168.1.66>
Call-ID: 245d4d34381fcd21M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 2 REGISTER
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,PRACK
Proxy-Authenticate: digest realm="",nonce="0069b4a5990e451bb27dc30ee83c4974",opaque="073eb4c61699415ab613ca8f42af62d0"
Content-Length: 0

<end>


Sending (545 bytes): 192.168.1.66:5060 -> 192.168.1.66:21762
<begin>
SIP/2.0 407 Proxy Authentication Required: Invalid nonce value !
Via: SIP/2.0/UDP 127.0.0.1:21762;branch=z9hG4bK-d87543-e647e2509f441064-1--d87543-;rport=21762;received=192.168.1.66
From: "liao" <sip:liao@192.168.1.66>;tag=a24bae12
To: "liao" <sip:liao@192.168.1.66>
Call-ID: 245d4d34381fcd21M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 2 REGISTER
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,PRACK
Proxy-Authenticate: digest realm="",nonce="cb1a08862b4e4b2a98e5a25f69bc02b0",opaque="073eb4c61699415ab613ca8f42af62d0"
Content-Length: 0

<end>


Transaction(id='z9hG4bK-d87543-e647e2509f441064-1--d87543-' method=REGISTER server=true) Timer J(wait time for retransmissions of non-INVITE requests) started, will triger after 32000.

Transaction(id='z9hG4bK-d87543-e647e2509f441064-1--d87543-' method=REGISTER server=true) Timer J(wait time for retransmissions of non-INVITE requests) started, will triger after 32000.

Transaction(id='z9hG4bK-d87543-2042ed4a2e59bf36-1--d87543-' method=REGISTER server=true) Timer J(Wait time for retransmissions of non-INVITE requests) triggered.

Received (763 bytes): 192.168.1.66:5060 <- 192.168.1.66:21762
REGISTER sip:192.168.1.66 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:21762;branch=z9hG4bK-d87543-e647e2509f441064-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:liao@127.0.0.1:21762;rinstance=a261a0c192e1bdc0>
To: "liao"<sip:liao@192.168.1.66>
From: "liao"<sip:liao@192.168.1.66>;tag=a24bae12
Call-ID: 245d4d34381fcd21M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 2 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Proxy-Authorization: Digest username="liao",realm="",nonce="92d86b95392e41e6a15312144cd0b810",uri="sip:192.168.1.66",response="6ae91e5fc604b3099b347580e7c1523e",algorithm=MD5,opaque="073eb4c61699415ab613ca8f42af62d0"
User-Agent: X-Lite release 1002tx stamp 29712
Content-Length: 0




Transaction(id='z9hG4bK-d87543-2042ed4a2e59bf36-1--d87543-' method=REGISTER server=true) disposed.

Transaction(id='z9hG4bK-d87543-2042ed4a2e59bf36-1--d87543-' method=REGISTER server=true) Transaction timeout timer triggered.

Transaction(id='z9hG4bK-d87543-e647e2509f441064-1--d87543-' method=REGISTER server=true) got request 'REGISTER'.

Received (763 bytes): 192.168.1.66:5060 <- 192.168.1.66:21762
REGISTER sip:192.168.1.66 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:21762;branch=z9hG4bK-d87543-e647e2509f441064-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:liao@127.0.0.1:21762;rinstance=a261a0c192e1bdc0>
To: "liao"<sip:liao@192.168.1.66>
From: "liao"<sip:liao@192.168.1.66>;tag=a24bae12
Call-ID: 245d4d34381fcd21M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 2 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Proxy-Authorization: Digest username="liao",realm="",nonce="92d86b95392e41e6a15312144cd0b810",uri="sip:192.168.1.66",response="6ae91e5fc604b3099b347580e7c1523e",algorithm=MD5,opaque="073eb4c61699415ab613ca8f42af62d0"
User-Agent: X-Lite release 1002tx stamp 29712
Content-Length: 0




Transaction(id='z9hG4bK-d87543-e647e2509f441064-1--d87543-' method=REGISTER server=true) got request 'REGISTER'.

Sending (522 bytes): 192.168.1.66:5060 -> 192.168.1.66:21762
<begin>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 127.0.0.1:21762;branch=z9hG4bK-d87543-e647e2509f441064-1--d87543-;rport=21762;received=192.168.1.66
From: "liao" <sip:liao@192.168.1.66>;tag=a24bae12
To: "liao" <sip:liao@192.168.1.66>
Call-ID: 245d4d34381fcd21M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 2 REGISTER
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,PRACK
Proxy-Authenticate: digest realm="",nonce="0069b4a5990e451bb27dc30ee83c4974",opaque="073eb4c61699415ab613ca8f42af62d0"
Content-Length: 0

<end>


Transaction(id='z9hG4bK-d87543-2042ed4a2e59bf36-1--d87543-' method=REGISTER server=true) Transaction timeout timer triggered.

Sending (522 bytes): 192.168.1.66:5060 -> 192.168.1.66:21762
<begin>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 127.0.0.1:21762;branch=z9hG4bK-d87543-e647e2509f441064-1--d87543-;rport=21762;received=192.168.1.66
From: "liao" <sip:liao@192.168.1.66>;tag=a24bae12
To: "liao" <sip:liao@192.168.1.66>
Call-ID: 245d4d34381fcd21M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 2 REGISTER
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,PRACK
Proxy-Authenticate: digest realm="",nonce="0069b4a5990e451bb27dc30ee83c4974",opaque="073eb4c61699415ab613ca8f42af62d0"
Content-Length: 0

<end>


Received (763 bytes): 192.168.1.66:5060 <- 192.168.1.66:21762
REGISTER sip:192.168.1.66 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:21762;branch=z9hG4bK-d87543-e647e2509f441064-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:liao@127.0.0.1:21762;rinstance=a261a0c192e1bdc0>
To: "liao"<sip:liao@192.168.1.66>
From: "liao"<sip:liao@192.168.1.66>;tag=a24bae12
Call-ID: 245d4d34381fcd21M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 2 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Proxy-Authorization: Digest username="liao",realm="",nonce="92d86b95392e41e6a15312144cd0b810",uri="sip:192.168.1.66",response="6ae91e5fc604b3099b347580e7c1523e",algorithm=MD5,opaque="073eb4c61699415ab613ca8f42af62d0"
User-Agent: X-Lite release 1002tx stamp 29712
Content-Length: 0




Transaction(id='z9hG4bK-d87543-2042ed4a2e59bf36-1--d87543-' method=REGISTER server=true) Transaction timeout timer triggered.

Transaction(id='z9hG4bK-d87543-2042ed4a2e59bf36-1--d87543-' method=REGISTER server=true) Transaction timeout timer triggered.

Transaction(id='z9hG4bK-d87543-e647e2509f441064-1--d87543-' method=REGISTER server=true) got request 'REGISTER'.

Transaction(id='z9hG4bK-d87543-2042ed4a2e59bf36-1--d87543-' method=REGISTER server=true) Transaction timeout timer triggered.

Sending (522 bytes): 192.168.1.66:5060 -> 192.168.1.66:21762
<begin>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 127.0.0.1:21762;branch=z9hG4bK-d87543-e647e2509f441064-1--d87543-;rport=21762;received=192.168.1.66
From: "liao" <sip:liao@192.168.1.66>;tag=a24bae12
To: "liao" <sip:liao@192.168.1.66>
Call-ID: 245d4d34381fcd21M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 2 REGISTER
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,PRACK
Proxy-Authenticate: digest realm="",nonce="0069b4a5990e451bb27dc30ee83c4974",opaque="073eb4c61699415ab613ca8f42af62d0"
Content-Length: 0

<end>


Transaction(id='z9hG4bK-d87543-2042ed4a2e59bf36-1--d87543-' method=REGISTER server=true) Transaction timeout timer triggered.

Received (763 bytes): 192.168.1.66:5060 <- 192.168.1.66:21762
REGISTER sip:192.168.1.66 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:21762;branch=z9hG4bK-d87543-e647e2509f441064-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:liao@127.0.0.1:21762;rinstance=a261a0c192e1bdc0>
To: "liao"<sip:liao@192.168.1.66>
From: "liao"<sip:liao@192.168.1.66>;tag=a24bae12
Call-ID: 245d4d34381fcd21M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 2 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Proxy-Authorization: Digest username="liao",realm="",nonce="92d86b95392e41e6a15312144cd0b810",uri="sip:192.168.1.66",response="6ae91e5fc604b3099b347580e7c1523e",algorithm=MD5,opaque="073eb4c61699415ab613ca8f42af62d0"
User-Agent: X-Lite release 1002tx stamp 29712
Content-Length: 0




Transaction(id='z9hG4bK-d87543-2042ed4a2e59bf36-1--d87543-' method=REGISTER server=true) Transaction timeout timer triggered.

Transaction(id='z9hG4bK-d87543-e647e2509f441064-1--d87543-' method=REGISTER server=true) got request 'REGISTER'.

Received (763 bytes): 192.168.1.66:5060 <- 192.168.1.66:21762
REGISTER sip:192.168.1.66 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:21762;branch=z9hG4bK-d87543-e647e2509f441064-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:liao@127.0.0.1:21762;rinstance=a261a0c192e1bdc0>
To: "liao"<sip:liao@192.168.1.66>
From: "liao"<sip:liao@192.168.1.66>;tag=a24bae12
Call-ID: 245d4d34381fcd21M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 2 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Proxy-Authorization: Digest username="liao",realm="",nonce="92d86b95392e41e6a15312144cd0b810",uri="sip:192.168.1.66",response="6ae91e5fc604b3099b347580e7c1523e",algorithm=MD5,opaque="073eb4c61699415ab613ca8f42af62d0"
User-Agent: X-Lite release 1002tx stamp 29712
Content-Length: 0




Sending (522 bytes): 192.168.1.66:5060 -> 192.168.1.66:21762
<begin>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 127.0.0.1:21762;branch=z9hG4bK-d87543-e647e2509f441064-1--d87543-;rport=21762;received=192.168.1.66
From: "liao" <sip:liao@192.168.1.66>;tag=a24bae12
To: "liao" <sip:liao@192.168.1.66>
Call-ID: 245d4d34381fcd21M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 2 REGISTER
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,PRACK
Proxy-Authenticate: digest realm="",nonce="0069b4a5990e451bb27dc30ee83c4974",opaque="073eb4c61699415ab613ca8f42af62d0"
Content-Length: 0

<end>


Received (543 bytes): 192.168.1.66:5060 <- 192.168.1.66:1692
REGISTER sip:192.168.1.66 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:1692;branch=z9hG4bK-d87543-9305706544578679-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:liao@127.0.0.1:1692;rinstance=6acdfec3fe9a79bd>
To: "liao"<sip:liao@192.168.1.66>
From: "liao"<sip:liao@192.168.1.66>;tag=9e2abc10
Call-ID: a80c753b00585e70M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 1 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1002tx stamp 29712
Content-Length: 0




Transaction(id='z9hG4bK-d87543-9305706544578679-1--d87543-' method=REGISTER server=true) created.

Transaction(id='z9hG4bK-d87543-9305706544578679-1--d87543-' method=REGISTER server=true) Transaction timeout Timer started, will triger after 90000.

Transaction(id='z9hG4bK-d87543-9305706544578679-1--d87543-' method=REGISTER server=true) got response response='407'.

Sending (520 bytes): 192.168.1.66:5060 -> 192.168.1.66:1692
<begin>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 127.0.0.1:1692;branch=z9hG4bK-d87543-9305706544578679-1--d87543-;rport=1692;received=192.168.1.66
From: "liao" <sip:liao@192.168.1.66>;tag=9e2abc10
To: "liao" <sip:liao@192.168.1.66>
Call-ID: a80c753b00585e70M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 1 REGISTER
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,PRACK
Proxy-Authenticate: digest realm="",nonce="6fa7387bd8ae4375b566b4754c2c6e0f",opaque="71cd396bda164055a5b009f7f3f0bc1b"
Content-Length: 0

<end>


Transaction(id='z9hG4bK-d87543-9305706544578679-1--d87543-' method=REGISTER server=true) Timer J(wait time for retransmissions of non-INVITE requests) started, will triger after 32000.

Received (761 bytes): 192.168.1.66:5060 <- 192.168.1.66:1692
REGISTER sip:192.168.1.66 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:1692;branch=z9hG4bK-d87543-7d14c0656e119c53-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:liao@127.0.0.1:1692;rinstance=6acdfec3fe9a79bd>
To: "liao"<sip:liao@192.168.1.66>
From: "liao"<sip:liao@192.168.1.66>;tag=9e2abc10
Call-ID: a80c753b00585e70M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 2 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Proxy-Authorization: Digest username="liao",realm="",nonce="6fa7387bd8ae4375b566b4754c2c6e0f",uri="sip:192.168.1.66",response="587f8397977085a80ed91a931af7a401",algorithm=MD5,opaque="71cd396bda164055a5b009f7f3f0bc1b"
User-Agent: X-Lite release 1002tx stamp 29712
Content-Length: 0




Transaction(id='z9hG4bK-d87543-7d14c0656e119c53-1--d87543-' method=REGISTER server=true) created.

Transaction(id='z9hG4bK-d87543-7d14c0656e119c53-1--d87543-' method=REGISTER server=true) Transaction timeout Timer started, will triger after 90000.

Transaction(id='z9hG4bK-d87543-7d14c0656e119c53-1--d87543-' method=REGISTER server=true) got response response='407'.

Sending (520 bytes): 192.168.1.66:5060 -> 192.168.1.66:1692
<begin>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 127.0.0.1:1692;branch=z9hG4bK-d87543-7d14c0656e119c53-1--d87543-;rport=1692;received=192.168.1.66
From: "liao" <sip:liao@192.168.1.66>;tag=9e2abc10
To: "liao" <sip:liao@192.168.1.66>
Call-ID: a80c753b00585e70M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 2 REGISTER
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,PRACK
Proxy-Authenticate: digest realm="",nonce="b8c56897ee36487383e6e7278514ed24",opaque="71cd396bda164055a5b009f7f3f0bc1b"
Content-Length: 0

<end>


Transaction(id='z9hG4bK-d87543-7d14c0656e119c53-1--d87543-' method=REGISTER server=true) Timer J(wait time for retransmissions of non-INVITE requests) started, will triger after 32000.

Received (761 bytes): 192.168.1.66:5060 <- 192.168.1.66:1692
REGISTER sip:192.168.1.66 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:1692;branch=z9hG4bK-d87543-b8206929e878c32d-1--d87543-;rport
Max-Forwards: 70
Contact: <sip:liao@127.0.0.1:1692;rinstance=6acdfec3fe9a79bd>
To: "liao"<sip:liao@192.168.1.66>
From: "liao"<sip:liao@192.168.1.66>;tag=9e2abc10
Call-ID: a80c753b00585e70M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 3 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Proxy-Authorization: Digest username="liao",realm="",nonce="b8c56897ee36487383e6e7278514ed24",uri="sip:192.168.1.66",response="d19e849ee9c0332b51378557804ab832",algorithm=MD5,opaque="71cd396bda164055a5b009f7f3f0bc1b"
User-Agent: X-Lite release 1002tx stamp 29712
Content-Length: 0




Transaction(id='z9hG4bK-d87543-b8206929e878c32d-1--d87543-' method=REGISTER server=true) created.

Transaction(id='z9hG4bK-d87543-b8206929e878c32d-1--d87543-' method=REGISTER server=true) Transaction timeout Timer started, will triger after 90000.

Transaction(id='z9hG4bK-d87543-b8206929e878c32d-1--d87543-' method=REGISTER server=true) got response response='407'.

Sending (520 bytes): 192.168.1.66:5060 -> 192.168.1.66:1692
<begin>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 127.0.0.1:1692;branch=z9hG4bK-d87543-b8206929e878c32d-1--d87543-;rport=1692;received=192.168.1.66
From: "liao" <sip:liao@192.168.1.66>;tag=9e2abc10
To: "liao" <sip:liao@192.168.1.66>
Call-ID: a80c753b00585e70M2ZhNzY4ODkyMTlkZjc3NTA5YjM0NzYzMWNiZjQ3NmY.
CSeq: 3 REGISTER
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,PRACK
Proxy-Authenticate: digest realm="",nonce="742f8be2123e4a69859c2c964f211ebd",opaque="71cd396bda164055a5b009f7f3f0bc1b"
Content-Length: 0

<end>


Transaction(id='z9hG4bK-d87543-b8206929e878c32d-1--d87543-' method=REGISTER server=true) Timer J(wait time for retransmissions of non-INVITE requests) started, will triger after 32000.

Could you help me out?

Linda
GeneralRe: Does it work without setting domain Pin
Ivar Lumi12-Jun-09 3:55
Ivar Lumi12-Jun-09 3:55 
Generalx-Lite connect sip server error Pin
liwei198309163-Jun-09 16:25
liwei198309163-Jun-09 16:25 
GeneralRe: x-Lite connect sip server error Pin
Ivar Lumi3-Jun-09 19:30
Ivar Lumi3-Jun-09 19:30 
GeneralRe: x-Lite connect sip server error Pin
liwei198309163-Jun-09 21:01
liwei198309163-Jun-09 21:01 
GeneralProblem freeing the channel Pin
NIZAR200519831-Jun-09 5:28
NIZAR200519831-Jun-09 5:28 
GeneralRe: Problem freeing the channel Pin
Ivar Lumi1-Jun-09 7:23
Ivar Lumi1-Jun-09 7:23 
GeneralQuestions Pin
miki23428-Apr-09 21:50
miki23428-Apr-09 21:50 
GeneralRe: Questions Pin
Ivar Lumi28-Apr-09 23:14
Ivar Lumi28-Apr-09 23:14 
GeneralRe: Questions Pin
miki23428-Apr-09 23:16
miki23428-Apr-09 23:16 
GeneralSipx call traffic Pin
Andreadakis Manolis24-Apr-09 1:50
Andreadakis Manolis24-Apr-09 1:50 
GeneralRe: Sipx call traffic Pin
Ivar Lumi24-Apr-09 20:17
Ivar Lumi24-Apr-09 20:17 
GeneralSend DTMF Pin
Member 396896816-Apr-09 0:48
Member 396896816-Apr-09 0:48 
GeneralRe: Send DTMF Pin
Ivar Lumi16-Apr-09 5:52
Ivar Lumi16-Apr-09 5:52 
GeneralImplement ivr in Sip Server Pin
codiebank7-Apr-09 0:18
codiebank7-Apr-09 0:18 
GeneralRe: Implement ivr in Sip Server Pin
Ivar Lumi7-Apr-09 0:27
Ivar Lumi7-Apr-09 0:27 
GeneralError with client connection Pin
thewolfeman6-Apr-09 17:58
thewolfeman6-Apr-09 17:58 
GeneralRe: Error with client connection Pin
Ivar Lumi6-Apr-09 19:37
Ivar Lumi6-Apr-09 19:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.