-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added in a couple new message types to handle disconnect notices as w…
…ell as authentication requests. added in code to handle the message content types more efficiently using switch case.
- Loading branch information
roger.castaldo@gmail.com
committed
Mar 24, 2013
1 parent
2bdf53a
commit fcd5df0
Showing
6 changed files
with
164 additions
and
102 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Org.Reddragonit.FreeSwitchSockets.Messages | ||
{ | ||
public class AuthenticationRequestMessage : ASocketMessage | ||
{ | ||
public AuthenticationRequestMessage(string message) | ||
: base(message) { } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Org.Reddragonit.FreeSwitchSockets.Messages | ||
{ | ||
public class DisconnectNoticeMessage : ASocketMessage | ||
{ | ||
public DisconnectNoticeMessage(string message) | ||
: base(message) { } | ||
|
||
public int LingerTime | ||
{ | ||
get { return int.Parse(this["Linger-Time"]); } | ||
} | ||
|
||
public string ChannelName | ||
{ | ||
get { return this["Channel-Name"]; } | ||
} | ||
|
||
public string SessionUUID | ||
{ | ||
get { return this["Controlled-Session-UUID"]; } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.