[sr-dev] git:master: modules/lcr: fixed adding of ; transport parameter

Juha Heinanen jh at tutpro.com
Mon Dec 13 17:13:00 CET 2010


Module: sip-router
Branch: master
Commit: c3981251a2c8723e972190ee2c8e244b4ce0960f
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c3981251a2c8723e972190ee2c8e244b4ce0960f

Author: Juha Heinanen <jh at tutpro.com>
Committer: Juha Heinanen <jh at tutpro.com>
Date:   Mon Dec 13 18:12:08 2010 +0200

modules/lcr: fixed adding of ;transport parameter

---

 modules/lcr/lcr_mod.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/modules/lcr/lcr_mod.c b/modules/lcr/lcr_mod.c
index 96c236b..2ea532e 100644
--- a/modules/lcr/lcr_mod.c
+++ b/modules/lcr/lcr_mod.c
@@ -1633,10 +1633,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;
@@ -2192,7 +2196,7 @@ static int from_gw_1(struct sip_msg* _m, char* _lcr_id, char* _s2)
 	return -1;
     }
 
-    /* Get source address and transport preotocol */
+    /* Get source address and transport protocol */
     src_addr = _m->rcv.src_ip.u.addr32[0];
     transport = _m->rcv.proto;
 




More information about the sr-dev mailing list