"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/osip2/ict.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).

ict.c  (libosip2-5.0.0):ict.c  (libosip2-5.1.0)
skipping to change at line 128 skipping to change at line 128
/* 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 (invite->req_uri->port != NULL) if (invite->req_uri->port != NULL)
port = osip_atoi (invite->req_uri->port); port = osip_atoi (invite->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(invite->req_uri, "x-obr", &obr_param); osip_uri_uparam_get_byname (invite->req_uri, "x-obr", &obr_param);
osip_uri_uparam_get_byname(invite->req_uri, "x-obp", &obp_param); osip_uri_uparam_get_byname (invite->req_uri, "x-obp", &obp_param);
osip_uri_uparam_get_byname (invite->req_uri, "maddr", &maddr_param); osip_uri_uparam_get_byname (invite->req_uri, "maddr", &maddr_param);
if (maddr_param != NULL && maddr_param->gvalue != NULL) if (maddr_param != NULL && maddr_param->gvalue != NULL)
osip_ict_set_destination ((*ict), osip_strdup (maddr_param->gvalue), port) ; osip_ict_set_destination ((*ict), osip_strdup (maddr_param->gvalue), port) ;
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_ict_set_destination ((*ict), osip_strdup (obr_param->gvalue), osip_at oi(obp_param->gvalue)); osip_ict_set_destination ((*ict), osip_strdup (obr_param->gvalue), osip_at oi (obp_param->gvalue));
else else
osip_ict_set_destination ((*ict), osip_strdup (invite->req_uri->host), por t); osip_ict_set_destination ((*ict), osip_strdup (invite->req_uri->host), por t);
} }
(*ict)->timer_b_length = 64 * DEFAULT_T1; (*ict)->timer_b_length = 64 * DEFAULT_T1;
osip_gettimeofday (&(*ict)->timer_b_start, NULL); osip_gettimeofday (&(*ict)->timer_b_start, NULL);
add_gettimeofday (&(*ict)->timer_b_start, (*ict)->timer_b_length); add_gettimeofday (&(*ict)->timer_b_start, (*ict)->timer_b_length);
/* Oups! A bug! */ /* Oups! A bug! */
/* (*ict)->port = 5060; */ /* (*ict)->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)