Alex, no need for personal attacks.<br><br>Zeeshan<br><br><div class="gmail_quote">On Wed, Jul 15, 2009 at 2:23 AM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>></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 class="im"><br>
Zeeshan Zakaria wrote:<br>
<br>
> It should be an easy one for many of the experts here.<br>
><br>
> On Mon, Jul 13, 2009 at 8:10 PM, Zeeshan Zakaria <<a href="mailto:zishanov@gmail.com">zishanov@gmail.com</a><br>
</div><div class="im">> <mailto:<a href="mailto:zishanov@gmail.com">zishanov@gmail.com</a>>> wrote:<br>
><br>
> For a new project, I have written a dialplan and it is pretty<br>
> straight forward: The [dialout] context dials out a number, and h<br>
> extension in this context writes the CDR. But what is happening is<br>
> that if the callee hangs up first, all values in the CDR are fine,<br>
> but if the caller hangs up first, the 'dst' column is always 'h'. I<br>
> put a NoOp right in the begining of this macro to verify it.<br>
><br>
> Any idea why is this happening and how can I have correct 'dst'<br>
> value if the caller hangs up first.<br>
><br>
> [dialout]<br>
> exten => _NXXNXXXXXX,s,1,Dial(SIP/XXXXXX/${EXTEN},30)<br>
> exten => h,1,Macro(hangupcall,${EXTEN},${CDR(accountcode)})<br>
><br>
> [macro-hangupcall]<br>
> NoOp(${CDR(dst)})<br>
> Set(dialout_num=${ARG1})<br>
> Set(user_id=${ARG2})<br>
> ResetCDR(vw);<br>
> NoCDR();<br>
> Hangup();<br>
><br>
><br>
> --<br>
> Zeeshan A Zakaria<br>
><br>
><br>
><br>
><br>
> --<br>
> Zeeshan A Zakaria<br>
><br>
><br>
</div>> ------------------------------------------------------------------------<br>
<div class="im">><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>
<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 class="h5"><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>-- <br>Zeeshan A Zakaria<br>