mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 13:08:08 +00:00
fix crash when deregestering.
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@207 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
a37f3c9f06
commit
24f0f9d79d
2 changed files with 6 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include "mediastreamer2/mediastream.h"
|
||||
#include <eXosip2/eXosip.h>
|
||||
#include <osipparser2/osip_message.h>
|
||||
#include <osipparser2/osip_parser.h>
|
||||
|
||||
static int linphone_answer_sdp(LinphoneCore *lc, eXosip_event_t *ev, sdp_message_t *sdp);
|
||||
|
||||
|
|
@ -898,6 +899,7 @@ void linphone_registration_success(LinphoneCore *lc,eXosip_event_t *ev){
|
|||
osip_uri_t *requri=osip_message_get_uri(ev->request);
|
||||
char *msg;
|
||||
char *ru;
|
||||
osip_header_t *h=NULL;
|
||||
osip_uri_to_str(requri,&ru);
|
||||
msg=ms_strdup_printf(_("Registration on %s successful."),ru);
|
||||
lc->vtable.display_status(lc,msg);
|
||||
|
|
@ -908,7 +910,9 @@ void linphone_registration_success(LinphoneCore *lc,eXosip_event_t *ev){
|
|||
cfg->auth_pending=FALSE;
|
||||
cfg->registered=TRUE;
|
||||
gstate_new_state(lc, GSTATE_REG_OK, NULL);
|
||||
linphone_proxy_config_register_again_with_updated_contact(cfg,ev->request,ev->response);
|
||||
osip_message_get_expires(ev->request,0,&h);
|
||||
if (h!=NULL && atoi(h->hvalue)!=0)
|
||||
linphone_proxy_config_register_again_with_updated_contact(cfg,ev->request,ev->response);
|
||||
}
|
||||
|
||||
static bool_t comes_from_local_if(osip_message_t *msg){
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ void linphone_proxy_config_register_again_with_updated_contact(LinphoneProxyConf
|
|||
return;
|
||||
}
|
||||
eXosip_lock();
|
||||
msg=NULL;
|
||||
eXosip_register_build_register(obj->rid,obj->expires,&msg);
|
||||
osip_message_get_contact(msg,0,&ctt);
|
||||
if (ctt->url->host!=NULL){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue