cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1282
Views
0
Helpful
9
Replies

remotePartyDisplayName

bcason
Cisco Employee
Cisco Employee

Can anyone clarify what is the source of the value returned from the getRemotePartyDisplayName method? I've set my display name and validated in the REAS call logs that it is being sent in the 200 ok Response. Is there somewhere else I should be trying to force this value in the SIP headers? Here is the 200OK. I would hope to return the "CCX Queue" value from my method call:

2017-03-28 11:41:20,667 : Inbound Message

Transport: TCP: ip=10.122.23.138, port=5060, secure=false

SIP/2.0 200 OK

Via: SIP/2.0/TCP 10.122.23.142:5080;branch=z9hG4bK8dd513fb-969b-47e3-9676-4bd40200d5a5_3_e897ac49_56148172222920_0

From: "Brad Cason" <sip:assist-BradCason@iland.com>;tag=0-mobi-93021523_ada14cd5_50e89fc8-3b07-440d-a353-8ab5a9dd4c57_3

To: <sip:50020@10.122.23.138>;tag=454755~414f568f-51c0-4fba-8a77-9858a32b6d3d-23006838

Date: Tue, 28 Mar 2017 15:41:20 GMT

Call-ID: ea57bf6679ed29eaf218dab09b6bf201@10.122.23.142

CSeq: 1 INVITE

Allow: INVITE,OPTIONS,INFO,BYE,CANCEL,ACK,PRACK,UPDATE,REFER,SUBSCRIBE,NOTIFY

Allow-Events: presence,kpml

Supported: replaces,X-cisco-srtp-fallback,Geolocation

Server: Cisco-CUCM10.5

Call-Info: <sip:10.122.23.138:5060>;method="NOTIFY;Event=telephone-event;Duration=500"

Session-Expires: 10800;refresher=uas

Require: timer

P-Asserted-Identity: "CCX Queue" <sip:50011@10.122.23.138>

Remote-Party-ID: "CCX Queue" <sip:50011@10.122.23.138>;party=called;screen=yes;privacy=off

Contact: <sip:50020@10.122.23.138:5060;transport=tcp>

Content-Type: application/sdp

Content-Length: 352

v=0

o=CiscoSystemsCCM-SIP 454755 1 IN IP4 10.122.23.138

s=SIP Call

c=IN IP4 10.122.23.134

b=TIAS:64000

b=CT:64

b=AS:64

t=0 0

m=audio 25092 RTP/AVP 0

a=ptime:20

a=rtpmap:0 PCMU/8000

m=video 0 RTP/AVP 31 34 96 97

a=rtpmap:31 H261/90000

a=rtpmap:34 H263/90000

a=rtpmap:96 H263-1998/90000

a=rtpmap:97 H264/90000

a=content:main

a=inactive

9 Replies 9

bcason
Cisco Employee
Cisco Employee

I guess I should add that when I call getRemotePartyDisplayName it returns an empty string. I am calling it in the onInCall callback. I've also tried setting a timer and waiting a couple seconds after the onInCall callback with the same results.

bcason
Cisco Employee
Cisco Employee

still messing around with this...also tried setting up the onRemoteDisplayNameChanged callback and attempting to get the value in there, but that callback is never triggered. Anyone have any ideas?

rdavies1
Level 1
Level 1

Hi Bradley.

Could you share with us the code you are using to make the call so we could take a quick look?

Cheers,

Rach D

I've tried it a few different ways but here's my latest attempt. There seem to be two issues. The first is that the "onRemoteDisplayNameChanged" callback never fires. But when I take the getRemotePartyDisplayName outside of that block and just call it manually, for example when the onInCall callback fires, it just returns an empty string.

    

    call.onRemoteDisplayNameChanged = function () {

        remoteParty = call.getRemotePartyDisplayName();

    }

rdavies1
Level 1
Level 1

Thank you for the reply Bradley, That is strange, we've not encountered this in our testing so far. Would it be possible for you to share a fuller code snippet with us so we could take a look?

Do you hard code the SIP address into the code or is this something you type in on the fly?

Just for completeness can I confirm this same SIP address is working fine with the sample application?

And confirm you are developing a web browser application?

Cheers,

Rach

Hi, Rach. I can gather a full set of logs and more complete code snippet, but something you said seemed curious to me and wanted to clarify first.

When I ask for the remotePartyDisplayName what I would expect to get back would be the value set by my remote SIP server for the answering party ID. So just to reference that SIP message in my first post, I would expect to get the "CCX Queue" value from this SIP header in my web application:

Remote-Party-ID: "CCX Queue" <sip:50011@10.122.23.138>;party=called;screen=yes;privacy=off


I am setting this value in CUCM by assigning that value to the answering party "Display Name" field.


There are no problems with call setup or answer. When I call this SIP address from both my app and the sample app, they both work fine. I'm just not getting the value I expect when I call the getRemotePartyDisplayName function. I wonder if I misunderstand what I should expect to be returned from this function.


Let me know if we're on the same page and I'll gather a full set of logs and code.


rdavies1
Level 1
Level 1

Hi Bradley.

Sorry you're totally right, I've misunderstood your original question.  So just to make sure we are on the same page now. CCX Queue is appearing as expected in the logs but it's not being represented on the front end where remotePartyDisplayName is being used, is that correct?

For this you are using:

   call.onRemoteDisplayNameChanged = function () {

        remoteParty = call.getRemotePartyDisplayName();

    }

But are returning an empty string when attempting this?

Cheers,

Rach D

Hey, Rach. You got it. In the above scenario, the onRemoteDisplayNameChanged callback is never even being triggered.

I've also attempted the following method for retrieving the remote display name, and when I do this it is returning an empty string.

    call.onInCall = function () {

        var remoteParty = call.getRemotePartyDisplayName();

       

  };

I would hope to be getting "CCX Queue" returned.

Thanks for confirming Bradley.

I'm just going to confirm with our team here in the UK. Hopefully we will have something for you soon (it's been a bank holiday weekend here (fri and monday off) so may be a little lag in catching up  

Will get back to you as soon as we have anything.

Cheers,

Rach D

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: