Created
January 31, 2012 12:48
-
-
Save monossido/1710331 to your computer and use it in GitHub Desktop.
SIP-to-XMPP with Android Gtalk client (jingle capable no)
This file contains hidden or 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
--- chan_gtalk.c 2011-11-23 18:14:41.000000000 +0100 | |
+++ chan_gtalkmio.c 2012-01-31 13:31:59.592839682 +0100 | |
@@ -1020,7 +1020,10 @@ static struct gtalk_pvt *gtalk_alloc(str | |
} | |
while (resources) { | |
- if (resources->cap->jingle) { | |
+ int n = strncmp(resources->resource, "android_talk", 11); | |
+ if (resources->cap->jingle || n==0 ) { | |
+ if(n==0) | |
+ ast_log(LOG_WARNING, "Probably I'm forcing to call an Android (not jingle capable) client"); | |
break; | |
} | |
resources = resources->next; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment