Rafael dos Santos Saraiva
2014-Jul-11 13:38 UTC
[asterisk-users] CDR(dst) not set in AEL macro
Hi
I'm using a macro to dial in a AEL dialplan. The problem is the macro do
not set the field CDR(dst), showing only ~~s~~.
I tried various configurations, but without solutions.
This is the macro:
macro dial-out(destno,dialstring,route_descr,interno) {
__TRANSFER_CONTEXT=ipbx;
if(${interno} = 1) {
Set(__PICKUPMARK=${destno});
if(${ODBC_verify_user(${CALLERID(num)})} > 0) {
t = tT;
} else {
t = t;
}
} else {
t = T;
}
Dial(${dialstring}/${destno},30,${t});
return;
}
Thank's.
Att,
*Rafael dos Santos Saraiva*
<http://br.linkedin.com/pub/rafael-saraiva/52/aab/230>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20140711/ac2d553b/attachment.html>
On Fri, Jul 11, 2014 at 8:38 AM, Rafael dos Santos Saraiva < rafaelsnsa at gmail.com> wrote:> Hi > > I'm using a macro to dial in a AEL dialplan. The problem is the macro do > not set the field CDR(dst), showing only ~~s~~. > > I tried various configurations, but without solutions. > >Please don't post new duplicate threads in such a short time span. You posted this already yesterday. You'll have to be patient and wait for someone to respond. Thanks, -- Rusty Newton Digium, Inc. | Community Support Manager445 Jan Davis Drive NW - Huntsville, AL 35806 - USdirect: +1 256 428 6200 Check us out at: http://digium.com & http://asterisk.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140711/fd695e6d/attachment.html>
2014-07-11 15:38, Rafael dos Santos Saraiva skrev:> Hi > > I'm using a macro to dial in a AEL dialplan. The problem is the macro do > not set the field CDR(dst), showing only ~~s~~. > > I tried various configurations, but without solutions. > > This is the macro: > macro dial-out(destno,dialstring,route_descr,interno) { > __TRANSFER_CONTEXT=ipbx; > if(${interno} = 1) { > Set(__PICKUPMARK=${destno}); > if(${ODBC_verify_user(${CALLERID(num)})} > 0) { > t = tT; > } else { > t = t; > } > } else { > t = T; > } > Dial(${dialstring}/${destno},30,${t}); > return; > } >I don't know if this is maybe related to this: https://issues.asterisk.org/jira/browse/ASTERISK-20441 If it is this is a bug in the AEL compiler I think. -- Johan Wilfer