Skip to content

Leading "+" in phonenumbers isn't replaced with "00" #7

Description

@shamrockDE

Describe the bug
The function "arrayTelWalk" in file helpers/phoneMiddleware.php has following comment:
//Then replace + with 00 for better compatibility with asterisk
I was wandering, because my phonenumbers have still the leading "+"

i changed the following line (#470) from
$object = preg_replace('/[^0-9]*/', '00', $object);
to
$object = preg_replace('/^+/', '00', $object);
and now, the "+" is replaced with "00" in my output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions