[Freeswitch-users] PC Based Caller-id Monitor?

Nathan Neulinger nneul at mst.edu
Mon Apr 28 22:35:15 MSD 2014

I do something like this - we call it a "Notify Call" hook, and just send an email notification with caller id info on 
any incoming call to an extension that has that hook enabled. I'm sure you could do something similar.

         <action application="set" data="notify_call_address=username at mst.edu" />
         <action application="perl" data="/local/freeswitch/bin/notify-call-hook.pl" />

and then:

use strict;
use MIME::Lite;
require "/local/freeswitch/bin/hook-libs.pl";

our $session;
my $addr     = $session->getVariable("notify_call_address");
my $to       = $session->getVariable("destination_number");
my $from     = $session->getVariable("effective_caller_id_number") || $session->getVariable("caller_id_number");
my $fromname = $session->getVariable("effective_caller_id_name") || $session->getVariable("caller_id_name");

my $time = scalar( localtime(time) );

freeswitch::console_log( "info", "sending notify for call from $from to $to to address $addr\n" );

my $msg = MIME::Lite->new(
     From    => "freeswitch\@mst.edu",
     To      => $addr,
     Subject => "Receiving call from ($from / $fromname) to ($to) at ($time)",
     Type    => "multipart/mixed"

my $content = <<EOF;
Call To: $to
Call From: $from

Caller Name: $fromname

Call Time: $time

     Type => 'TEXT',
     Data => $content,


-- Nathan

On 04/28/2014 11:26 AM, Sean Devoy wrote:
> Hi All,
> My client has their DID ringing 2 extensions.  He says “at night when they are gone I would love to have caller id from
> their extension (aka did) to decide if I want to pick up the outside call”
> He does not want his phone to ring from the DID all the time, but wants the caller-id on his phone or PC.  I need ideas
> how to accomplish this.  ESL app?  The app would not necessarily have to monitor for incoming calls if there is a way to
> “query” the caller id of an incoming call to a given extension.
> Thanks,
> Sean
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

Nathan Neulinger                       nneul at mst.edu
Missouri S&T Information Technology    (573) 612-1412
System Administrator - Architect

Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list