Luca Bertoncello
2017-Sep-20 20:04 UTC
[asterisk-users] Voicemail: search for name in a phonebook
Hi list! I'm using Asterisk 1.8.30.0 on a OpenWRT device and it works perfectly. I configured a voicemail and I receive an E-Mail with some information about the call. Again, wonderful! Now my wish: I'd like to have Asterisk to search the caller in a list file and send me the name corresponding to the number in the E-Mail of voicemail. Is it possible? I currently use ${VM_CALLERID} in emailbody and it gives, of course, the phone number... Thanks a lot! Luca Bertoncello (lucabert at lucabert.de)
John Kiniston
2017-Sep-20 20:33 UTC
[asterisk-users] Voicemail: search for name in a phonebook
Yes, You could do easily this either with the internal asterisk database or with something like func_odbc as a source for the data. In the context you receive your incoming calls you do a lookup against one of the above data sources using the CALLERID(NUM) and change CALLERID(NAME) to be the name you set. On Wed, Sep 20, 2017 at 1:04 PM, Luca Bertoncello <lucabert at lucabert.de> wrote:> Hi list! > > I'm using Asterisk 1.8.30.0 on a OpenWRT device and it works perfectly. > I configured a voicemail and I receive an E-Mail with some information > about > the call. > Again, wonderful! > > Now my wish: I'd like to have Asterisk to search the caller in a list file > and send me the name corresponding to the number in the E-Mail of > voicemail. > Is it possible? > > I currently use ${VM_CALLERID} in emailbody and it gives, of course, the > phone number... > > Thanks a lot! > Luca Bertoncello > (lucabert at lucabert.de) > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: https://community.asterisk. > org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects. ---Heinlein -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170920/d9f9527f/attachment.html>
Luca Bertoncello
2017-Sep-20 20:44 UTC
[asterisk-users] Voicemail: search for name in a phonebook
John Kiniston <johnkiniston at gmail.com> schrieb:> Yes, You could do easily this either with the internal asterisk database or > with something like func_odbc as a source for the data. > > In the context you receive your incoming calls you do a lookup against one > of the above data sources using the CALLERID(NUM) and change CALLERID(NAME) > to be the name you set.Thanks a lot! I found this page: http://deepliquid.com/blog/archives/59 and I successfully got it working! Regards Luca Bertoncello (lucabert at lucabert.de)