<div dir="ltr">Alan, <div><br></div><div>Thanks for sharing this. We are looking at <a href="http://www.asterisk-java.org/development/">Asterisk -Java</a> to improve the Asterisk integration in the open source product. But, OpenSIPs looks better from what you shared, and the fact that it is not just restricted to Asterisk is a plus. We will keep you posted if we make some progress on OpenSIPs.</div>
<div><br></div><div>thanks,</div><div>Sreenivas</div></div><div class="gmail_extra"><br clear="all"><div>--<br>Sreenivas Kanumuru<br>vtiger Team<div><div><br></div><div>Direct: +91 96323-55656<br>Skype: skanumuru</div><br>
<b>Connect with us on: </b><a href="http://twitter.com/#%21/vtigercrm" target="_blank">Twitter</a> <b>I</b> <a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" target="_blank">Facebook</a> <b>I</b> <a href="http://blog.vtiger.com/" target="_blank">Blog</a><b> I</b> <a href="http://wiki.vtiger.com/index.php/Main_Page" target="_blank">Wiki</a> <b>I </b><a href="http://forums.vtiger.com/" target="_blank">Forums </a><b>I</b> <a href="http://vtiger.com/" target="_blank">Website</a><br>
</div></div>
<br><br><div class="gmail_quote">On Fri, Sep 27, 2013 at 1:31 PM, Alan Bell <span dir="ltr"><<a href="mailto:alan.bell@libertus.co.uk" target="_blank">alan.bell@libertus.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
We have been using the vtiger click to call integration for a few customers and I have customers wanting inbound screen pop to bring up contact details based on callerID information. The current setup is rather dependent on an asterisk server with an available API or AMI interface and I want to do something for the situation where there is a hosted SIP provider where we have no access to it at all, and fairly dumb SIP handsets.<br>

<br>
I have been investigating OpenSIPs, which is a SIP proxy, it just handles signalling, not the voice calls themselves, so it is does not require a lot of bandwidth or CPU. I have this set up so that it works as a pure proxy, the handsets talk to it as if it was the upstream PBX, it sends all their signalling upstream, all the return signals are passed back to the handset. This basically means it sits in the middle between handsets and exchange and it can see all the calls being initiated. It can't see the VOIP traffic itself, that goes point to point. It can fire events when a call happens, which can include XMLRPC calls, so it can poke the vtiger server with a from address and the dialled number. Having got that into the vtiger server we can log the call and we could use a websockets connection to the end user browser to cause an immediate popup with the contact details on incomming calls. We can also do click-to-call in a similar SIP friendly way, by using the PHP-SIP library to send an INVITE to the user extension, then a REFER to make the extension dial the outbound number, then a BYE to hand off the call.<br>

<br>
Basically this means we can do inbound and outbound call handling with zero dependence on support from the SIP exchange - and it doesn't have to be asterisk or open source, any proprietary SIP platform will do. The handsets that want to integrate with vtiger get reconfigured to point at the vtiger server rather than directly at their exchange, other handsets are not affected. This means in a big organisation we don't need to negotiate for direct admin level access to the exchange, we just reconfigure a few handsets in the sales and marketing department.<br>

<br>
I have most of the bits in place to prove I can do this, but there is a bit of a bug in openSIPs <a href="https://github.com/OpenSIPS/opensips/issues/87" target="_blank">https://github.com/OpenSIPS/<u></u>opensips/issues/87</a> which means it doesn't send valid XMLRPC at the moment, plus I have all the vtiger integration and websockets work left to do.<br>

<br>
If anyone has any feedback on this approach, or wants to collaborate on it then do get in touch.<br>
<br>
Alan Bell<br>
<br>
<br>
The openSIPs website: <a href="http://opensips.org/" target="_blank">http://opensips.org/</a><br>
How the click to call bit works <a href="http://level7systems.co.uk/en/blog/Click+to+Call+with+PHP-SIP" target="_blank">http://level7systems.co.uk/en/<u></u>blog/Click+to+Call+with+PHP-<u></u>SIP</a><span class="HOEnZb"><font color="#888888"><br>

<br>
<br>
-- <br>
Libertus Solutions<br>
<a href="http://libertus.co.uk" target="_blank">http://libertus.co.uk</a><br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</font></span></blockquote></div><br></div>