Queues outgoing extension & CallerID

koffu
Joined: Wed 24 of Dec, 2008

Queues outgoing extension & CallerID

Posted:Wed 24 of Dec, 2008 (13:38 UTC)
Hello all!
I have a little problem. We use asterisk as helpdesk pbx. When Client make incoming call asterisk move it in [helpdesk] extension and do ResetCDR and queue(). After asterisk will starting dial to agents via DIAL(IAX/provider/XXXXXXX). We have one provider account and a few numbers on it(outgoing CIDS).
How to correctly setup outgoing CID before Queue() and don't lose incoming CID in database.
If I setup my extension:

exten => s,n,ResetCDR
exten => s,n,Set(CALLERID_USER=${CALLERID(num)})
exten => s,n,Set(CALLERID(all)="XXXXX <XXXXX>")
exten => s,n,Queue(resp)

all worked ok, but in Asterisk-stat CDR I see, that all numbers dialed myself from my custom CID, but agents recieved normal number. If I doing this example without any Set() options, in CDR DB all is ok, but when asterisk make calls to agents, CID is invalid.