Parking lot

  1. 8 years ago

    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.

  2. Here is our setup:

    Asterisk 13 vanilla
    FOP2 version 2.30.06 on separate server

  3. admin

    6 Jun 2016 Administrator

    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.

  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

  5. admin

    23 Aug 2016 Administrator

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

    best regards,

  6. Thank you!

    I´ll be waiting...

    best regards,

  7. 6 years ago

    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.

or Sign Up to reply!