Idefisk
Tools
Tutorials
Reviews
VoIP Providers
Archives
AsteriskGuru Archives
Mailing List Archives
FAQ
Search
Memberlist
Usergroups
Register
Profile
Log in to check your private messages
Log in
[svn-commits] seanbright: branch 1.4 r198370 - /branches/1.4
AsteriskGuru Archives Forum Index
->
Asterisk-CVS
View previous topic
::
View next topic
Author
Message
svn-commits at lists.digi
Guest
Posted: Sat May 30, 2009 6:41 pm
Post subject: [svn-commits] seanbright: branch 1.4 r198370 - /branches/1.4
Author: seanbright
Date: Sat May 30 14:36:20 2009
New Revision: 198370
URL:
http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=198370
Log:
Properly terminate AMI JabberSend response messages.
The response message (either Error or Success) needs an extra trailing \r\n
after the fields to inform the client that the message is complete.
(closes issue #14876)
Reported by: srt
Patches:
05302009_1.4_res_jabber.c.diff uploaded by seanbright (license 71)
asterisk_14876.patch uploaded by srt (license 378)
trunk-14876-2.diff uploaded by phsultan (license 73)
Modified:
branches/1.4/res/res_jabber.c
Modified: branches/1.4/res/res_jabber.c
URL:
http://svn.asterisk.org/svn-view/asterisk/branches/1.4/res/res_jabber.c?view=diff&rev=198370&r1=198369&r2=198370
==============================================================================
--- branches/1.4/res/res_jabber.c (original)
+++ branches/1.4/res/res_jabber.c Sat May 30 14:36:20 2009
@@ -2423,16 +2423,16 @@
astman_send_error(s, m, "Could not find Sender");
return 0;
}
- if (strchr(screenname, '@') && message){
- ast_aji_send(client, screenname, message);
- if (!ast_strlen_zero(id))
- astman_append(s, "ActionID: %s\r\n",id);
+ if (strchr(screenname, '@') && message) {
+ ast_aji_send(client, screenname, message);
astman_append(s, "Response: Success\r\n");
- return 0;
- }
- if (!ast_strlen_zero(id))
- astman_append(s, "ActionID: %s\r\n",id);
- astman_append(s, "Response: Failure\r\n");
+ } else {
+ astman_append(s, "Response: Failure\r\n");
+ }
+ if (!ast_strlen_zero(id)) {
+ astman_append(s, "ActionID: %s\r\n", id);
+ }
+ astman_append(s, "\r\n");
return 0;
}
_______________________________________________
--Bandwidth and Colocation Provided by
http://www.api-digital.com--
svn-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/svn-commits
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
AsteriskGuru Archives Forum Index
->
Asterisk-CVS
All times are GMT
Page
1
of
1
Jump to:
Select a forum
Asterisk Mailing Lists
----------------
Asterisk-Users
Asterisk-Dev
Asterisk-CVS
Asterisk-Biz
Asterisk-Doc
Asterisk-BSD
Asterisk-Announce
Asterisk Call Centers
Asterisk-Video
Asterisk-Speech-Rec
Bristuff-Users
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
edit your posts in this forum
You
cannot
delete your posts in this forum
You
cannot
vote in polls in this forum
Powered by
phpBB
© 2001, 2005 phpBB Group