Cant Transfer to parking Lot

  1. 9 years ago

    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.

  2. admin

    19 Aug 2015 Administrator

    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

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

  4. admin

    3 Sep 2015 Administrator

    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

  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'

or Sign Up to reply!