<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.3790.2759" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=406082413-08092006><FONT face=Arial
size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial size=2>Yet another
question....I've been attempting to set CDR variables during my
dialplan.</FONT></SPAN></DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial
size=2>ex:</FONT></SPAN></DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial size=2>exten =>
test,1,Set(CDR(ACCOUNTCODE)=${EXTEN}) ; works fine!</FONT></SPAN></DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial size=2>exten =>
test,2,Set(CDR(src)=${EXTEN}) ; gives me the following
error:</FONT></SPAN></DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial size=2><STRONG>Sep 8
09:23:53 ERROR[10269]: cdr.c:289 ast_cdr_setvar: Attempt to set a read-only
variable!.</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=406082413-08092006><STRONG><FONT face=Arial
size=2></FONT></STRONG></SPAN> </DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial size=2>NOW..It seem's like
a very arbitrary thing to keep me from doing if I decide I need to change
it. So I am assuming there is a way to bypass that, but the wiki didn't
help me much )or I couldn't find the appropriate info.)</FONT></SPAN></DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial size=2>Is there a
workaround? Or am I forced to use UserField, which is already used for
something else (and using the src field in CDR would really be ideal for
me)</FONT></SPAN></DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial
size=2>Mike</FONT></SPAN></DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406082413-08092006><FONT face=Arial
size=2></FONT></SPAN> </DIV></BODY></HTML>