Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. Freepbx - Sangoma CRM API - Initiating calls.

Freepbx - Sangoma CRM API - Initiating calls.

Scheduled Pinned Locked Moved Support
6 Posts 3 Posters 400 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    C
    CurtisG
    wrote on last edited by
    #1

    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.

    It's come to my attention that when a call is initiated using FOP2 (we had to set the originate channel attribute as per https://forum.fop2.com/discussion/4823/dial-from-fop2-doe-snot-support-calling-to-multiple-pjsip-aors) 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?

    1 Reply Last reply
    0
    • J
      J
      Jonathanp
      wrote on last edited by
      #2

      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.

      If customer places a call using only polycom phone. The sangoma CRM API sends a "start" even and "end" as expected.

      Any help would be appreciated!

      1 Reply Last reply
      0
      • N
        N
        nicolas
        wrote on last edited by
        #3

        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).

        Looking at FreePBX dialplan it seems that CRM management is 'signaled' by calling the function func-apply-sipheaders and I think, but I am not sure, that a variable needs to be set:
        Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)
        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

        I have no idea if this will work or not, but you might want to try to add an originate_variable entry in fop2.cfg, something like

        originate_variable=hangup_handler_push:crm-hangup,s,1
        

        Maybe something like this (or similar to this) might work for you.

        1 Reply Last reply
        0
        • J
          J
          Jonathanp
          wrote on last edited by
          #4

          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 ?

          1 Reply Last reply
          0
          • J
            J
            Jonathanp
            wrote on last edited by
            #5

            We still haven't found a solution for this. Any ideas would be appreciated.
            originate_variable=hangup_handler_push:crm-hangup,s,1

            1 Reply Last reply
            0
            • J
              J
              Jonathanp
              wrote on last edited by
              #6

              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 NOT using fop2. When making a call with fop2 we do get a start event.

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              Powered by NodeBB Contributors
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups