Phillip, thanks for your advise. I tried that, but it didn&#39;t help.<br><br>I&#39;ll keep experimenting with it, and will post solution if found one.<br><br>Zeeshan<br><br><div class="gmail_quote">On Wed, Jul 15, 2009 at 8:20 AM, Zeeshan Zakaria <span dir="ltr">&lt;<a href="mailto:zishanov@gmail.com">zishanov@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Alex, no need for personal attacks.<br><br>Zeeshan<div><div></div><div class="h5"><br><br><div class="gmail_quote">
On Wed, Jul 15, 2009 at 2:23 AM, Alex Balashov <span dir="ltr">&lt;<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Yes, provided they are inclined to look at your issue.  Do not be<br>
presumptuous or self-entitled.<br>
<div><br>
Zeeshan Zakaria wrote:<br>
<br>
&gt; It should be an easy one for many of the experts here.<br>
&gt;<br>
&gt; On Mon, Jul 13, 2009 at 8:10 PM, Zeeshan Zakaria &lt;<a href="mailto:zishanov@gmail.com" target="_blank">zishanov@gmail.com</a><br>
</div><div>&gt; &lt;mailto:<a href="mailto:zishanov@gmail.com" target="_blank">zishanov@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     For a new project, I have written a dialplan and it is pretty<br>
&gt;     straight forward: The [dialout] context dials out a number, and h<br>
&gt;     extension in this context writes the CDR. But what is happening is<br>
&gt;     that if the callee hangs up first, all values in the CDR are fine,<br>
&gt;     but if the caller hangs up first, the &#39;dst&#39; column is always &#39;h&#39;. I<br>
&gt;     put a NoOp right in the begining of this macro to verify it.<br>
&gt;<br>
&gt;     Any idea why is this happening and how can I have correct &#39;dst&#39;<br>
&gt;     value if the caller hangs up first.<br>
&gt;<br>
&gt;     [dialout]<br>
&gt;             exten =&gt; _NXXNXXXXXX,s,1,Dial(SIP/XXXXXX/${EXTEN},30)<br>
&gt;             exten =&gt; h,1,Macro(hangupcall,${EXTEN},${CDR(accountcode)})<br>
&gt;<br>
&gt;     [macro-hangupcall]<br>
&gt;             NoOp(${CDR(dst)})<br>
&gt;             Set(dialout_num=${ARG1})<br>
&gt;             Set(user_id=${ARG2})<br>
&gt;             ResetCDR(vw);<br>
&gt;             NoCDR();<br>
&gt;             Hangup();<br>
&gt;<br>
&gt;<br>
&gt;     --<br>
&gt;     Zeeshan A Zakaria<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Zeeshan A Zakaria<br>
&gt;<br>
&gt;<br>
</div>&gt; ------------------------------------------------------------------------<br>
<div>&gt;<br>
&gt; _______________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;    <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
<br>
</div><font color="#888888">--<br>
Alex Balashov<br>
Evariste Systems<br>
Web     : <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
Tel     : (+1) (678) 954-0670<br>
Direct  : (+1) (678) 954-0671<br>
</font><div><div></div><div><br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Zeeshan A Zakaria<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Zeeshan A Zakaria<br>