Member
Last active 7 years ago
When i parking a call with sip client by transfer to number *88 it is transfers with CID prepending. It is a proper behavior.
When i transfer throu fop2, its just park without CID prepend.
I trying to understand, it is dont work because of fop2_override, or beacose freepbx bug(
Thank you!!!
I have the same problem((( I need to save chat history, and users need to see theys history
But its not solve my problem with CID prepending(((
Well, i fix context by adding "]" in fop2_override...
Was:
[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(,sc(${RETURN_CONTEXT},${RETURN_EXTENSION},1))
Fixed
[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(,sc(${RETURN_CONTEXT},${RETURN_EXTENSION},1))
Hello!
When i parkin call, i configured in Freepbx, to prepend CID or paked call with extension number.
But it is not work.
When i looked in CLI i saw this:
Executing [999,from-internal,PARK/default@fop2-park:1] Set("SIP/dsi-00000897", "ARRAY(RETURN_EXTENSION,RETURN_CONTEXT,PARKBUTTON)=999,from-internal,PARK/default,,") in new stack [2017-01-13 17:28:32] WARNING[1782][C-000004b6]: pbx_variables.c:749 pbx_substitute_variables_helper_full: Error in extension logic (missing ']') [2017-01-13 17:28:32] WARNING[1782][C-000004b6]: ast_expr2.fl:470 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected $end, expecting '-' or '!' or '(' or '<token>'; Input: "PARK/default" = "PARK/default"? ^ [2017-01-13 17:28:32] WARNING[1782][C-000004b6]: ast_expr2.fl:474 ast_yyerror: If you have questions, please refer to https://wiki.asterisk.org/wiki/display/AST/Channel+Variables -- Executing [999,from-internal,PARK/default@fop2-park:2] GotoIf("SIP/dsi-00000897", "0") in new stack [2017-01-13 17:28:32] WARNING[1782][C-000004b6]: pbx_variables.c:749 pbx_substitute_variables_helper_full: Error in extension logic (missing ']') [2017-01-13 17:28:32] WARNING[1782][C-000004b6]: ast_expr2.fl:470 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected $end, expecting '-' or '!' or '(' or '<token>'; Input: "PARK/default" = ""? ^ [2017-01-13 17:28:32] WARNING[1782][C-000004b6]: ast_expr2.fl:474 ast_yyerror: If you have questions, please refer to https://wiki.asterisk.org/wiki/display/AST/Channel+Variables -- Executing [999,from-internal,PARK/default@fop2-park:3] GotoIf("Sfop2-parkIP/dsi-00000897", "0") in new stack -- Executing [999,from-internal,PARK/default@fop2-park:4] Set("SIP/dsi-00000897", "PARKINGLOT=default") in new stack -- Executing [999,from-internal,PARK/default@fop2-park:5] Park("SIP/dsi-00000897", ",sc(from-internal,999,1)") in new stack -- Parking 'SIP/dsi-00000897' in 'default' at space 71 -- Channel SIP/dsi-00000897 joined 'holding_bridge' parking-bridge <a326fe5f-fa2a-4f66-9069-b618cfe057b5> [2017-01-13 17:28:32] WARNING[1782][C-000004b6]: res_musiconhold.c:884 _get_mohbyname: Music on Hold class 'igkb8' not found in memory. Verify your configuration. -- Started music on hold, class 'igkb8withcommercial', on channel 'SIP/dsi-00000897'
It is look like problem in "fop2-park" context...
When you send a broadcast message, chat opens a lot of windows, by number of extensions.
It is very uncomfortable to work.
How can i fix it???