call: allow optional leading space in SIP INFO for dtmf-relay
@@ -1837,8 +1837,10 @@ static void sipsess_info_handler(struct sip *sip, const struct sip_msg *msg,
pl_set_mbuf(&body, msg->mb);
- err = re_regex(body.p, body.l, "Signal=[0-9*#a-d]+", &sig);
- err |= re_regex(body.p, body.l, "Duration=[0-9]+", &dur);
+ err = re_regex(body.p, body.l,
+ "Signal=[ ]*[0-9*#a-d]+", NULL, &sig);
+ err |= re_regex(body.p, body.l,
+ "Duration=[ ]*[0-9]+", NULL, &dur);
if (err || !pl_isset(&sig) || sig.l == 0) {
(void)sip_reply(sip, msg, 400, "Bad Request");
