[OpenSIPS-Users] sip info dtmf

Alberto alberto.rinaudo at gmail.com
Fri Sep 8 12:41:31 UTC 2023


Hi,
I'm using opensips 3.2 and can't find any way to get this working.
Can someone help me complete this code?
I had a look at textops, but I don't see any function that can extract a
regex matched group.
Thanks

if (is_method("INFO") && $hdr(Content-Type) == "application/dtmf-relay") {
  $var(body) = $rb(application/dtmf-relay);
  if ($var(body) =~ "Signal=([0-9]+)") {
     $var(dtmf) = ???;
     xlog("L_NOTICE", "$$var(dtmf): $var(dtmf)\n");
   }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230908/c9c4aacb/attachment.html>


More information about the Users mailing list