From 4936c3d808d0c5bbe5bdd1c7c66e1951e74ed251 Mon Sep 17 00:00:00 2001 From: surendratiwari3 Date: Thu, 7 Jun 2018 20:46:30 +0000 Subject: [PATCH] Modules: sdpops export sdp_get_line_startswith --- src/modules/sdpops/sdpops_mod.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/modules/sdpops/sdpops_mod.c b/src/modules/sdpops/sdpops_mod.c index 03c3a3522e2..0512bcc746e 100644 --- a/src/modules/sdpops/sdpops_mod.c +++ b/src/modules/sdpops/sdpops_mod.c @@ -1875,6 +1875,10 @@ static int w_sdp_get_line_startswith(sip_msg_t *msg, char *avp, char *s_line) return -1; } +static int ki_sdp_get_line_startswith(sip_msg_t *msg, str *avp, str *s_line) +{ + return w_sdp_get_line_startswith(msg, avp->s, s_line->s); +} /** * */ @@ -2017,6 +2021,11 @@ static sr_kemi_t sr_kemi_sdpops_exports[] = { { SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } }, + { str_init("sdpops"), str_init("sdp_get_line_startswith"), + SR_KEMIP_INT, ki_sdp_get_line_startswith, + { SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + }, { {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } } };