<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Freepbx - Sangoma CRM API - Initiating calls.]]></title><description><![CDATA[<p dir="auto">Hello!  We have a Freepbx 16 box running FOP2.  We also on that box run the Sangoma CRM api to track and manage recordings on a separate website.</p>
<p dir="auto">It's come to my attention that when a call is initiated using FOP2 (we had to set the originate channel attribute as per <a href="https://forum.fop2.com/discussion/4823/dial-from-fop2-doe-snot-support-calling-to-multiple-pjsip-aors" rel="nofollow ugc">https://forum.fop2.com/discussion/4823/dial-from-fop2-doe-snot-support-calling-to-multiple-pjsip-aors</a>) that the Sangoma CRM api is not receiving the SIP "END" Event which makes the call not be tracked.  Can you point me in the right direction as to whether or not this is a configuration issue, or is it a limitation of the client?</p>
]]></description><link>http://localhost:4567/topic/3052/freepbx-sangoma-crm-api-initiating-calls.</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 11:36:35 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/3052.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Feb 2022 20:47:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Freepbx - Sangoma CRM API - Initiating calls. on Thu, 09 Feb 2023 22:03:39 GMT]]></title><description><![CDATA[<p dir="auto">When dialing with FOP2 we always get a start event.  We still aren't getting the end event when we configure the "originate channel" field.  Example crm log showing call with start and end event when <strong>NOT</strong> using fop2.  When making a call with fop2 we do get a start event.<br />
<img src="https://forum.fop2.com/uploads/editor/2p/9ffdwsaqevtw.jpg" alt="" class="img-markdown  img-fluid" /></p>
]]></description><link>http://localhost:4567/post/12424</link><guid isPermaLink="true">http://localhost:4567/post/12424</guid><dc:creator><![CDATA[Jonathanp]]></dc:creator><pubDate>Thu, 09 Feb 2023 22:03:39 GMT</pubDate></item><item><title><![CDATA[Reply to Freepbx - Sangoma CRM API - Initiating calls. on Thu, 09 Feb 2023 20:44:07 GMT]]></title><description><![CDATA[<p dir="auto">We still haven't found a solution for this.  Any ideas would be appreciated.<br />
originate_variable=hangup_handler_push:crm-hangup,s,1</p>
]]></description><link>http://localhost:4567/post/12423</link><guid isPermaLink="true">http://localhost:4567/post/12423</guid><dc:creator><![CDATA[Jonathanp]]></dc:creator><pubDate>Thu, 09 Feb 2023 20:44:07 GMT</pubDate></item><item><title><![CDATA[Reply to Freepbx - Sangoma CRM API - Initiating calls. on Wed, 27 Apr 2022 03:19:31 GMT]]></title><description><![CDATA[<p dir="auto">We found another potential solution to the issue/difference with USER A (that's not working) vs the other 2 users dialing with fop2.  Basically USER A has 2 things slightly different.  USER A is enabled for SIP softphone (ZULU).  As well she had this field added "Originate Channel" local/7217@from-internal so she could make calls using fop2 to polycom.  Apparently this won't work if ZULU is enabled.  The 2 other users don't have zulu enabled.  The users are able to dial using fop2 without the originate channel field completed.  The 2 users calls do send end events and show up in the CRM api.  Any other ideas what we can do for users enabled with zulu ?</p>
]]></description><link>http://localhost:4567/post/12422</link><guid isPermaLink="true">http://localhost:4567/post/12422</guid><dc:creator><![CDATA[Jonathanp]]></dc:creator><pubDate>Wed, 27 Apr 2022 03:19:31 GMT</pubDate></item><item><title><![CDATA[Reply to Freepbx - Sangoma CRM API - Initiating calls. on Tue, 15 Feb 2022 00:08:50 GMT]]></title><description><![CDATA[<p dir="auto">FOP2 use native Asterisk commands to perform origination, and then the dialplan will be followed to reach the proper device. Then everything is handled via dialplan (FOP2 only crafts and sends an Originate command).</p>
<p dir="auto">Looking at FreePBX dialplan it seems that CRM management is 'signaled' by calling the function func-apply-sipheaders and I <em>think</em>, but I am not sure, that a variable needs to be set:<br />
Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)<br />
So, you can add variables to FOP2 Originate commands, either via individual Button configuration in the FOP2 manager or globally in /usr/local/fop2/fop2.cfg</p>
<p dir="auto">I have <em>no idea</em> if this will work or not, but you might want to try to add an originate_variable entry in fop2.cfg, something like</p>
<pre><code>originate_variable=hangup_handler_push:crm-hangup,s,1
</code></pre>
<p dir="auto">Maybe something like this (or similar to this) might work for you.</p>
]]></description><link>http://localhost:4567/post/12421</link><guid isPermaLink="true">http://localhost:4567/post/12421</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 15 Feb 2022 00:08:50 GMT</pubDate></item><item><title><![CDATA[Reply to Freepbx - Sangoma CRM API - Initiating calls. on Mon, 07 Feb 2022 23:50:29 GMT]]></title><description><![CDATA[<p dir="auto">In other words.  Customer initiates call using fop2 which rings to Polycom phone.  The "start" event is sent via Sangoma CRM API to 3rd party tool.  Customer hangs up phone.  No end event is sent from Sangoma CRM API.</p>
<p dir="auto">If customer places a call using only polycom phone.  The sangoma CRM API sends a "start" even and "end" as expected.</p>
<p dir="auto">Any help would be appreciated!</p>
]]></description><link>http://localhost:4567/post/12420</link><guid isPermaLink="true">http://localhost:4567/post/12420</guid><dc:creator><![CDATA[Jonathanp]]></dc:creator><pubDate>Mon, 07 Feb 2022 23:50:29 GMT</pubDate></item></channel></rss>