Module: sip-router
Branch: master
Commit: a5b181bca6bf37b4a18ef502717b50d06e53d5e4
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a5b181b…
Author: Andreas Granig <agranig(a)sipwise.com>
Committer: Andreas Granig <agranig(a)sipwise.com>
Date: Tue Jun 5 14:31:04 2012 +0200
modules_k/path: Use single-quotes around received
For full RFC3261 compliance, use single-quoted "received" param
instead of double-quoted one.
---
modules_k/path/path.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules_k/path/path.c b/modules_k/path/path.c
index 57c413a..b8eb0c8 100644
--- a/modules_k/path/path.c
+++ b/modules_k/path/path.c
@@ -122,23 +122,23 @@ static int prepend_path(struct sip_msg* _m, str *user, int recv)
if (recv) {
/* TODO: agranig: optimize this one! */
src_ip = ip_addr2a(&_m->rcv.src_ip);
- rcv_addr.s = pkg_malloc(6 + IP_ADDR_MAX_STR_SIZE + 22); /*
"sip:<ip>:<port>;transport=sctp"\0 */
+ rcv_addr.s = pkg_malloc(6 + IP_ADDR_MAX_STR_SIZE + 22); /*
'sip:<ip>:<port>;transport=sctp'\0 */
if(!rcv_addr.s) {
LM_ERR("no pkg memory left for receive-address\n");
goto out3;
}
switch (_m->rcv.proto) {
case PROTO_UDP:
- rcv_addr.len = snprintf(rcv_addr.s, 6 + IP_ADDR_MAX_STR_SIZE + 6,
"\"sip:%s:%u\"", src_ip, _m->rcv.src_port);
+ rcv_addr.len = snprintf(rcv_addr.s, 6 + IP_ADDR_MAX_STR_SIZE + 6,
"'sip:%s:%u'", src_ip, _m->rcv.src_port);
break;
case PROTO_TCP:
- rcv_addr.len = snprintf(rcv_addr.s, 6 + IP_ADDR_MAX_STR_SIZE + 20,
"\"sip:%s:%u;transport=tcp\"", src_ip, _m->rcv.src_port);
+ rcv_addr.len = snprintf(rcv_addr.s, 6 + IP_ADDR_MAX_STR_SIZE + 20,
"'sip:%s:%u;transport=tcp'", src_ip, _m->rcv.src_port);
break;
case PROTO_TLS:
- rcv_addr.len = snprintf(rcv_addr.s, 6 + IP_ADDR_MAX_STR_SIZE + 20,
"\"sip:%s:%u;transport=tls\"", src_ip, _m->rcv.src_port);
+ rcv_addr.len = snprintf(rcv_addr.s, 6 + IP_ADDR_MAX_STR_SIZE + 20,
"'sip:%s:%u;transport=tls'", src_ip, _m->rcv.src_port);
break;
case PROTO_SCTP:
- rcv_addr.len = snprintf(rcv_addr.s, 6 + IP_ADDR_MAX_STR_SIZE + 21,
"\"sip:%s:%u;transport=sctp\"", src_ip, _m->rcv.src_port);
+ rcv_addr.len = snprintf(rcv_addr.s, 6 + IP_ADDR_MAX_STR_SIZE + 21,
"'sip:%s:%u;transport=sctp'", src_ip, _m->rcv.src_port);
break;
}