"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/osip2/nict.c" between
libosip2-5.0.0.tar.gz and libosip2-5.1.0.tar.gz

About: The GNU oSIP library is an implementation of SIP (RFC3261).

nict.c  (libosip2-5.0.0):nict.c  (libosip2-5.1.0)
skipping to change at line 118 skipping to change at line 118
/* search for maddr parameter */ /* search for maddr parameter */
osip_uri_param_t *maddr_param = NULL; osip_uri_param_t *maddr_param = NULL;
osip_uri_param_t *obr_param = NULL; osip_uri_param_t *obr_param = NULL;
osip_uri_param_t *obp_param = NULL; osip_uri_param_t *obp_param = NULL;
port = 5060; port = 5060;
if (request->req_uri->port != NULL) if (request->req_uri->port != NULL)
port = osip_atoi (request->req_uri->port); port = osip_atoi (request->req_uri->port);
/* if ob was used in Contact, then exosip adds "x-obr" and "x-obp", thus, wh en /* if ob was used in Contact, then exosip adds "x-obr" and "x-obp", thus, wh en
processing request, the ip/port destination are re-used here */ processing request, the ip/port destination are re-used here */
osip_uri_uparam_get_byname(request->req_uri, "x-obr", &obr_param); osip_uri_uparam_get_byname (request->req_uri, "x-obr", &obr_param);
osip_uri_uparam_get_byname(request->req_uri, "x-obp", &obp_param); osip_uri_uparam_get_byname (request->req_uri, "x-obp", &obp_param);
osip_uri_uparam_get_byname (request->req_uri, "maddr", &maddr_param); osip_uri_uparam_get_byname (request->req_uri, "maddr", &maddr_param);
if (maddr_param != NULL && maddr_param->gvalue != NULL) if (maddr_param != NULL && maddr_param->gvalue != NULL)
osip_nict_set_destination ((*nict), osip_strdup (maddr_param->gvalue), por t); osip_nict_set_destination ((*nict), osip_strdup (maddr_param->gvalue), por t);
else if (obr_param != NULL && obr_param->gvalue != NULL && obp_param != NULL && obp_param->gvalue != NULL) else if (obr_param != NULL && obr_param->gvalue != NULL && obp_param != NULL && obp_param->gvalue != NULL)
osip_nict_set_destination ((*nict), osip_strdup (obr_param->gvalue), osip_ atoi(obp_param->gvalue)); osip_nict_set_destination ((*nict), osip_strdup (obr_param->gvalue), osip_ atoi (obp_param->gvalue));
else else
osip_nict_set_destination ((*nict), osip_strdup (request->req_uri->host), port); osip_nict_set_destination ((*nict), osip_strdup (request->req_uri->host), port);
} }
(*nict)->timer_f_length = 64 * DEFAULT_T1; (*nict)->timer_f_length = 64 * DEFAULT_T1;
osip_gettimeofday (&(*nict)->timer_f_start, NULL); osip_gettimeofday (&(*nict)->timer_f_start, NULL);
add_gettimeofday (&(*nict)->timer_f_start, (*nict)->timer_f_length); add_gettimeofday (&(*nict)->timer_f_start, (*nict)->timer_f_length);
/* Oups! a Bug! */ /* Oups! a Bug! */
/* (*nict)->port = 5060; */ /* (*nict)->port = 5060; */
 End of changes. 2 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)