Quoting Matt Riddell <li...@venturevoip.com>:

> Maybe you could do:
>
> Set(CDR(userfield)=${CALLERID(num)})
>
> Before dialing SIP/1000

That looks so simple -- and it actually works! -- although exactly not  
in the way that I was expecting. Instead of replacing the contents of  
one of the existing fields, a new field, "userfield", appeared at the  
end of the record containing the number submitted by the caller.

I did try to use the same method to change one of the existing fields,  
e.g. "src", like this:

    Set(CDR(src)=${CALLERID(num)})

But, then I received this error:

    [Sep  1 12:26:15] ERROR[12562]: cdr.c:303 ast_cdr_setvar:
    Attempt to set the 'src' read-only variable!.

That doesn't seem to be possible. So, I'm happy with your solution.

Thanks, Matt!

Cheers,

Jaap

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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

Reply via email to