Changeset 792:c965cfe8ceb5 in mediastreamer2


Ignore:
Timestamp:
Dec 11, 2009 4:20:20 PM (4 years ago)
Author:
smorlat <smorlat@…>
Branch:
default
Message:

move OUT_INVITE state at the end of linphone_core_invite, in case of success.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@780 3f6dc0c8-ddfe-455d-9043-3cd528dc4637

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linphone/coreapi/linphonecore.c

    r791 r792  
    14121412        } 
    14131413 
    1414         gstate_new_state(lc, GSTATE_CALL_OUT_INVITE, url); 
    14151414        linphone_core_get_default_proxy(lc,&proxy); 
    14161415        if (!linphone_core_interpret_url(lc,url,&real_parsed_url,&route)){ 
    1417                 /* bad url */ 
    1418                 gstate_new_state(lc, GSTATE_CALL_ERROR, NULL); 
    14191416                return -1; 
    14201417        } 
     
    14681465        lc->call->cid=err; 
    14691466        eXosip_unlock(); 
     1467         
    14701468        if (err<0){ 
    14711469                ms_warning("Could not initiate call."); 
     
    14741472                lc->call=NULL; 
    14751473                linphone_core_stop_media_streams(lc); 
    1476         } 
     1474        }else gstate_new_state(lc, GSTATE_CALL_OUT_INVITE, url); 
    14771475         
    14781476        goto end; 
    14791477        end: 
    14801478                if (real_url!=NULL) ms_free(real_url); 
    1481                 if (err<0) 
    1482                         gstate_new_state(lc, GSTATE_CALL_ERROR, NULL); 
    14831479                if (route!=NULL) ms_free(route); 
    14841480        return (err<0) ? -1 : 0; 
Note: See TracChangeset for help on using the changeset viewer.