Module: sip-router
Branch: master
Commit: 83253d3a5cc08ce581fad88378de5eb3bd7fc784
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=83253d3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Nov 1 11:38:51 2011 +0100
sdpops: fixed usage of delim param in sdp_codec_in_str()
- matching codecs in a comma separated list should work now
- reported by Juha Heinanen as part of testing keep_codecs_by_name()
---
modules/sdpops/sdpops_mod.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/sdpops/sdpops_mod.c b/modules/sdpops/sdpops_mod.c
index 7923bf0..cfd4ae0 100644
--- a/modules/sdpops/sdpops_mod.c
+++ b/modules/sdpops/sdpops_mod.c
@@ -200,7 +200,7 @@ int sdp_codec_in_str(str *allcodecs, str* codec, char delim)
}
}
}
- if(allcodecs->s[i]==' ')
+ if(allcodecs->s[i]==delim)
cmp = 1;
else
cmp = 0;