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. call pickup function causes dummy entry in cdr database

call pickup function causes dummy entry in cdr database

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 108 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.
  • M
    M
    massimo.chima
    wrote on last edited by
    #1

    Hi.
    I read another thread into the forum with the same problem I have and I tried to use fixes suggested by Nicolás, but they don't work for me 😞

    This is what I see in cdr database when I do a call pickup from fop2 (2.26 or 2.27)

    Src Chan. Source DID App. Dest. Dst. Chan.[/color:11z3rlyo]

    (wrong cdr using FOP2 call pickup)[/color:11z3rlyo]
    Local UNKNOWN QueueLog dummy
    Local UNKNOWN Answer dummy

    (normal cdr without FOP2)[/color:11z3rlyo]
    SIP 0695550xxx[/color:11z3rlyo] 0690281458 Queue 200 Local
    Local 0695550xxx[/color:11z3rlyo] Dial 100 SIP
    SIP 0695550xxx [/color:11z3rlyo] 0690281xxx [/color:11z3rlyo] Dial 100 SIP

    what can I do?
    Thanks
    Massimo

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

      Hi,

      What you see is an origination performed by FOP2 to a custom context to log a special entry in the queue_log file. That origination is fired from the FOP2Callbacks.pm file, you can edit that file to prevent that origination from hapenning:

          if($command eq "LEAVE") {
      
              # Used with fop2-dummy context for writing a line
              # to queue_log so redirects OUT of a queue are not
              # counted as abandoned calls
      
              %event = @_;
              ...
              ...
      

      Change that to something like "LEAVExxxx" so that code block is never executed.

      As I explained before, that code block adds a special entry in the queue_log file because when you pickup a call out of a queue it is logged as an ABANDONED call (asterisk queue application behavior, and if you think about it is pretty logicall). But from a manager perspective, the call was indeed handled, not abandoned, so FOP2 will log an extra entry in the queue_log file that Asternic reporting tools can understand so it does not count that call as abandoned. If you modify the above, it wil count that as abandoned in queue reports.

      Best regards,

      1 Reply Last reply
      0
      • M
        M
        massimo.chima
        wrote on last edited by
        #3

        Hi Nicolás.
        Thanks for your answer
        So this is an asterisk issue 😞
        .... yes, from my perspective it's absolutely an issue (a black hole in asterisk call reporting), because the call is not abandoned.
        It's not enough for me to count the call (with Asternic reporting tools).
        I need to know all informations about every call.
        Anyway if at the moment there is no workaround for it, I'll have to avoid this feature until asterisk developers will fix it 😞

        Thanks again for your support
        Massimo

        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