[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_core.C,1.26,1.27
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_core.C,1.26,1.27 |
Date: |
Fri, 07 Mar 2003 08:38:55 -0500 |
Update of /cvsroot/ayttm/ayttm/modules/msn2/libmsn2
In directory subversions:/tmp/cvs-serv9844/modules/msn2/libmsn2
Modified Files:
msn_core.C
Log Message:
msn invitations stuff
Index: msn_core.C
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/msn2/libmsn2/msn_core.C,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- msn_core.C 5 Mar 2003 04:42:22 -0000 1.26
+++ msn_core.C 7 Mar 2003 13:38:19 -0000 1.27
@@ -1001,7 +1001,8 @@
char * tmp1=NULL;
char * tmp2=NULL;
-
+ int recognized = 0;
+
appname=msn_find_in_mime(body, "Application-Name");
invitation * invg=NULL;
@@ -1019,18 +1020,25 @@
inv->filesize=atol(tmp2);
ext_filetrans_invite(conn, from, friendlyname, inv);
+ } else if ((tmp1=msn_find_in_mime(body, "Session-Protocol")) != NULL
+ && (tmp2=msn_find_in_mime(body, "Context-Data")) != NULL) {
+ snprintf(buf, 1024, "%s sent a yet-unsupported Voice Invitation.",from);
+ ext_show_error(conn, buf);
+ recognized=1;
}
+
if(tmp1!=NULL) { delete tmp1; }
if(tmp2!=NULL) { delete tmp2; }
delete appname;
- if(invg==NULL)
+ if(invg==NULL && !recognized)
{
ext_show_error(conn, "Unknown invitation type!");
}
-
- msn_add_to_llist(conn->invitations_in, invg);
+ else {
+ msn_add_to_llist(conn->invitations_in, invg);
+ }
}
void msn_recv_file(invitation_ftp * inv, char * msg_body)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_core.C,1.26,1.27,
Colin Leroy <address@hidden> <=
- Prev by Date:
[Ayttm-commits] CVS: ayttm/src util.c,1.51,1.52
- Next by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.320,1.321 configure.in,1.315,1.316
- Previous by thread:
[Ayttm-commits] CVS: ayttm/src util.c,1.51,1.52
- Next by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.320,1.321 configure.in,1.315,1.316
- Index(es):