~ubuntu-branches/ubuntu/natty/linphone/natty

« back to all changes in this revision

Viewing changes to coreapi/exevents.c

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram, Kilian Krause, Samuel Mimram
  • Date: 2007-12-05 11:24:25 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20071205112425-odfikcvg5j313rnl
Tags: 2.0.1-1
[ Kilian Krause ]
* New upstream release.
* Conflict with libortp5-dev to fix conflicting file
  (/usr/include/ortp/event.h). (Closes: #454281)

[ Samuel Mimram ]
* liblinphone2-dev conflicts with liblinphone1-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
805
805
        gstate_new_state(lc, GSTATE_REG_OK, NULL);
806
806
}
807
807
 
 
808
static void linphone_other_request(LinphoneCore *lc, eXosip_event_t *ev){
 
809
        if (ev->request==NULL) return;
 
810
        if (strcmp(ev->request->sip_method,"MESSAGE")==0){
 
811
                linphone_core_text_received(lc,ev);
 
812
                eXosip_message_send_answer(ev->tid,200,NULL);
 
813
        }else if (strcmp(ev->request->sip_method,"OPTIONS")==0){
 
814
                eXosip_options_send_answer(ev->tid,200,NULL);
 
815
        }
 
816
        else {
 
817
                ms_message("Unsupported request received.");
 
818
                /*answer with a 501 Not implemented*/
 
819
                eXosip_message_send_answer(ev->tid,501,NULL);
 
820
        }
 
821
}
 
822
 
808
823
void linphone_core_process_event(LinphoneCore *lc,eXosip_event_t *ev)
809
824
{
810
825
        switch(ev->type){
890
905
                        linphone_authentication_ok(lc,ev);
891
906
                        break;
892
907
                case EXOSIP_MESSAGE_NEW:
893
 
                        linphone_core_text_received(lc,ev);
 
908
                        linphone_other_request(lc,ev);
894
909
                        break;
895
910
                default:
896
911
                        break;