set the special dialplan work with campaign callerid

By August 25, 2010asterCRM

when you set a callerid for a campaign in astercrm, maybe you could find that the campaign callerid is not only show in customer’s phone , but also in agent’s phone. Now let’s fix this poplem together with asterisk dialplan.

First,we set a new dialplan such as following lines(extensions_astercc.conf is include from-internal-mask above aserCC version 0.2 beta):


exten => _X.,1,NoOp(${CUSCID})
exten => _X.,n,GoToIf($[“${CUSCID}” = “NONE”]?dial)
exten => _X.,n,Set(CALLERID(num)=${CUSCID})
exten => _X.,n(dial),GoTo(from-internal,${EXTEN},1)

In above dialplan we said you are using from-internal for dialout, if not you should change “from-internal” to your dialplan at last line.

And then, we should edit the ‘Incontext’ of campaign to ‘from-internal-mask’

Now, try it if work well.

Note: if you set “send calls to this queue directly” on , then the call would not go to incontext, so the solutions could not works.

Also, the cotext from-internal-mask could resleved callerid issue when click to dial in portal
page, just need to set the outcontext to from-internal-mask in group management page:

Leave a Reply