fix(sip): Handle direct incoming calls as phone participants#18567
fix(sip): Handle direct incoming calls as phone participants#18567nickvergessen wants to merge 3 commits into
Conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
/backport to stable34 |
|
/backport to stable33 |
|
/backport to stable32 |
|
|
||
| $caller = trim($caller); | ||
| // TODO: Use later and get name from addressbook? $cleanedCaller = $this->phoneNumberUtil->convertToStandardFormat($caller); | ||
| $inBoundPhoneNumber = $this->phoneNumberUtil->convertToStandardFormat($caller); |
There was a problem hiding this comment.
This returns null in my case. In this method $caller is 4912345 instead of +4912345. If the + is added in front, it is correctly recognized. (or alternatively the default region is set, but it should also work without,
spreed/lib/Service/PhoneNumberValidation.php
Lines 42 to 43 in 8f9dd1d
Since the + is missing, we add the phone attendee as 4912345. That means when calling back we dial +494912345 (which is then - depending on the sip config - converted to 00494912345).
There was a problem hiding this comment.
@fancycode I guess it is expected that the sipbridge calls the direct-call-in endpoint without the + in front of the number? Would it be safe to add it on our side to have a correct converting?
There was a problem hiding this comment.
@fancycode I guess it is expected that the sipbridge calls the direct-call-in endpoint without the
+in front of the number?
Yes, the numbers received by the SIP bridge in (To / From) might be an extension only in case of a on-premise PBX and internal calls, so it can't just prefix it with +.
Would it be safe to add it on our side to have a correct converting?
Similar to the SIP bridge you also can't add the + unconditionally.
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>

☑️ Resolves
🏁 Checklist
docs/has been updated or is not required