yate: Revert to internal regex implementation 379/head
authorRobert Högberg <robert.hogberg@gmail.com>
Tue, 2 Oct 2018 14:53:13 +0000 (16:53 +0200)
committerRobert Högberg <robert.hogberg@gmail.com>
Tue, 2 Oct 2018 17:48:18 +0000 (19:48 +0200)
commita026c0ee63d2819d1c0bbc2ba634826d17abf3d0
treea2423810d634042aa53f4ff4aea889a1ec88f683
parentcef38a12934e2bf1574706851716b85170e80ccf
yate: Revert to internal regex implementation

.. because the musl implementation doesn't seem to be fully compatible
with yate. We switched to the musl implementation in f6ad95d.

Yate has this regexp:
^([[:alpha:]][[:alnum:]]+:)?/?/?([^[:space:][:cntrl:]@]+@)?([[:alnum:]._+-]+|[[][[:xdigit:].:]+[]])(:[0-9]+)?

Given a string like

  sip:012345678@11.111.11.111:5060;user=phone

musl's regexec() returns these matches:

index start end
0     -1    0
1     0     32   sip:012345678@11.111.11.111:5060
2     -1    -1
3     0     14   sip:012345678@
4     14    27   11.111.11.111
5     27    32   :5060

.. but this is what yate expects:

index start end
0     -1    0
1     0     32   sip:012345678@11.111.11.111:5060
2     0     4    sip:
3     4     14   012345678@
4     14    27   11.111.11.111
5     27    32   :5060

Fixes #378

Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
net/yate/Makefile