Queues and CID Prefix

Putting together 2 new systems, one for the main office and one remote. I have tinkered with freepbx
for some time but never deployed a live system. So i have started configuring the main PBX and was setting up queues, which work, until i mentioned to the management that i could prefix the inbound CID with “Sales:”, “Support:” or what ever they wanted. I had tested it on the inbound routes and that works. when i place the “Support:” in the prefix box in the queue then save it, then go back to check it there is only a ‘’ in the form. if i call the queue it hangs up after a couple seconds. i get an error on the console in verbose mode, snippet below, which shows it tring to put support in the stack. I have 4 systems up and running 2 to deploy and 2 for test and they all do the same. have i stumbled on a bug? Running 13 with all the updated modules.
Any help would be great.

-- Executing [[email protected]:1] ExecIf("SIP/7900-0000000b", "1?Set(__BLKVM_CHANNEL=SIP/7900-0000000b)") in new stack
    -- Executing [[email protected]:2] Set("SIP/7900-0000000b", "SHARED(BLKVM,SIP/7900-0000000b)=TRUE") in new stack
    -- Executing [[email protected]:3] Set("SIP/7900-0000000b", "GOSUB_RETVAL=TRUE") in new stack
    -- Executing [[email protected]:4] MacroExit("SIP/7900-0000000b", "") in new stack
    -- Executing [[email protected]:4] ExecIf("SIP/7900-0000000b", "1?Set(_DIAL_OPTIONS=TtrM(auto-blkvm))") in new stack
    -- Executing [[email protected]:5] Set("SIP/7900-0000000b", "__NODEST=100") in new stack
    -- Executing [[email protected]:6] Set("SIP/7900-0000000b", "QCIDPP=\"Support:\"") in new stack
    -- Executing [[email protected]:7] Set("SIP/7900-0000000b", "VQ_CIDPP=") in new stack
[2017-04-06 07:02:06] WARNING[25653][C-0000000b]: ast_expr2.fl:470 ast_yyerror: ast_yyerror():  syntax error: syntax error, unexpected '<token>', expecting $end; Input:
"\"Support:\""!=""

I fear you are enclosing the prefix in " characters which is causing an issue.

Thank you, your fear was correct. I took the Help suggestion literally and added the quotes. I did the same thing on the inbound route and it added a “” to it but added the support to the CID and rang the queue so i thought I had it right.

Many thanks
Robert

1 Like