Yealink Forums
changing Display Name during a call - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: General topics (/forumdisplay.php?fid=15)
+--- Thread: changing Display Name during a call (/showthread.php?tid=3096)



changing Display Name during a call - sergeysi - 01-05-2015 11:26 PM

I try to implement the following scenario:
User dials a number and phone sends it to IP-PBX. PBX sends an answer of 180 or 200 and dials the number. In parallel PBX tries to find the number in different catalogs and if it finds the number it should send a command to the phone asking it to change Display Name (e.g. name of the dialed person) so the user can see name of the person he is trying to call.

Is it possible to use UPDATE method to change display name during a call? Is there any example of SIP packet? Or maybe there are other methods?
I actually tried to use UPDATE method but phone (T22P v7.72.14.3) always answers "481 Call Leg/Transaction does not exist" though the packet contained the same Call-Id and From and To tags as in initial INVITE and 200 OK answer. Working example would be very helpful.


RE: changing Display Name during a call - James_Yealink - 01-06-2015 03:49 PM

Hi Sergeysi,

The display name can be included in 180 message with a PAI header.
I attach a pcap sample. Phone will refresh the display name when receiving the 180 message.

For other sip message, you can have a try of sip INFO.

Regards,
James


RE: changing Display Name during a call - sergeysi - 01-07-2015 01:25 AM

Thank you for the answer, James.

Unfortunately INFO method did not work. Phone replies 200 OK but doesn't update info on the screen.

I finally had a success with UPDATE method and PAI header. But there are some questions. UPDATE method only worked with reverse tags in From and To headers (it means I had to place "From" tag to "To" header and vice versa). In this case phone answers 200 OK to UPDATE from PBX and actually updates text on the screen. But then phone replies "500 Server Error" to BYE from PBX.

There are 2 dumps attached:
update1.pcapng and update2-reverse-tags.pcapng differ only in From and To tags order. In update2-reverse-tags phone actually updates screen but replies "500 Server Error" to BYE from PBX. In update1.pcapng phone replies "481 Call Leg/Transaction does not exist" and replies coreectly to BYE from BPX.

What am I doing wrong? Why does phone accept UPDATE only with reverse tags and replies 500 to BYE?


RE: changing Display Name during a call - sergeysi - 01-07-2015 03:13 PM

Looks like From and To headers should actually be reverted: https://tools.ietf.org/html/rfc4916#page-16
But what's wrong with BYE?


RE: changing Display Name during a call - James_Yealink - 01-08-2015 05:15 PM

Hi,

I an not sure why there is a BYE message since from the pcap trace your server send the BYE message.
The INFO and UPDATE message are all designed to change parameter of an established session but during a call.

Can you use 180 message to update the display name? I think it won't cause a problem since this is a fucntion the message desinged for.

Regards,
James


RE: changing Display Name during a call - sergeysi - 01-08-2015 05:57 PM

(01-08-2015 05:15 PM)Yealink_James Wrote:  Can you use 180 message to update the display name? I think it won't cause a problem since this is a fucntion the message desinged for.
Unfortunately I can't use 180 since the platform we use always sends 200 to all calls from internal users. And even that message is not configurable. We only can send other packets during a call.

(01-08-2015 05:15 PM)Yealink_James Wrote:  I an not sure why there is a BYE message since from the pcap trace your server send the BYE message.
Yes, server sent the BYE but the problem is phone did not end the call after it.

(01-08-2015 05:15 PM)Yealink_James Wrote:  The INFO and UPDATE message are all designed to change parameter of an established session but during a call.
That's what I'm trying to do and that's what you can see in dumps. The only problem now is with BYE from PBX. Phone doesn't end the call after receiving BYE.

Could someone please tell what is wrong with BYE message in update2-reverse-tags.pcapng?

Or maybe there is working example of INFO method to update name on the phone screen?