CID

Discussion in 'General' started by veritech, Mar 22, 2011.

  1. veritech

    Joined:
    Jul 16, 2008
    Messages:
    92
    Likes Received:
    0
    I am stuck trying to get CID Superfecta working.

    I have installed Superfecta 2.2.4 on Elastix 2.0.x (Asterisk 1.6.2.13) FreePBX 2.7.0.10

    I added the line to /etc/http/conf.d/elastix.conf

    <Directory "/var/www/html">
    # Redirect administration interface to https
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteCond %{REQUEST_URI} !(/admin/modules/superfecta/*)
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    </Directory>

    restarted apache and asterisk.

    I have an error message in the log, full

    [2011-03-22 18:33:18] WARNING[8792] pbx.c: Context 'cidlookup' tries to include nonexistent context 'cidlookup-custom'
    [2011-03-22 18:33:18] WARNING[8792] pbx.c: Context 'sub-fmsetcid' tries to include nonexistent context 'sub-fmsetcid-custom'

    but cidlookup-custom is in /etc/asterisk/extensions_additional.conf

    my cellphone callforwards on no-answer to a DID with incoming route set to voicemail for an extension. All email's voicemail messages respond as
    From: "Unknown Name" <XXXXXXXXXX>

    my cell provider doesn't forward the CallerID other than the number and I can't get cidlookup to work.

    Any suggestions.

    Thanks

    Joe
     
  2. veritech

    Joined:
    Jul 16, 2008
    Messages:
    92
    Likes Received:
    0
    looking at things again, it appears that asterisk needs to be re-compiled to include CURL

    "yum -y install curl-devel

    I then recompiled Asterisk:

    make clean

    make

    make menuselect
    (entries were the same from my original install)

    make install"

    I can't find the sources though. in /usr/share/doc/asterisk-1.6.2.13/ sources are there, just no makefile
     
  3. veritech

    Joined:
    Jul 16, 2008
    Messages:
    92
    Likes Received:
    0
    Got it!

    turns out that curl is in Asterisk 1.6.2.13 (Elastix 2.0.3 reporting as 2.0.0)

    modified extensions_additional.conf
    Code:
    
    [cidlookup]
    include => cidlookup-custom
    exten => cidlookup_2,1,ExecIf($[ "${CALLERID(name)}" = "Unknown Name" ] ?Set(CALLERID(name)=${CALLERID(num)}))
    exten => cidlookup_2,n,Set(CALLERID(name)=${CURL(http://admin:xxxxxx@localhost:80/admin/modules/superfecta/bin/callerid.php?thenumber=${CALLERID(num)})})
    exten => cidlookup_2,n,Return()
    exten => cidlookup_return,1,ExecIf($["${DB(cidname/${CALLERID(num)})}" != ""]?Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})}))
    exten => cidlookup_return,n,Return()
    
    ; end of [cidlookup]
    
    as it turns out, when the call is being forwarded from my cellphone, it come in with a CID string of "Unknown Name" <NXXNXXXXXX>
    because there was a name, cidlookup was ignoring it.

    All happy now!
     
  4. Chileno

    Joined:
    Dec 2, 2009
    Messages:
    63
    Likes Received:
    0
    Re: Re:CID

    Did it work?

    Could you tell us how to install it and have it working in Elastix 2

    Pleeaaaseeee!!!
     

Share This Page