Parking lot
-
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=parkedcallsres_parking.conf>>>>>>
[default]
parkext => 700
;parkext_exclusive=yes
parkpos => 711-720
context => parkedcalls
parkinghints = yes
parkingtime => 300
comebacktoorigin = yesextensions.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.
-
-
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=parkedcallsWhere default is the parkinglot.
-
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,1I have already put fop2-park at extensions.conf and the button config at fop2.cfg.
Am I missing, something?
Thank you
-
-
Thank you!
I´ll be waiting...
best regards,
-
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.
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