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. Cant Transfer to parking Lot

Cant Transfer to parking Lot

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 222 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
    cgashlin01
    wrote on last edited by
    #1

    So,

    I am having trouble transferring to a parking lot. I can transfer no problem if using by phone but if I try with fop2 it drops the call and my asterisk tells me the flowing -

    [2015-08-19 10:45:39] ERROR[25367][C-000000ad]: parking/parking_applications.c:455 park_common_setup: Could not find parking lot: 'DEFAULT'

    my parking lot is named DEFAULT in freepbx.

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

      asterisk -rx "dialplan show fop2-park"

      Does that command returns a valid context? If not, generate it by running the script:

      /usr/local/fop2/generate_override_contexts.pl -w

      1 Reply Last reply
      0
      • C
        C
        cgashlin01
        wrote on last edited by
        #3

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

        -= 1 extension (5 priorities) in 1 context. =-

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

          I think it is a problem of case between DEFAULT and default. You can start FOP2 in debug mode and catch the redirect event (Action: Redirect) when you park from FOP2.

          http://support.asternic.biz/?/selfhelp/view-article/how-to-debug-fop2/10

          The parkinglot variable in the context is defined here:

          Set(PARKINGLOT=${PARKBUTTON:5})

          You can probably change that to PARKINGLOT=default to try

          1 Reply Last reply
          0
          • C
            C
            cgashlin01
            wrote on last edited by
            #5

            Where would I edit that?

            Also this is the errors on asterisk when I try to transfer the call to parking -

            -- Executing [1141,from-internal,PARK/DEFAULT@fop2-park:1] Set("DAHDI/i1/4074438177-183", "ARRAY(RETURN_EXTENSION,RETURN_CONTEXT,PARKBUTTON)=1141,from-internal,PARK/DEFAULT,,") in new stack
            

            [2015-10-14 14:17:12] WARNING[21895][C-0000111b]: pbx.c:4745 pbx_substitute_variables_helper_full: Error in extension logic (missing ']')
            [2015-10-14 14:17:12] WARNING[21895][C-0000111b]: ast_expr2.fl:470 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected $end, expecting '-' or '!' or '(' or '<token>'; Input:
            "PARK/DEFAULT" = "PARK/default"?
            ^
            [2015-10-14 14:17:12] WARNING[21895][C-0000111b]: ast_expr2.fl:474 ast_yyerror: If you have questions, please refer to https://wiki.asterisk.org/wiki/display/AST/Channel+Variables
            -- Executing [1141,from-internal,PARK/DEFAULT@fop2-park:2] GotoIf("DAHDI/i1/4074438177-183", "0") in new stack
            [2015-10-14 14:17:12] WARNING[21895][C-0000111b]: pbx.c:4745 pbx_substitute_variables_helper_full: Error in extension logic (missing ']')
            [2015-10-14 14:17:12] WARNING[21895][C-0000111b]: ast_expr2.fl:470 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected $end, expecting '-' or '!' or '(' or '<token>'; Input:
            "PARK/DEFAULT" = ""?
            ^
            [2015-10-14 14:17:12] WARNING[21895][C-0000111b]: ast_expr2.fl:474 ast_yyerror: If you have questions, please refer to https://wiki.asterisk.org/wiki/display/AST/Channel+Variables
            -- Executing [1141,from-internal,PARK/DEFAULT@fop2-park:3] GotoIf("DAHDI/i1/4074438177-183", "0") in new stack
            -- Executing [1141,from-internal,PARK/DEFAULT@fop2-park:4] Set("DAHDI/i1/4074438177-183", "PARKINGLOT=DEFAULT") in new stack
            -- Executing [1141,from-internal,PARK/DEFAULT@fop2-park:5] Park("DAHDI/i1/4074438177-183", ",from-internal,1141,1,s") in new stack
            [2015-10-14 14:17:12] ERROR[21895][C-0000111b]: parking/parking_applications.c:226 apply_option_timeout: No duration value provided for the timeout ('t') option.
            [2015-10-14 14:17:12] ERROR[21895][C-0000111b]: parking/parking_applications.c:455 park_common_setup: Could not find parking lot: 'DEFAULT'
            -- Auto fallthrough, channel 'DAHDI/i1/4074438177-183' status is 'ANSWER'
            -- Hungup 'DAHDI/i1/4074438177-183'

            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