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. Parking lot

Parking lot

Scheduled Pinned Locked Moved Support
7 Posts 4 Posters 452 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.
  • H
    H
    hrod761
    wrote on last edited by
    #1

    Hello guys, getting the following error when trying to transfer to parkinglot

    Channel 'SIP/7832-00000002' sent to invalid extension but no invalid handler: context,exten,priority=fop2-park,7834,from-sip,PARK/DEFAULT,1

    Buttons.cfg >>>>>>

    [PARK/default]
    label=Parking Main
    type=park
    extension=700
    context=parkedcalls

    res_parking.conf>>>>>>
    [default]
    parkext => 700
    ;parkext_exclusive=yes
    parkpos => 711-720
    context => parkedcalls
    parkinghints = yes
    parkingtime => 300
    comebacktoorigin = yes

    extensions.conf >>>>>>>>>>
    [from-sip]
    included => parkedcalls

    [parkedcalls]
    exten => 700,1,Park()
    exten => 701,1,ParkedCall(default,701)
    exten => 702,1,ParkedCall(default,702)
    exten => 703,1,ParkedCall(default,703)

    what am i missing?

    Thanks.

    1 Reply Last reply
    0
    • H
      H
      hrod761
      wrote on last edited by
      #2

      Here is our setup:

      Asterisk 13 vanilla
      FOP2 version 2.30.06 on separate server

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

        You are missing the fop2-park context, extract from the FOP2 README:

        Non FreePBX:

        Call Parking:

        In order to park calls you have to add a special context to your dialplan:

        [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(,${RETURN_CONTEXT},${RETURN_EXTENSION},1,s)

        This context is already created when you run the generate_override_context.pl
        script at installation time.

        Park Button Definition:

        The autoconfiguration script will create the parking buttons itself. If
        you do not use FreePBX, the correct PARK definition in buttons.cfg looks
        like this:

        [PARK/default]
        type=park
        extension=700
        label=Parking
        context=parkedcalls

        Where default is the parkinglot.

        1 Reply Last reply
        0
        • N
          N
          nilsonpena
          wrote on last edited by
          #4

          Same problem here! But, I´m using Asterisk 11.15 without freepbx.

          When I try to park a call, it drops, and Asterisk give me the following output:

          == Spawn extension (fop2-park, 1299,FUNCIONARIOS,PARK/DEFAULT, 1) exited non-zero on 'DGV/2'
          [Aug 22 21:20:16] WARNING[9686][C-000001fe]: pbx.c:6646 __ast_pbx_run: Channel 'DGV/2' sent to invalid extension but no invalid handler: context,exten,priority=fop2-park,1299,FUNCIONARIOS,PARK/DEFAULT,1

          I have already put fop2-park at extensions.conf and the button config at fop2.cfg.

          Am I missing, something?

          Thank you

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

            It is a case issue (upper/lowercase). The next release due out shortly will most probably fix that.

            best regards,

            1 Reply Last reply
            0
            • N
              N
              nilsonpena
              wrote on last edited by
              #6

              Thank you!

              I´ll be waiting...

              best regards,

              1 Reply Last reply
              0
              • I
                I
                itcubed
                wrote on last edited by
                #7

                Hi,

                I was getting the following error when using the [fop2-park] code above:

                [31/01/2018 - 22:32] WARNING[15380][C-000001de]: pbx.c:4502 pbx_substitute_variables_helper_full: Error in extension logic (missing ']')
                [31/01/2018 - 22:32] WARNING[15380][C-000001de]: ast_expr2.fl:470 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected $end, expecting '-' or '!' or '(' or '<token>'; Input:

                The reason my error was coming up is the Asterisk context code is missing ']' on lines _X.,2 and _X.,3

                The correct code should be:

                [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(,${RETURN_CONTEXT},${RETURN_EXTENSION},1,s)

                Hope this helps.

                Regards,
                Simon.

                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