"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/tm/t_msgbuilder.c" between
opensips-3.2.0-rc1.tar.gz and opensips-3.2.0.tar.gz

About: OpenSIPS is a multi-functional, multi-purpose signaling SIP Server (Session Initiation Protocol). It can act as SIP Router/Switch, SIP Registrar, Application Server, Redirect Server, Load Balancer / Dispatcher, Back-to-Back User Agent, Presence Server, IM Server, Session Border Controller, SIP Front-End, NAT traversal Server, IP Gateway (SMS, XMPP) and others.

t_msgbuilder.c  (opensips-3.2.0-rc1):t_msgbuilder.c  (opensips-3.2.0)
skipping to change at line 180 skipping to change at line 180
&branch_str, cid, Trans->uac[branch].request.dst.proto, &hp ); &branch_str, cid, Trans->uac[branch].request.dst.proto, &hp );
if (!via){ if (!via){
LM_ERR("no via header got from builder\n"); LM_ERR("no via header got from builder\n");
goto error; goto error;
} }
*len+= via_len; *len+= via_len;
/*headers*/ /*headers*/
*len+=from.len+Trans->callid.len+to.len+cseq_n.len+1+method->len+CRLF_LEN ; *len+=from.len+Trans->callid.len+to.len+cseq_n.len+1+method->len+CRLF_LEN ;
/* copy'n'paste Route headers that were sent out */ /* copy'n'paste Route headers that were sent out */
if (!is_local(Trans) && if (is_local(Trans) || (!is_local(Trans) &&
( (req && req->route) || /* at least one route was received*/ ( (req && req->route) || /* at least one route was received*/
(Trans->uac[branch].path_vec.len!=0)) ) /* path was forced */ (Trans->uac[branch].path_vec.len!=0))) ) /* path was forced */
{ {
buf_hdrs = extract_parsed_hdrs(Trans->uac[branch].request.buffer. s, buf_hdrs = extract_parsed_hdrs(Trans->uac[branch].request.buffer. s,
Trans->uac[branch].request.buffer.len ); Trans->uac[branch].request.buffer.len );
if (buf_hdrs==NULL) { if (buf_hdrs==NULL) {
LM_ERR("failed to reparse the request buffer\n"); LM_ERR("failed to reparse the request buffer\n");
goto error01; goto error01;
} }
for ( hdr=buf_hdrs ; hdr ; hdr=hdr->next ) for ( hdr=buf_hdrs ; hdr ; hdr=hdr->next )
if (hdr->type==HDR_ROUTE_T) if (hdr->type==HDR_ROUTE_T)
*len+=hdr->len; *len+=hdr->len;
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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