Commit b0b972ce authored by Simon Morlat's avatar Simon Morlat

fix absence of Max-forwards in ACK message sent by nta_msg_ackbye()

parent 2159af90
......@@ -11,7 +11,7 @@ dnl information on the package
dnl ---------------------------
dnl update both the version for AC_INIT and the LIBSOFIA_SIP_UA_MAJOR_MINOR
AC_INIT([sofia-sip], [1.13.14bc])
AC_INIT([sofia-sip], [1.13.15bc])
AC_CONFIG_SRCDIR([libsofia-sip-ua/sip/sofia-sip/sip.h])
AC_CONFIG_MACRO_DIR([m4])
AC_SUBST(VER_LIBSOFIA_SIP_UA_MAJOR_MINOR, [1.13])
......
......@@ -3756,7 +3756,7 @@ int nta_msg_ackbye(nta_agent_t *agent, msg_t *msg)
/*SM: I commented out the following code supposed to manage routes.
* Indeed when the proxy is in the middle of the message's path, only part of the
* record-routes are relevant to make a Route header.
* It is actually to complicated to guess here which part of Record-Route corresponds to
* It is actually too complicated to guess here which part of Record-Route corresponds to
* proxies between us and the target user-agent.
* The code below can only work if nta_msg_ackbye() is invoked at the UA that created the call.
* Once, removed nta_msg_ackbye() can only work when invoked by the last proxy (typically the forking proxy)*/
......@@ -3791,6 +3791,10 @@ int nta_msg_ackbye(nta_agent_t *agent, msg_t *msg)
goto err;
else
msg_header_insert(amsg, (msg_pub_t *)asip, (msg_header_t *)rq);
if (!(mf = sip_max_forwards_make(home, "70")))
goto err;
else
msg_header_insert(amsg, (msg_pub_t *)asip, (msg_header_t *)mf);
if (!(ack = nta_outgoing_mcreate(agent, NULL, NULL, NULL, amsg,
NTATAG_ACK_BRANCH(sip->sip_via->v_branch),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment