Reflect Jingle DTMF specification changes
authorPhilippe Sultan <philippe.sultan@gmail.com>
Thu, 13 Sep 2007 14:00:56 +0000 (14:00 +0000)
committerPhilippe Sultan <philippe.sultan@gmail.com>
Thu, 13 Sep 2007 14:00:56 +0000 (14:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82312 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_jingle.c

index 9848b96..9d8c817 100644 (file)
@@ -1221,7 +1221,7 @@ static int jingle_digit(struct ast_channel *ast, char digit, unsigned int durati
        iks_insert_attrib(iq, "id", client->connection->mid);
        ast_aji_increment_mid(client->connection->mid);
        iks_insert_attrib(jingle, "xmlns", "http://jabber.org/protocol/jingle");
-       iks_insert_attrib(jingle, "action", "content-info");
+       iks_insert_attrib(jingle, "action", "session-info");
        iks_insert_attrib(jingle, "initiator", p->initiator ? client->connection->jid->full : p->from);
        iks_insert_attrib(jingle, "sid", p->sid);
        iks_insert_attrib(dtmf, "xmlns", "http://jabber.org/protocol/jingle/info/dtmf");
@@ -1442,7 +1442,7 @@ static int jingle_parser(void *data, ikspak *pak)
                ast_debug(3, "Candidate Added!\n");
        } else if (iks_find_with_attrib(pak->x, GOOGLE_NODE, "type", GOOGLE_ACCEPT)) {
                jingle_is_answered(client, pak);
-       } else if (iks_find_with_attrib(pak->x, GOOGLE_NODE, "type", "content-info")) {
+       } else if (iks_find_with_attrib(pak->x, GOOGLE_NODE, "type", "session-info")) {
                jingle_handle_dtmf(client, pak);
        } else if (iks_find_with_attrib(pak->x, GOOGLE_NODE, "type", "terminate")) {
                jingle_hangup_farend(client, pak);