Skip to content

Instantly share code, notes, and snippets.

@monossido
Created January 31, 2012 12:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save monossido/1710331 to your computer and use it in GitHub Desktop.
Save monossido/1710331 to your computer and use it in GitHub Desktop.
SIP-to-XMPP with Android Gtalk client (jingle capable no)
--- 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