title: Setting CDR fields in "connected" macro
body: <p>I am using Asterisk's queue app. When caller's call is picked up by queue member I want to set some CDR variables.</p>
  
  <p>But problem is, that the "connected" macro is executed in queue member's channel (It should be caller's channel in my opinion)</p>
  
  <pre><code>exten =&gt; XXX, n,Queue(sales,tc,,,,,QueueConnected)
  
  [macro-QueueConnected]
  exten =&gt; s,1,NoOp()
  exten =&gt; s,n,Set(CDR(somevar)=someval)
  </code></pre>
  
  <p>I can use "c" option for queue and the dialplan will continue after caller or member hangup, but it is too late to setup CDR values, because it is already emitted.</p>
  
  <p>Can anybody help me with this, thank you.</p>