<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi mate<br>
<br>
Yeah I would be interested in seeing your config, especially the
context you have defined in your asterisk settings (extensions.conf
I believe).<br>
<br>
Are you able to link me the bug you have reported?<br>
<br>
Thanks<br>
<br>
<div class="moz-cite-prefix">On 28/10/14 17:19, Alex Martin wrote:<br>
</div>
<blockquote
cite="mid:ab5b00d2-8edb-4c82-a9b4-0fc0f3c8243e@email.bluemailapp.com"
type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<style type="text/css"> pre.blue {white-space: pre-wrap; word-wrap:break-word; font-family: sans-serif; margin-top: 0px} div, p { -ms-word-break: break-all; word-break: break-all; word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; -ms-hyphens: auto;hyphens: auto;} a {color: #226EF9 ;}</style>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<style type="text/css"> pre.blue {white-space: pre-wrap; word-wrap:break-word; font-family: sans-serif; margin-top: 0px} div, p { -ms-word-break: break-all; word-break: break-all; word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; -ms-hyphens: auto;hyphens: auto;} a {color: #226EF9 ;}</style>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<p dir="ltr">I can call out fine without needed any changes to the
php files. There ! is an
issue with the callerid with the current connector. I've been
working with the vtiger team to correct this but I haven't been
given a time frame for a updated version. </p>
<p dir="ltr">I've used it on vanilla asterisk and free pbx etc,
are you sure you have the outbound trunk not the context set
correctly and its dialing the correct number format...for
example most providers in the USA require the 1 in front of
dialed numbers. </p>
<p dir="ltr">I can send you an example configuration if it helps.
</p>
<p dir="ltr">Alex </p>
<p dir="ltr">Sent from <a moz-do-not-send="true"
href="http://r.bluemailapp.com">Blue Mail</a></p>
<p dir="ltr">I can call out fine without needed any changes to the
php files. There is an issue with the callerid with the current
connector. I've been working with the vtiger team to correct
this but I haven't been given a time frame for a updated
version. </p>
<p dir="ltr">I've used it on vanilla asterisk and free pbx etc,
are you sure you have the outbound context set correctly and its
dialing the correct number format...for example most providers
in the USA require the 1 in front of dialed numbers. </p>
<p dir="ltr">I can send you an example configuration if it helps.
</p>
<p dir="ltr">Alex </p>
<p dir="ltr">Sent from <a moz-do-not-send="true"
href="http://r.bluemailapp.com">Blue Mail</a></p>
<div class="gmail_quote" contenteditable="true">On Oct 27, 2014,
at 11:59 PM, Richard Hills - Technologywise <<a
moz-do-not-send="true" href="mailto:richard@tw.co.nz"
target="_blank">richard@tw.co.nz</a>> wrote:
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;"> Okay, really no idea on this one.<br>
<br>
I added the context as below:<br>
<blockquote type="cite">[vtiger]<br>
exten => _X.,1,Agi(agi://192.168.234.6/incoming.agi)<br>
</blockquote>
<br>
This is different to the wiki documentation of an inbound and
outbound context, but seeing as the wiki document seems to
actually be for the hosted version I think this is correct.<br>
<br>
I then needed to edit the PBX modules file
connectors/PBXManager.php to change <br>
$extension = $user->phone_crm_extension;<br>
to<br>
$extension = $user->ast_extension;<br>
<br>
Now I can make a call by clicking on the number in the CRM.<br>
<br>
My handset dials, showing incoming call from the number I
wanted to dial, I pick up and get greeted by the voicemail
message from my extension, so it seems that the number I want
to call has been ignored and my extension has dialled my
extension... <br>
<br>
Would love to hear any feedback on this, see any config from
someone for whom this is working for, version numbers etc.<br>
<br>
Thanks<br>
<br>
<br>
<div class="moz-cite-prefix">On 28/10/14 15:53, Richard Hills
- Technologywise wrote:<br>
</div>
<blockquote cite="mid:544F0510.60400@tw.co.nz" type="cite">
Yes, the below output is from the cli.<br>
Still having an issue but will battle this a while before
posting more logs / asking for more help.<br>
<br>
Thank you Alex.<br>
<br>
<div class="moz-cite-prefix">On 28/10/14 15:33, Alex Martin
wrote:<br>
</div>
<blockquote
cite="mid:92d94682-4aeb-4b0b-8bbe-8ff447b1a4b2@email.bluemailapp.com"
type="cite">
<p dir="ltr">Did you watch the output from the asterisk
cli? </p>
<p dir="ltr">Alex<br>
</p>
<div class="gmail_quote">On Oct 27, 2014, at 10:29 PM,
Richard Hills - Technologywise <<a
moz-do-not-send="true" href="mailto:richard@tw.co.nz"
target="_blank">richard@tw.co.nz</a>> wrote:
<blockquote class="gmail_quote" style="margin: 0pt 0pt
0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;"> Indeed, this turned out to be
something on our end.<br>
<br>
We now however have an issue where the outgoing call
is failing. I will continue to look at this, but if
anyone can tell me what is going on feel free. Here is
the ACM log:<br>
<br>
<blockquote type="cite"> == Extension Changed
412[ext-local] new state Ringing for Notify User 400
<br>
== Extension Changed 412[ext-local] new state
InUse for Notify User 400 <br>
<span> == Starting SIP/412-00000c03 at<a
moz-do-not-send="true" href="tel:075711060">
075711060</a>,412,1 failed so falling back to
exten 's'</span><br>
<span> == Starting SIP/412-00000c03 at<a
moz-do-not-send="true" href="tel:075711060">
075711060</a>,s,1 still failed so falling back
to context 'default'</span><br>
-- Executing [s@default:1]
Playback("SIP/412-00000c03", "vm-goodbye") in new
stack<br>
-- <sip c03="c03" gt="gt" playing=""
apos="apos" vm-goodbye.gsm="vm-goodbye.gsm"
language="" en="en"><br>
</sip></blockquote>
<br>
extension 412 tries to call a number (not in the acm
log above).<br>
extension 412 phone does ring, however is greeted only
by a goodbye message.<br>
<br>
<div class="moz-cite-prefix">On 28/10/14 14:41, Alex
Martin wrote:<br>
</div>
<blockquote
cite="mid:657d7aae-9be8-4821-a991-1896b88bd548@email.bluemailapp.com"
type="cite">
<p dir="ltr">Do you have the vtiger ip in the
manager.conf file for asterisk? Also reloaded
asterisk to take effect. </p>
<p dir="ltr">It doesn't look like it's connecting. </p>
<p dir="ltr">Alex<br>
<br>
</p>
<div class="gmail_quote">On Oct 27, 2014, at 9:32
PM, Richard Hills - Technologywise <<a
moz-do-not-send="true"
href="mailto:richard@tw.co.nz" target="_blank">richard@tw.co.nz</a>>
wrote:
<blockquote class="gmail_quote" style="margin: 0pt
0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
204, 204); padding-left: 1ex;"> Hi guys<br>
<br>
Unfortunately I am not having any more luck with
the asterisk connector now that I have got the
PBXManager configuration screen working.<br>
<br>
<span> From the connector log (logs/nohup.webapp<a
moz-do-not-send="true" href="tel:20141028">.20141028</a>-13:43.out):</span><br>
<blockquote type="cite">Oct 28, 2014 1:57:54 PM
com.vtiger.apps.asterisk.webapp.helpers.b a<br>
INFO: Outbound Call<br>
Oct 28, 2014 1:57:54 PM
com.vtiger.apps.asterisk.webapp.helpers.b a<br>
INFO: Asterisk Login Successfull<br>
Oct 28, 2014 1:57:54 PM
com.vtiger.apps.asterisk.webapp.helpers.b a<br>
INFO: Successfully Authenticated Vtiger Secret
Key<br>
<span> 849304 [qtp<a moz-do-not-send="true"
href="tel:611437735">611437735</a>-14]
INFO
org.asteriskjava.manager.internal.ManagerConnectionImpl
- Connecting to<a moz-do-not-send="true"
href="tel:192168212"> 192.168.212</a>.6:5060</span><br>
Oct 28, 2014 1:57:54 PM
com.vtiger.apps.asterisk.webapp.c.b a<br>
SEVERE: null<br>
java.net.ConnectException: Connection refused<br>
at
java.net.PlainSocketImpl.socketConnect(Native
Method)<br>
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)<br>
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)<br>
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)<br>
at
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)<br>
at
java.net.Socket.connect(Socket.java:589)<br>
at
org.asteriskjava.util.internal.SocketConnectionFacadeImpl.<init
gt="gt"><br>
at
org.asteriskjava.manager.internal.ManagerConnectionImpl.createSocket(ManagerConnectionImpl.java:729)<br>
at
org.asteriskjava.manager.internal.ManagerConnectionImpl.connect(ManagerConnectionImpl.java:708)<br>
at
org.asteriskjava.manager.internal.ManagerConnectionImpl.doLogin(ManagerConnectionImpl.java:490)<br>
at
org.asteriskjava.manager.internal.ManagerConnectionImpl.login(ManagerConnectionImpl.java:438)<br>
at
org.asteriskjava.manager.internal.ManagerConnectionImpl.login(ManagerConnectionImpl.java:423)<br>
at
org.asteriskjava.manager.DefaultManagerConnection.login(DefaultManagerConnection.java:294)<br>
at
com.vtiger.apps.asterisk.webapp.a.a.a(Unknown
Source)<br>
at
com.vtiger.apps.asterisk.webapp.c.b.a(Unknown
Source)<br>
at
com.vtiger.apps.asterisk.webapp.c.b.doPost(Unknown
Source)<br>
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)<br>
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:770)<br>
at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)<br>
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)<br>
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)<br>
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)<br>
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)<br>
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)<br>
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)<br>
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)<br>
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)<br>
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)<br>
at
org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)<br>
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)<br>
at
org.eclipse.jetty.server.Server.handle(Server.java:370)<br>
at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)<br>
at
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)<br>
at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)<br>
at
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)<br>
at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)<br>
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)<br>
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)<br>
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)<br>
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)<br>
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)<br>
at
java.lang.Thread.run(Thread.java:745)<br>
<br>
</init><br>
</blockquote>
<br>
Any hints as to how to debug this issue would be
great. ie. If there is another way to try to
connect to the same area that the connector
tries to.<br>
<br>
Couple of notes:<br>
<ul>
<li>IP is correct</li>
<li>Port is correct</li>
<li>asterisk 1.8.20.0</li>
<li>java version 1.8.0_20<br>
</li>
</ul>
<br>
TIA<br>
<br>
<div class="moz-signature">-- <br>
<p>Richard Hills<br>
TechnologyWise Ltd, Tauranga, NZ<br>
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:richard@tw.co.nz">richard@tw.co.nz</a><br>
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="http://www.technologywise.co.nz">www.technologywise.co.nz</a><br>
ph: +64 (0)7 571 1060<br>
fax: +64 (0)7 571 1061</p>
<img moz-do-not-send="true"
src="cid:part1.06050208.01090701@tw.co.nz"
alt="Basestation"> </div>
<pre class="blue"><hr>
<a moz-do-not-send="true" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<p>Richard Hills<br>
TechnologyWise Ltd, Tauranga, NZ<br>
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:richard@tw.co.nz">richard@tw.co.nz</a><br>
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="http://www.technologywise.co.nz">www.technologywise.co.nz</a><br>
ph: +64 (0)7 571 1060<br>
fax: +64 (0)7 571 1061</p>
<img moz-do-not-send="true"
src="cid:part9.04060705.04020700@tw.co.nz"
alt="Basestation"> </div>
<pre class="blue"><hr>
<a moz-do-not-send="true" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<p>Richard Hills<br>
TechnologyWise Ltd, Tauranga, NZ<br>
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:richard@tw.co.nz">richard@tw.co.nz</a><br>
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="http://www.technologywise.co.nz">www.technologywise.co.nz</a><br>
ph: +64 (0)7 571 1060<br>
fax: +64 (0)7 571 1061</p>
<img moz-do-not-send="true"
src="cid:part20.00030807.03010607@tw.co.nz"
alt="Basestation"> </div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<p>Richard Hills<br>
TechnologyWise Ltd, Tauranga, NZ<br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:richard@tw.co.nz">richard@tw.co.nz</a><br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="http://www.technologywise.co.nz">www.technologywise.co.nz</a><br>
ph: +64 (0)7 571 1060<br>
fax: +64 (0)7 571 1061</p>
<img moz-do-not-send="true"
src="cid:part21.06050105.09030506@tw.co.nz"
alt="Basestation"> </div>
<pre class="blue"><hr>
<a moz-do-not-send="true" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<p>Richard Hills<br>
TechnologyWise Ltd, Tauranga, NZ<br>
<a class="moz-txt-link-abbreviated" href="mailto:richard@tw.co.nz">richard@tw.co.nz</a><br>
<a class="moz-txt-link-abbreviated" href="http://www.technologywise.co.nz">www.technologywise.co.nz</a><br>
ph: +64 (0)7 571 1060<br>
fax: +64 (0)7 571 1061</p>
<img src="cid:part29.08030605.08020507@tw.co.nz" alt="Basestation">
</div>
</body>
</html>