[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:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Workaround] BLF caller preview with Asterisk and T4xG phones
Author Message
Patrick77 Offline
Junior Member
**

Posts: 8
Joined: May 2017
Reputation: 0
Post: #3
RE: [Workaround] BLF caller preview with Asterisk and T4xG phones
Hi,

attached the necessary AGI file and a screenshot of phone display.

I'm running this on Asterisk 13.13-cert3 with latest version of phpagi libs: http://phpagi.sourceforge.net/
In these libs the config file has to be edited to your needs.

Process is to click BLF key on phone while the monitored extension is ringing.
A call goes out to Asterisk where the AGI script is called.
A XML message is sent to the phone by the AGI script and the call will hang up.
On the phone you can see the caller information and pick the call.

My dialplan:
Quote:exten => _*8XXX,1,Set(VIATMP=${CUT(SIP_HEADER(VIA), ,2)})
exten => _*8XXX,n,Set(IPADDR=${CUT(VIATMP,:,1)})
exten => _*8XXX,n,AGI(pushBlfCid.php,${IPADDR},${EXTEN:2})
exten => _*8XXX,n,Answer()
exten => _*8XXX,n,Hangup(16)
exten => _*88XXX,1,Pickup(${EXTEN:3}@PICKUPMARK)
exten => _*88XXX,2,Hangup(16)

Hope this will help.

AGI of course could be edited to fit needs of other phones.
Code is surely improveable Wink


Attached File(s) Thumbnail(s)
   

.php  pushBlfCid.php (Size: 2.88 KB / Downloads: 9)
(This post was last modified: 06-20-2017 06:31 AM by Patrick77.)
06-20-2017 06:27 AM
Find all posts by this user    like1    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [Workaround] BLF caller preview with Asterisk and T4xG phones - Patrick77 - 06-20-2017 06:27 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Phones no longer support Let Encrypt johnbeaumont 20 31,103 01-19-2024 08:09 AM
Last Post: tom-nbb
  Firmware phones T33G esoriano 1 832 12-13-2023 02:50 AM
Last Post: complex1
  Hiding Inbound Caller ID Jack-Greenhous 0 439 12-11-2023 05:32 PM
Last Post: Jack-Greenhous
  MP54 Teams phones sometimes fail to log in jzcase 0 627 11-21-2023 12:26 AM
Last Post: jzcase
  Phones without a "server/PBX" kermitxyz 0 617 11-13-2023 02:26 AM
Last Post: kermitxyz
  Is there a way to get the incoming caller phone number with an Action URI? troy44 1 1,137 09-04-2023 01:46 PM
Last Post: Regend_Yealink
  Do Yealink IP Phones Support ZRTP? nolto 0 1,301 01-15-2023 11:35 PM
Last Post: nolto
  integrate Salesforce CRM to Yealink phones mehdi.ett 3 11,617 12-21-2022 02:20 PM
Last Post: Arun Kiran
  MP50 Phones not dialling az@a2z-computing.com 7 8,305 09-23-2022 09:35 PM
Last Post: Oksania
  Reconfigure a hundred phones? poznaniak 2 4,573 01-26-2022 06:41 PM
Last Post: poznaniak

Forum Jump:


User(s) browsing this thread:

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