Hello,
 
Yet another question....I've been attempting to set CDR variables during my dialplan.
 
ex:
 
 
exten => test,1,Set(CDR(ACCOUNTCODE)=${EXTEN}) ; works fine!
exten => test,2,Set(CDR(src)=${EXTEN}) ; gives me the following error:
 
 
Sep  8 09:23:53 ERROR[10269]: cdr.c:289 ast_cdr_setvar: Attempt to set a read-only variable!.
 
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.)
 
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)
 
 
 
Mike
 
 
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to