Queue removing CID Name Prefix of Inbound Route?

Hello,

For some reason, when I set the route destination to a queue, the CID name prefix is dropped. When destination is set to an extension, it works. What’s causing that?

Using Elastix 2.5.0 with FreePBX 2.11.0.

Any suggestions on how to fix this?

Thanks,
Kamel

Make an inbound call and post here the log from the cli.

Here’s some log. I’m trying to prefix “YP-” in the inbound route. The queue also prepends “CC:” but the prefix from the inbound route is gone.

-- Executing [[email protected]:1] Set("SIP/BW-00000278", "GROUP()=OUT_2") in new stack -- Executing [[email protected]:2] Goto("SIP/BW-00000278", "from-trunk,+1XXXXXXXXXX,1") in new stack -- Goto (from-trunk,+1XXXXXXXXXX,1) -- Executing [[email protected]:1] Set("SIP/BW-00000278", "__FROM_DID=+1XXXXXXXXXX") in new stack -- Executing [[email protected]:2] Gosub("SIP/BW-00000278", "app-blacklist-check,s,1()") in new stack -- Executing [[email protected]:1] GotoIf("SIP/BW-00000278", "0?blacklisted") in new stack -- Executing [[email protected]:2] Set("SIP/BW-00000278", "CALLED_BLACKLIST=1") in new stack -- Executing [[email protected]:3] Return("SIP/BW-00000278", "") in new stack -- Executing [[email protected]:3] Set("SIP/BW-00000278", "CDR(did)=+1XXXXXXXXXX") in new stack -- Executing [[email protected]:4] ExecIf("SIP/BW-00000278", "0 ?Set(CALLERID(name)=+1YYYYYYYYYY)") in new stack -- Executing [[email protected]:5] Set("SIP/BW-00000278", "CHANNEL(musicclass)=default") in new stack -- Executing [[email protected]:6] Set("SIP/BW-00000278", "__MOHCLASS=default") in new stack -- Executing [[email protected]:7] Set("SIP/BW-00000278", "__CALLINGPRES_SV=allowed_not_screened") in new stack -- Executing [[email protected]:8] Set("SIP/BW-00000278", "CALLERPRES()=allowed_not_screened") in new stack -- Executing [[email protected]:9] Macro("SIP/BW-00000278", "prepend-cid,YP-") in new stack -- Executing [[email protected]:1] GotoIf("SIP/BW-00000278", "1?REPCID") in new stack -- Goto (macro-prepend-cid,s,5) -- Executing [[email protected]:5] Set("SIP/BW-00000278", "_RGPREFIX=YP-") in new stack -- Executing [[email protected]:6] Set("SIP/BW-00000278", "CALLERID(name)=YP-BABA KAMEL ") in new stack -- Executing [[email protected]:10] Goto("SIP/BW-00000278", "ext-queues,19,1") in new stack -- Goto (ext-queues,19,1) -- Executing [[email protected]:1] Macro("SIP/BW-00000278", "user-callerid,") in new stack -- Executing [[email protected]:1] Set("SIP/BW-00000278", "TOUCH_MONITOR=1467229607.14952") in new stack -- Executing [[email protected]:2] Set("SIP/BW-00000278", "AMPUSER=+1YYYYYYYYYY") in new stack -- Executing [[email protected]:3] GotoIf("SIP/BW-00000278", "0?report") in new stack -- Executing [[email protected]:4] ExecIf("SIP/BW-00000278", "1?Set(REALCALLERIDNUM=+1YYYYYYYYYY)") in new stack -- Executing [[email protected]:5] Set("SIP/BW-00000278", "AMPUSER=") in new stack -- Executing [[email protected]:6] GotoIf("SIP/BW-00000278", "0?limit") in new stack -- Executing [[email protected]:7] Set("SIP/BW-00000278", "AMPUSERCIDNAME=") in new stack -- Executing [[email protected]:8] GotoIf("SIP/BW-00000278", "1?report") in new stack -- Goto (macro-user-callerid,s,15) -- Executing [[email protected]:15] GotoIf("SIP/BW-00000278", "0?continue") in new stack -- Executing [[email protected]:16] Set("SIP/BW-00000278", "__TTL=64") in new stack -- Executing [[email protected]:17] GotoIf("SIP/BW-00000278", "1?continue") in new stack -- Goto (macro-user-callerid,s,28) -- Executing [[email protected]:28] Set("SIP/BW-00000278", "CALLERID(number)=+1YYYYYYYYYY") in new stack -- Executing [[email protected]:29] Set("SIP/BW-00000278", "CALLERID(name)=YP-BABA KAMEL") in new stack -- Executing [[email protected]:30] Set("SIP/BW-00000278", "CDR(cnum)=+1YYYYYYYYYY") in new stack -- Executing [[email protected]:31] Set("SIP/BW-00000278", "CDR(cnam)=YP-BABA KAMEL") in new stack -- Executing [[email protected]:32] Set("SIP/BW-00000278", "CHANNEL(language)=en") in new stack -- Executing [[email protected]:2] Answer("SIP/BW-00000278", "") in new stack -- Executing [[email protected]:3] Macro("SIP/BW-00000278", "blkvm-set,reset") in new stack -- Executing [[email protected]:1] ExecIf("SIP/BW-00000278", "1?Set(__BLKVM_CHANNEL=SIP/BW-00000278)") in new stack -- Executing [[email protected]:2] Set("SIP/BW-00000278", "SHARED(BLKVM,SIP/BW-00000278)=TRUE") in new stack -- Executing [[email protected]:3] Set("SIP/BW-00000278", "GOSUB_RETVAL=TRUE") in new stack -- Executing [[email protected]:4] MacroExit("SIP/BW-00000278", "") in new stack -- Executing [[email protected]:4] ExecIf("SIP/BW-00000278", "1?Set(_DIAL_OPTIONS=TtrM(auto-blkvm))") in new stack -- Executing [1[email protected]:5] Set("SIP/BW-00000278", "__NODEST=19") in new stack -- Executing [[email protected]:6] Set("SIP/BW-00000278", "QCIDPP=CC:") in new stack -- Executing [[email protected]:7] Set("SIP/BW-00000278", "VQ_CIDPP=") in new stack -- Executing [[email protected]:8] ExecIf("SIP/BW-00000278", "1?Macro(prepend-cid,CC:)") in new stack -- Executing [[email protected]:1] GotoIf("SIP/BW-00000278", "0?REPCID") in new stack -- Executing [[email protected]:2] GotoIf("SIP/BW-00000278", "0?REPCID") in new stack -- Executing [[email protected]:3] Set("SIP/BW-00000278", "CALLERID(name)=BABA KAMEL") in new stack -- Executing [[email protected]:4] Set("SIP/BW-00000278", "_RGPREFIX=") in new stack -- Executing [[email protected]:5] Set("SIP/BW-00000278", "_RGPREFIX=CC:") in new stack -- Executing [[email protected]:6] Set("SIP/BW-00000278", "CALLERID(name)=CC:BABA KAMEL") in new stack -- Executing [[email protected]:9] Set("SIP/BW-00000278", "QAINFO=") in new stack

Thanks for your help!

Well you cannot do anything, the queue sets the CALLERID(name) value from the same source variable, then prepends the text that you want. It doesn’t set the CALLERID(name) value from itself so it overwrites the first value that you wanted.

You can use the freepbx module SetCallerID

http://wiki.freepbx.org/display/FPG/Set+CallerID+Module

After the inbound route and before the queue, you will send the call to the setcallerid module, there you will put the cc: and you will remove it from the queue. That way I think it will work.

Hmm I read about it and I agree this sounds the way to go.
One last question: will this break anything in elastix as it needs to be installed from the FreePBX module administration page?

Thanks so much!

No, if the module asks to update freepbx then don’t. Try to find the version of the module that corresponds to the version of the freepbx that elastix has. I think it is 2.11.

Great! This works nicely.

Thanks again :slight_smile: