Module: sip-router
Branch: 3.1
Commit: 1157f9bdf2e485409145f4911fee91dba8300dc6
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1157f9b…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Mon Dec 13 18:21:51 2010 +0200
modules/lcr: fixed adding of ;transport parameter
---
modules/lcr/lcr_mod.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/lcr/lcr_mod.c b/modules/lcr/lcr_mod.c
index 6f705e1..ff03714 100644
--- a/modules/lcr/lcr_mod.c
+++ b/modules/lcr/lcr_mod.c
@@ -1586,10 +1586,14 @@ inline int decode_avp_value(char *value, unsigned int *gw_index,
str *scheme,
case PROTO_TLS:
transport->s = ";transport=tls";
transport->len = 14;
- default:
+ break;
+ case PROTO_SCTP:
transport->s = ";transport=sctp";
transport->len = 15;
break;
+ default:
+ LM_ERR("unknown transport '%d'\n", u);
+ return 0;
}
/* flags */
s.s = sep + 1;