[asterisk-commits] trunk r32040 - /trunk/res/res_jabber.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Jun 4 09:56:17 MST 2006
Author: mogorman
Date: Sun Jun 4 11:56:16 2006
New Revision: 32040
URL: http://svn.digium.com/view/asterisk?rev=32040&view=rev
Log:
solves some issues with jabberstatus app
Modified:
trunk/res/res_jabber.c
Modified: trunk/res/res_jabber.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_jabber.c?rev=32040&r1=32039&r2=32040&view=diff
==============================================================================
--- trunk/res/res_jabber.c (original)
+++ trunk/res/res_jabber.c Sun Jun 4 11:56:16 2006
@@ -325,7 +325,11 @@
return -1;
}
- resource = strsep(&screenname, "/");
+ if(!strchr(screename, '/')) {
+ resource = NULL;
+ } else {
+ resource = strsep(&screenname, "/");
+ }
client = ast_aji_get_client(sender);
if (!client) {
@@ -347,16 +351,12 @@
while (r) {
if (!strcasecmp(r->resource, resource)) {
stat = r->status;
- break;
}
r = r->next;
}
- if(stat != 7) break;
- ast_log(LOG_WARNING, "Resource not found %s\n", resource);
- break;
+ if (stat == 7) ast_log(LOG_NOTICE, "Resource not found %s\n", resource);
} else {
stat = r->status;
- break;
}
}
}
More information about the asterisk-commits
mailing list