/** * Process the pushed message. */ void process_pushed(fetion_account *ac, const gchar *sipmsg) { gint type; type = fetion_sip_get_msg_type(sipmsg); switch (type) { case SIP_NOTIFICATION : process_notify_cb(ac, sipmsg); break; case SIP_MESSAGE: process_message_cb(ac, sipmsg); break; case SIP_INVITATION: process_invite_cb(ac, sipmsg); break; case SIP_INFO: //process_info_cb(ac, sipmsg); break; case SIP_SIPC_4_0: process_sipc_cb(ac, sipmsg); break; default: hybrid_debug_info("fetion", "recevie unknown msg:\n%s", sipmsg); break; } }
static void process_push_cb(fetion_account *ses, const gchar *sipmsg) { gint type; type = fetion_sip_get_type(sipmsg); switch(type){ case SIP_NOTIFICATION : process_notify_cb(ses, sipmsg); break; case SIP_MESSAGE: process_message_cb(ses, sipmsg); break; case SIP_INVITATION: process_invite_cb(ses, sipmsg); break; case SIP_INCOMING : process_info_cb(ses, sipmsg); break; case SIP_SIPC_4_0: process_sipc_cb(ses, sipmsg); break; default: break; //printf("%s\n" , pos->message); } }