[Freeswitch-svn] [commit] r8536 - freeswitch/trunk/scripts/contrib/verifier/EventSocket/trunk/FreeSwitchEventSocket/Commands
Freeswitch SVN
verifier at freeswitch.org
Fri May 23 03:05:18 EDT 2008
Author: verifier
Date: Fri May 23 03:05:18 2008
New Revision: 8536
Modified:
freeswitch/trunk/scripts/contrib/verifier/EventSocket/trunk/FreeSwitchEventSocket/Commands/Originate.cs
Log:
Reply was parsed incorrectly.
Modified: freeswitch/trunk/scripts/contrib/verifier/EventSocket/trunk/FreeSwitchEventSocket/Commands/Originate.cs
==============================================================================
--- freeswitch/trunk/scripts/contrib/verifier/EventSocket/trunk/FreeSwitchEventSocket/Commands/Originate.cs (original)
+++ freeswitch/trunk/scripts/contrib/verifier/EventSocket/trunk/FreeSwitchEventSocket/Commands/Originate.cs Fri May 23 03:05:18 2008
@@ -89,9 +89,8 @@
public override CommandReply CreateReply(string dataToParse)
{
- dataToParse = dataToParse.Replace(" ", string.Empty);
- string[] nameValue = dataToParse.Split(':');
- if (nameValue[0].ToLower() == "success")
+ string[] nameValue = dataToParse.Split(' ');
+ if (nameValue[0].Length > 0 && nameValue[0][0] == '+')
return new OriginateReply(true, nameValue[1]);
else
{
More information about the Freeswitch-svn
mailing list