[sr-dev] git:andrei/path: avpops: updated to the new append_branch()
Andrei Pelinescu-Onciul
andrei at iptel.org
Tue Sep 8 19:26:19 CEST 2009
Module: sip-router
Branch: andrei/path
Commit: 47e589e01fb9f927b135c41a0fcc1caadbd6fef7
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=47e589e01fb9f927b135c41a0fcc1caadbd6fef7
Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date: Fri Sep 4 15:16:58 2009 +0200
avpops: updated to the new append_branch()
- fixed swapped params in append_branch() call
- updated to the new append_branch()
---
modules/avpops/avpops_impl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/avpops/avpops_impl.c b/modules/avpops/avpops_impl.c
index 26c5105..c6fa543 100644
--- a/modules/avpops/avpops_impl.c
+++ b/modules/avpops/avpops_impl.c
@@ -998,7 +998,7 @@ int ops_pushto_avp (struct sip_msg* msg, struct fis_param* dst,
{
/* if is not the first modification, push the current uri as
* branch */
- if (append_branch( msg, 0, 0, 0, 0, Q_UNSPECIFIED, 0)!=1 )
+ if (append_branch( msg, 0, 0, 0, Q_UNSPECIFIED, 0, 0)!=1 )
{
LM_ERR("append_branch action failed\n");
goto error;
@@ -1021,8 +1021,8 @@ int ops_pushto_avp (struct sip_msg* msg, struct fis_param* dst,
goto error;
}
} else if (dst->opd&AVPOPS_USE_BRANCH) {
- if (append_branch( msg, val.s, val.len, 0, 0, Q_UNSPECIFIED,
- msg->force_send_socket)!=1 )
+ if (append_branch( msg, &val, 0, 0, Q_UNSPECIFIED, 0,
+ msg->force_send_socket)!=1 )
{
LM_ERR("append_branch action failed\n");
goto error;
More information about the sr-dev
mailing list