[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 1 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
changing Display Name during a call
Author Message
sergeysi Offline
Junior Member
**

Posts: 15
Joined: Oct 2013
Reputation: 0
Post: #1
changing Display Name during a call
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.
01-05-2015 11:26 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
James_Yealink Offline
Administrator
*******

Posts: 1,159
Joined: Aug 2014
Reputation: 8
Post: #2
RE: changing Display Name during a call
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


Attached File(s)
.zip  180 ring.zip (Size: 1.74 KB / Downloads: 6)
01-06-2015 03:49 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
sergeysi Offline
Junior Member
**

Posts: 15
Joined: Oct 2013
Reputation: 0
Post: #3
RE: changing Display Name during a call
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?


Attached File(s)
.zip  sipupdate.zip (Size: 3.4 KB / Downloads: 8)
01-07-2015 01:25 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
sergeysi Offline
Junior Member
**

Posts: 15
Joined: Oct 2013
Reputation: 0
Post: #4
RE: changing Display Name during a call
Looks like From and To headers should actually be reverted: https://tools.ietf.org/html/rfc4916#page-16
But what's wrong with BYE?
01-07-2015 03:13 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
James_Yealink Offline
Administrator
*******

Posts: 1,159
Joined: Aug 2014
Reputation: 8
Post: #5
RE: changing Display Name during a call
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
01-08-2015 05:15 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
sergeysi Offline
Junior Member
**

Posts: 15
Joined: Oct 2013
Reputation: 0
Post: #6
RE: changing Display Name during a call
(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?
(This post was last modified: 01-08-2015 06:34 PM by sergeysi.)
01-08-2015 05:57 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Yealink MP52 Call History mairagonzalez 0 233 03-06-2024 11:49 AM
Last Post: mairagonzalez
  About call history Andrei9385 3 5,955 01-10-2024 08:58 PM
Last Post: sles
  Disable Internal Call History Only justyncharbonneau 1 618 01-05-2024 12:53 AM
Last Post: complex1
  incoming call while active call , conference sles 2 929 12-08-2023 06:50 PM
Last Post: sles
  How to pick up colleagues call via Yealink MP56 jayden23 0 639 11-29-2023 09:14 AM
Last Post: jayden23
  Remote Phonebook - Numbers Display Format On Phone Medryn 19 67,870 11-24-2023 02:28 AM
Last Post: shulem@theteklink.com
  T53 Calling from call history jake 2 3,530 09-21-2023 02:37 AM
Last Post: andrew.manning
  View call logs for dropped calls computersense 0 918 08-15-2023 11:26 AM
Last Post: computersense
  Call history not showing the right information after an attended transfer wirelessmundi 5 12,654 08-15-2023 12:41 AM
Last Post: Yisroel_MongoTEL
  WH67 call forwarding issue in Teams iapbonn 0 1,113 06-19-2023 02:32 PM
Last Post: iapbonn

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication