Skip to content

fix(sip): Handle direct incoming calls as phone participants#18567

Open
nickvergessen wants to merge 3 commits into
mainfrom
bugfix/18123/handle-direct-incoming-calls-as-phone-participants
Open

fix(sip): Handle direct incoming calls as phone participants#18567
nickvergessen wants to merge 3 commits into
mainfrom
bugfix/18123/handle-direct-incoming-calls-as-phone-participants

Conversation

@nickvergessen

Copy link
Copy Markdown
Member

☑️ Resolves

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not possible
  • 📘 API documentation in docs/ has been updated or is not required
  • 🔖 Capability is added or not needed

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen added this to the ⛅ Next Major (35) milestone Jul 7, 2026
@nickvergessen nickvergessen self-assigned this Jul 7, 2026
@nickvergessen nickvergessen added bug feature: api 🛠️ OCS API for conversations, chats and participants feature: SFU & SIP ☎️ labels Jul 7, 2026
@nickvergessen

Copy link
Copy Markdown
Member Author

/backport to stable34

@nickvergessen

Copy link
Copy Markdown
Member Author

/backport to stable33

@nickvergessen

Copy link
Copy Markdown
Member Author

/backport to stable32


$caller = trim($caller);
// TODO: Use later and get name from addressbook? $cleanedCaller = $this->phoneNumberUtil->convertToStandardFormat($caller);
$inBoundPhoneNumber = $this->phoneNumberUtil->convertToStandardFormat($caller);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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,

$defaultRegion = $this->config->getSystemValueString('default_phone_region') ?: null;
$standardPhoneNumber = $this->phoneNumberUtil->convertToStandardFormat($phoneNumber, $defaultRegion);
)

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).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a setting for the dial-out prefix:
grafik

Not sure if it makes sense to use that?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dial-in room participant added as guest, not as a phone participant

3 participants