[asterisk-users] Set CDR userfield in a realtime dialplan
Benchev
b.benchev at gmail.com
Wed Jan 9 03:29:51 CST 2008
On Wednesday 09 January 2008 09:54:59 Yves Räber wrote:
> Hello,
>
> I'm using Asterisk with Realtime extensions and ODBC CDR. And I'm have
> some trouble with the CDR userfield that is not changed when using the
> SET command in the realtime dialplan.
> In my dialplan (extensions.conf, the file) I'm setting the userfield
> like this :
>
> exten => s,n,Set(CDR(userfield)="X")
>
> Later, my dialplan switches to the realtime part and this is an extract
> for what is inside :
> ===========================================================
> id | context | exten | priority | app | appdata
> ===========================================================
> 12 | script | s | n | SET | CDR(userfield)="Y"
> ===========================================================
>
> I can show that the command is executed :
> -- Executing Set("SIP/siemens1-081ca290", "CDR(userfield) = Y")
>
> But in my CDR, the old value is saved (X in this case).
Into a database the line exten => s,n,Set(CDR(userfield)="X")
should be enterd as:
context | exten | priority | app | appdata
means in your case:
your_context| s|n|Set(CDR(userfield)|X
Boyko
More information about the asterisk-users
mailing list