New Forum system requires email address which you used to apply for your account to replace your original username. Password stays the same.Please see this post for more details
http://forum.yealink.com/forum/showthread.php?tid=40344

Yealink Test Club has been officially launched. Please visit post below to get detail information. Come and join us!
http://forum.yealink.com/forum/announcements.php?aid=18

We just had the YMCS online and we are also working on the features plan on the future versions, in this regard we are need to hear your voice about the YMCS.
Please visit : http://forum.yealink.com/forum/showthread.php?tid=42322


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: #1
[Workaround] BLF caller preview with Asterisk and T4xG phones
Hi,

what is sadly not working with Asterisk is if you want to get caller info (cid) on a incoming call to a monitored phone (BLF).

I wrote a short script to get this info within a AGI script which pushed the info to the Yealink phones via XML.
It may be helpful for other users.
So if somebody is interested in this please let me know and I will clean up the script and post it here...
06-19-2017 01:38 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Fraukas2 Offline
Kolibri Telecommunication
**

Posts: 38
Joined: Jan 2017
Reputation: 0
Post: #2
RE: [Workaround] BLF caller preview with Asterisk and T4xG phones
Hello,

That might be sweet, can you post a picture of the results ?

Thanks,
06-19-2017 04:42 PM
Visit this user's website Find all posts by this user    like0    dislike0 Quote this message in a reply
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: 8)
(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
Fraukas2 Offline
Kolibri Telecommunication
**

Posts: 38
Joined: Jan 2017
Reputation: 0
Post: #4
RE: [Workaround] BLF caller preview with Asterisk and T4xG phones
Hi there !

Good work on that !

Unfortunatelly, i can't really do this kind of modification as my Multi-Tenant PBX is hosted. I don't want to install or modify files on the server. If something bugs/breaks, I will be held liable about it and i'll get fees for that.

All in all, really good find, I'm interested if I ever host my own PBX.
06-20-2017 01:52 PM
Visit this user's website Find all posts by this user    like0    dislike0 Quote this message in a reply
Alexey1 Offline
Junior Member
**

Posts: 1
Joined: Oct 2017
Reputation: 0
Post: #5
RE: [Workaround] BLF caller preview with Asterisk and T4xG phones
(06-20-2017 06:27 AM)Patrick77 Wrote:  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

Nice job! We are trying to resolve the same problem on 4xG/4xS phones with PJSIP and still not successful. We got all VIATMP and IPADDR from PJSIP header but get immediate hangup and do not see the caller ID on BLF
11-01-2017 08:22 AM
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
  Unable to see Caller ID when listening to voicemails? T48S kogarahchiro 2 252 01-28-2020 06:08 AM
Last Post: Tyso9n
  cant see voicemail caller ID deutschnaftyula 2 2,495 01-15-2020 12:29 AM
Last Post: kogarahchiro
  8x8 Yealink Phones stratos 1 418 11-15-2019 06:26 AM
Last Post: Ekko_yealink
  T58A SfB Phones - Filling up Azure sign-in logs coreyjackcarpenter 0 295 10-22-2019 04:49 PM
Last Post: coreyjackcarpenter
  Long range cordless phones Fraukas2 3 908 07-13-2019 02:42 AM
Last Post: Kevin_Yealink
  Caller ID lost after Group Pickup 3CX 3CX_VERSION12 19 34,468 06-22-2019 07:20 AM
Last Post: Vance
  mask outbound caller id softy783 2 747 05-22-2019 07:15 PM
Last Post: softy783
  Phones Web UI Not Working after Firmware Update Rockses 0 812 04-09-2019 01:24 PM
Last Post: Rockses
Question Hide Call History on Yealink IP Phones wizardwebsolutions 5 2,336 04-04-2019 09:58 AM
Last Post: Marie7
  Yealink T41S Phones (available) MahnIT 1 1,472 08-30-2018 10:10 AM
Last Post: complex1

Forum Jump:


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

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