Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show display name on Outgoing call. #362

Open
Fahad29 opened this issue Feb 19, 2023 · 0 comments
Open

Show display name on Outgoing call. #362

Fahad29 opened this issue Feb 19, 2023 · 0 comments

Comments

@Fahad29
Copy link

Fahad29 commented Feb 19, 2023

When we dial a number, we also want to include the company's display name, as shown in the mobile version.
But the display name "o_uri_to" is always null; how can we can update the name?

oConfigCall = {
display_name: 'I Am Legend', // optional
audio_remote: audioRemote,
video_remote: viewVideoRemote,
screencast_window_id: 0x00000000, // entire desktop
bandwidth: { audio: undefined },
events_listener: { events: '*', listener: onSipEventSession },
sip_caps: [
{ name: '+g.oma.sip-im' },
{ name: 'language', value: '"en,fr"' }
]
};

 if (oSipStack && !oSipSessionCall && !tsk_string_is_null_or_empty(txtPhoneNumber.value)) {
    btnCall.disabled = true;
    // create call session
     oSipSessionCall = oSipStack.newSession(s_type, oConfigCall);
    // make call
    if (oSipSessionCall.call(txtPhoneNumber.value) != 0) {
        oSipSessionCall = null;
        txtCallStatus.innerHTML = 'Failed to make call';
        btnCall.disabled = false;
        btnHangUp.disabled = true;
        return;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant