<font style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt">In FreePBX<div><br></div><div>Connectivity --> Trunks  (select your trunk you want to use for vtiger outbound calling, you might only have 1 trunk to use, you might a few to pick from, dont matter if its SIP, DAHDi, IAX or what ever, if you have more than 1 trunk you need to pick one)</div><div><br></div><div>General Settings and Outgoing Settings Sections will both have "Trunk Name"</div><div><br></div><div>In Vtiger </div><div><br></div><div>Settings --> CRM Settings -- > Integration --> PBXManager </div><div><br></div><div>"Outbound Trunk"</div><div><br></div><div>all 3 must match</div><div><br></div><div><br></div><div>*************************************************************************************************************************</div><div><br></div><div><div>In Vtiger </div><div><br></div><div>Settings --> CRM Settings -- > Integration --> PBXManager </div></div><div><br></div><div>"Outbound Context" must match a context in extensions.conf in that context you must have exten => _X.,1,agi(agi://0.0.0.0/incoming.agi)</div><div><br></div><div>i used "vtiger_outbound" so I have "<span style="font-size: 10pt;">vtiger_outbound" in the "Outbound Context" field in PBX Manager and</span></div><div><span style="font-size: 10pt;"><br></span></div><div><span style="font-size: 10pt;">[vtiger_outbound]</span></div><div>exten => _X.,1,agi(agi://0.0.0.0/incoming.agi)</div><div><br></div><div>in extensions.conf</div><div><br></div><div><br></div><div>you still need all the other setting that have been posted before</div><div><br></div><div>check all the settings in VtigerAsteriskConnector.properties</div><div><br></div><div>ServerIP = 127.0.0.1</div><div>serverport = {pick a unused port}</div><div><br></div><div>make sure in the PBX Manager "vtiger Asterisk App URL matches, should be </div><div><br></div><div>http://127.0.0.1:{the port you picked}</div><div><br></div><div><br></div><div><div>AsteriskServerIP = 127.0.0.1</div><div>AsteriskServerPort = {your AMI or Proxy Port}</div><div>AsteriskUserName = {your AMI or Proxy User Name}</div><div>AsteriskPassword = {your secret to the above user}</div></div><div><br></div><div><br></div><div>make sure your AMI user (in manger.conf or refer to your proxy documentation) for above with</div><div><br></div><div><br></div><div><div>read = all,system,call,log,verbose,command,agent,user,config, originate</div><div>write = all,system,call,log,verbose,command,agent,user,config, originate</div></div><div><br></div><div>*** proxy should be used for large deployments, astmanproxy works well</div><div><br></div><div><br></div><div>make sure webapp.sh and agi.sh are actually running on your server and set to start on boot</div><div><br></div><div><br></div><div>the above will get click to call to work and your 99% setup for inbound</div><div><br></div><div><br></div><div><br></div><div>for inbound notification you need to put exten => _X.,1,agi(agi://0.0.0.0/incoming.agi) in a existing context in extensions.conf that will fire on inbound, this may not be same for everyone</div><div><br></div><div>we used [from-internal] which will make vtiger agi fire for any call goign though PBX on our system from outside or inside to inside</div><div><br></div><div>we could have used [from-trunk] that would make vtiger agi fire only on outside calls coming from the trunk</div><div><br></div><div>yours may be different, this would be more of question for your asterisk admin then vtiger as to how you should do this</div><div><br></div><div><br></div><div><span style="font-size: 10pt;"><br></span></div><div><span style="font-size: 10pt;"> </span></div><div><br></div><div><br></div><div><br><br><font size="2" face="Tahoma, Arial, Sans-Serif"><hr size="2" width="100%" align="center"><strong>From</strong>: "Zebra Hosting" <support@zebrahosting.eu><br><strong>Sent</strong>: Wednesday, August 20, 2014 10:49 AM<br><strong>To</strong>: "vtigercrm-developers@lists.vtigercrm.com" <vtigercrm-developers@lists.vtigercrm.com><br><strong>Subject</strong>: Re: [Vtigercrm-developers] Asterisk Good News</font><br><br><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Thanks for sharing the good news!</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Unfortunately I can't get it to work. Guess a few more steps needed in your descriptions :-)</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
This part:</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<span style="font-family: arial, helvetica, sans-serif; font-size: 13px;">keep in mind Asterisk has a general settings and a outbound settings for each trunk both have trunk name and they must match</span></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<span style="font-family: arial, helvetica, sans-serif; font-size: 13px;">Left me puzzled</span><font face="arial,helvetica,sans-serif"><span style="font-size: 13px;">..</span></font></div>
<div><font face="arial,helvetica,sans-serif"><span style="font-size: 13px;"><br>
</span></font></div>
<div><font face="arial,helvetica,sans-serif"><span style="font-size: 13px;">The outbound trunk you mention, is a SIP trunk or something you setup for vTiger only? (I am on FreePBX so things might be a little different.</span></font></div>
<div><font face="arial,helvetica,sans-serif"><span style="font-size: 13px;"><br>
</span></font></div>
<div><font face="arial,helvetica,sans-serif"><span style="font-size: 13px;">Thanks,</span></font></div>
<div><font face="arial,helvetica,sans-serif"><span style="font-size: 13px;"><br>
</span></font></div>
<div><font face="arial,helvetica,sans-serif"><span style="font-size: 13px;">Bastiaan Houtkooper</span></font></div>
<div><font face="arial,helvetica,sans-serif"><span style="font-size: 13px;">Zebra Hosting</span></font></div>
<div><font face="arial,helvetica,sans-serif"><span style="font-size: 13px;"><br>
</span></font></div>
<div><font face="arial,helvetica,sans-serif"><span style="font-size: 13px;"><br>
</span></font></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<span id="OLK_SRC_BODY_SECTION" style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>"<a href="mailto:vtiger@camden.net">vtiger@camden.net</a>" <<a href="mailto:vtiger@camden.net">vtiger@camden.net</a>><br>
<span style="font-weight:bold">Reply-To: </span><<a href="mailto:vtiger@camden.net">vtiger@camden.net</a>>, <<a href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</a>><br>
<span style="font-weight:bold">Date: </span>Tue, 19 Aug 2014 21:36:16 -0400<br>
<span style="font-weight:bold">To: </span>Rishab K <<a href="mailto:rishab.k@vtiger.com">rishab.k@vtiger.com</a>>, <<a href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</a>><br>
<span style="font-weight:bold">Subject: </span>[Vtigercrm-developers] Asterisk Good News<br>
</div>
<div><br>
</div>
<font style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt"><font style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt"><br>
after starting from scratch the Asterisk Connector and PBX Manager are working consistently with one minor issue
<div><br>
</div>
<div>click to call:</div>
<div><br>
</div>
<div>when you call out the person you call sees caller ID as them self</div>
<div><br>
</div>
<div>IE:</div>
<div><br>
</div>
<div>I click my cell phone number, my extension rings, I answer my extension and Asterisk calls my cell</div>
<div><br>
</div>
<div>my cell phone rings, but the callerID on my cell is saying I am getting a incoming call from my cell, when it should be the default outbound CID of my extension</div>
<div><br>
</div>
<div>the call does connect, just has the wrong callerID</div>
<div><br>
</div>
<div>on phones that support both Cname and CiD, the CID still comes up as the person you are calling see the CID as them selfs but</div>
<div><br>
</div>
<div>the Cname is set to the Display Name of the Extension which is technically correct but the whole callerID string should be set to the Outbound CID string of the extensions settings</div>
<div><br>
</div>
<div>most companies will have the display name as the person real name or just the extensions number where outbound CID will be "NAME"<NUMBER> of how the company wants outside callers to see the callerID info </div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>for those that are going to ask how we got it to work</div>
<div><br>
</div>
<div>you must be on rev 14179 or higher, you must also update PBX Manager</div>
<div><br>
</div>
<div>you need to have</div>
<div><br>
</div>
<div><span style="font-family: arial, helvetica, sans-serif;">[vtiger_outbound]</span><br style="font-family: arial, helvetica, sans-serif;">
<span style="font-family: arial, helvetica, sans-serif;">exten => _X.,1,Agi(agi://</span><a href="http://12.5.115.199/incoming.agi" ?_blank?="" target="_blank" style="color: rgb(73, 118, 153); text-decoration: none; font-family: arial, helvetica, sans-serif;">0.0.0.0/incoming.agi</a><span style="font-family: arial, helvetica, sans-serif;">)</span></div>
<div><span style="font-family: arial, helvetica, sans-serif;"><br>
</span></div>
<div><span style="font-family: arial, helvetica, sans-serif;">in extensions.conf and outbound context in PBX Manager also set to "vtiger_outbound"</span></div>
<div><span style="font-family: arial, helvetica, sans-serif;">actually as long as both match it will work</span></div>
<div><span style="font-family: arial, helvetica, sans-serif;"><br>
</span></div>
<div><span style="font-family: arial, helvetica, sans-serif;">the outbound trunk is the name of your trunk in Asterisk to use for outbound calling, keep in mind Asterisk has a general settings and a outbound settings for each trunk both have trunk name and
 they must match</span></div>
<div><span style="font-family: arial, helvetica, sans-serif;"><br>
</span></div>
<div><span style="font-family: arial, helvetica, sans-serif;">for inbound even though we tried to set default context to "vtiger_inbound" in asterisk we never got the AGI to fire from there and for us it broke other stuff, we put "</span><span style="font-size: 10pt; font-family: arial, helvetica, sans-serif;">exten
 => _X.,1,Agi(agi://</span><a href="http://12.5.115.199/incoming.agi" ?_blank?="" target="_blank" style="font-size: 10pt; color: rgb(73, 118, 153); text-decoration: none; font-family: arial, helvetica, sans-serif;">0.0.0.0/incoming.agi</a><span style="font-size: 10pt; font-family: arial, helvetica, sans-serif;">)"
 into the from-internal context in extensions.conf as that is our default context and it works just fine</span></div>
<div><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><br>
</span></div>
<div><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">yes that is correct you will have 2 contexts in extensions.conf both with </span><span style="font-size: 10pt; font-family: arial, helvetica, sans-serif;">"</span><span style="font-size: 10pt; font-family: arial, helvetica, sans-serif;">exten
 => _X.,1,Agi(agi://</span><a href="http://12.5.115.199/incoming.agi" ?_blank?="" target="_blank" style="font-size: 10pt; color: rgb(73, 118, 153); text-decoration: none; font-family: arial, helvetica, sans-serif;">0.0.0.0/incoming.agi</a><span style="font-size: 10pt; font-family: arial, helvetica, sans-serif;">)"</span></div>
<div><br>
</div>
<div><br>
</div>
</font><br>
</font>_______________________________________________ <a href="http://www.vtiger.com/">
http://www.vtiger.com/</a></span><br></div></font>