Parking BIG problem!

  1. ‹ Older
  2. 7 years ago

    Well, i fix context by adding "]" in fop2_override...
    Was:

    [fop2-park]
    exten => _X.,1,Set(ARRAY(RETURN_EXTENSION,RETURN_CONTEXT,PARKBUTTON)=${CUT(EXTEN,:,1)},${CUT(EXTEN,:,2)},${CUT(EXTEN,:,3)})
    exten => _X.,2,GotoIf($["${PARKBUTTON}" = "PARK/default"?5)
    exten => _X.,3,GotoIf($["${PARKBUTTON}" = ""?5)
    exten => _X.,4,Set(PARKINGLOT=${PARKBUTTON:5})
    exten => _X.,5,Park(,sc(${RETURN_CONTEXT},${RETURN_EXTENSION},1))

    Fixed

    [fop2-park]
    exten => _X.,1,Set(ARRAY(RETURN_EXTENSION,RETURN_CONTEXT,PARKBUTTON)=${CUT(EXTEN,:,1)},${CUT(EXTEN,:,2)},${CUT(EXTEN,:,3)})
    exten => _X.,2,GotoIf($["${PARKBUTTON}" = "PARK/default"]?5)
    exten => _X.,3,GotoIf($["${PARKBUTTON}" = ""]?5)
    exten => _X.,4,Set(PARKINGLOT=${PARKBUTTON:5})
    exten => _X.,5,Park(,sc(${RETURN_CONTEXT},${RETURN_EXTENSION},1))
  3. But its not solve my problem with CID prepending(((

  4. admin

    14 Jan 2017 Administrator

    What is your problem with cid prepending?

  5. It isn work :-(

  6. admin

    14 Jan 2017 Administrator

    What do you mean by cid prepending? Sorry but I am lost. What does it have to do with parking?

  7. Edited 7 years ago by bazoozoo

    -image-

  8. I trying to understand, it is dont work because of fop2_override, or beacose freepbx bug(

  9. When i parking a call with sip client by transfer to number *88 it is transfers with CID prepending. It is a proper behavior.
    When i transfer throu fop2, its just park without CID prepend.

  10. admin

    15 Jan 2017 Administrator

    That CID prepend you post is a dialplan feature of FreePBX, as such, you won't find that on native FOP2 as FOP2 will use just regular Asterisk applications and no special dialplan hacks. However, you can very well look at the parking dialplan generated by freepbx when that callerid prepend is configured, and model/replicate/mimic the fop2-park context to behave in a similar way. It is up to you to model contexts with your backend configurator, as PARK does not have feature to manipulate callerid in a native form.

    So, the same way you found a typo, you can very well review the parking contexts on FreePBX and modify the fop2-park context to change callerid on call return, perhaps some variables are set, etc.. I have no idea, and it is not the duty/task of FOP2 to know every possible backend dialplan changes over time with custom features.

    If you find the way to mimic behaviour, then I can document that on members.asternic.biz or FAQ... or perhaps update the generate_override_contexts.pl script.

    Best regards,

  11. @admin you can very well look at the parking dialplan generated by freepbx

    Already did it, and it is veeeeeeery confusing(((((

  12. admin

    17 Jan 2017 Administrator

    Well, you chose FreePBX., you have to live with it. :) It is not a FOP2 issue. If you catch me on the live help and I happen to have time, we can try to look at the dialplan together. (Unfortunately, lately I really lack time, but you might want to try anyways).
    Best regards,

  13. @admin you chose FreePBX

    It's choise of my employer :-(

    @admin you have to live with it

    Is it life? I don't think so! :-D

    @admin It is not a FOP2 issue

    Agree!

    @admin If you catch me on the live

    Thank you, if i could not resolve the problem by myself, i will! :-)

  14. Edited 7 years ago by bazoozoo

    Well, i am stuppid))))
    I realise that the problem not in the CID prepend or else...
    Problem is that FOP2 is not display who has parked the call!
    And it is only if i parking from the fop2!
    When i park a call by feauture code- it is normal....
    FOP2 Park like this:
    -image-
    Feauturecode psrk like this:
    -image-

    [fop2-park]
    exten => _X.,1,Set(ARRAY(RETURN_EXTENSION,RETURN_CONTEXT,PARKBUTTON)=${CUT(EXTEN,:,1)},${CUT(EXTEN,:,2)},${CUT(EXTEN,:,3)})
    exten => _X.,2,GotoIf($["${PARKBUTTON}" = "PARK/default"]?5)
    exten => _X.,3,GotoIf($["${PARKBUTTON}" = ""]?5)
    exten => _X.,4,Set(PARKINGLOT=${PARKBUTTON:5})
    exten => _X.,5,Park(,sc(${RETURN_CONTEXT},${RETURN_EXTENSION},1))
  15. But is there a way to see who parked call?

  16. admin

    19 Jan 2017 Administrator

    I will make tests with asterisk 13 when I have time with parking, as it should work fine. Today is now too late and my internet connection is down, using my phone to tether.

  17. Edited 7 years ago by AlexRS

    I tryed to park call by 'park()' function in dialplan. I cant get it work to show who parked the call. So I think, its asterisk Park() function issue...

  18. @AlexRS I tryed to park call by 'park()' function in dialplan. I cant get it work to show who parked the call. So I think, its asterisk Park() function issue...

    I tried it before opening this theme. But! When i park call with feature code *88 or transfer call through sip to park lot client? it's work perfect.

  19. Deleted 7 years ago by bazoozoo
  20. Edited 7 years ago by bazoozoo

    I have downgrade asterisk to version 11.25.1. For now, When call came to queue and agent answered the call, when parking (through fop2) a call happened this:

    -- Executing [999,from-internal,PARK/default@fop2-park:5] Park("Local/999@from-queue-0000000f;2", ",from-internal,999,1,s") in new stack

    If call not came to queue (intercepted from trunk by agent), when parking (through fop2) a call happened this:

    -- Executing [999,from-internal,PARK/default@fop2-park:5] Park("SIP/dsi-00000008", ",from-internal,999,1,s") in new stack

    And in this case, Park works correct.

    Differense is what fop2 trying to park:

    Local/999@from-queue-0000000f;2

    or

    SIP/dsi-00000008

  21. For now i use CALLERID(name) to identify whos park a call, but, i think, it is not a good solution

    [fop2-park]
    exten => _X.,1,Set(ARRAY(RETURN_EXTENSION,RETURN_CONTEXT,PARKBUTTON)=${CUT(EXTEN,:,1)},${CUT(EXTEN,:,2)},${CUT(EXTEN,:,3)})
    exten => _X.,2,GotoIf($["${PARKBUTTON}" = "PARK/default"]?5)
    exten => _X.,3,GotoIf($["${PARKBUTTON}" = ""]?5)
    exten => _X.,4,Set(PARKINGLOT=${PARKBUTTON:5})
    exten => _X.,5,Set(CALLERID(name)=______________${RETURN_EXTENSION})
    exten => _X.,6,Park(,${RETURN_CONTEXT},${RETURN_EXTENSION},1,s)

or Sign Up to reply!