"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/osip2/nict_fsm.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_fsm.c  (libosip2-5.0.0):nict_fsm.c  (libosip2-5.1.0)
skipping to change at line 148 skipping to change at line 148
__osip_message_callback (OSIP_NICT_UNKNOWN_REQUEST_SENT, nict, nict->orig_ request); __osip_message_callback (OSIP_NICT_UNKNOWN_REQUEST_SENT, nict, nict->orig_ request);
#ifndef USE_BLOCKINGSOCKET #ifndef USE_BLOCKINGSOCKET
/* /*
stop timer E in reliable transport - non blocking socket: stop timer E in reliable transport - non blocking socket:
the message was just sent the message was just sent
*/ */
{ {
osip_via_t *via; osip_via_t *via;
char *proto; char *proto;
int k; int k;
k = osip_message_get_via (nict->orig_request, 0, &via); /* get top via * / k = osip_message_get_via (nict->orig_request, 0, &via); /* get top via * /
if (k < 0) { if (k < 0) {
nict_handle_transport_error (nict, -1); nict_handle_transport_error (nict, -1);
return; return;
} }
proto = via_get_protocol (via); proto = via_get_protocol (via);
if (proto == NULL) { if (proto == NULL) {
nict_handle_transport_error (nict, -1); nict_handle_transport_error (nict, -1);
return; return;
} }
if (i == 0) { /* but message was really sent */ if (i == 0) { /* but message was really sent */
if (osip_strcasecmp (proto, "TCP") != 0 && osip_strcasecmp (proto, "TLS" ) != 0 && osip_strcasecmp (proto, "SCTP") != 0) { if (osip_strcasecmp (proto, "TCP") != 0 && osip_strcasecmp (proto, "TLS" ) != 0 && osip_strcasecmp (proto, "SCTP") != 0) {
} }
else { /* reliable protocol is used: */ else { /* reliable protocol is used: */
nict->nict_context->timer_e_length = -1; /* E is not ACTIVE */ nict->nict_context->timer_e_length = -1; /* E is not ACTIVE */
nict->nict_context->timer_e_start.tv_sec = -1; nict->nict_context->timer_e_start.tv_sec = -1;
} }
} else { }
else {
if (osip_strcasecmp (proto, "TCP") != 0 && osip_strcasecmp (proto, "TLS" ) != 0 && osip_strcasecmp (proto, "SCTP") != 0) { if (osip_strcasecmp (proto, "TCP") != 0 && osip_strcasecmp (proto, "TLS" ) != 0 && osip_strcasecmp (proto, "SCTP") != 0) {
} }
else { /* reliable protocol is used: */ else { /* reliable protocol is used: */
nict->nict_context->timer_e_length = DEFAULT_T1_TCP_PROGRESS; nict->nict_context->timer_e_length = DEFAULT_T1_TCP_PROGRESS;
} }
} }
} }
#endif #endif
if (nict->nict_context->timer_e_length > 0) { if (nict->nict_context->timer_e_length > 0) {
osip_gettimeofday (&nict->nict_context->timer_e_start, NULL); osip_gettimeofday (&nict->nict_context->timer_e_start, NULL);
add_gettimeofday (&nict->nict_context->timer_e_start, nict->nict_context-> timer_e_length); add_gettimeofday (&nict->nict_context->timer_e_start, nict->nict_context-> timer_e_length);
} }
__osip_transaction_set_state (nict, NICT_TRYING); __osip_transaction_set_state (nict, NICT_TRYING);
 End of changes. 5 change blocks. 
5 lines changed or deleted 7 lines changed or added

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