[asterisk-users] Setting `userfield` from within a callfile

Olivier oza_4h07 at yahoo.fr
Mon Dec 20 18:02:58 UTC 2010


2010/12/20 A J Stiles <asterisk_list at earthshod.co.uk>

> Our current Asterisk 1.6.2.9 setup includes a CGI auto-dial application
> (written by someone else before me)  which sets up calls by creating files
> of
> the general form
>
> Channel: SIP/$INSIDE_NUMBER
> Context: $CONTEXT
> Extension: $OUTSIDE_NUMBER
> Priority: 1
> CallerId: $INSIDE_NUMBER
>
> in /var/spool/asterisk/outgoing/ .
>
> It works very well.  However, it would be nice to be able to attach an
> additional piece of information along with the call record  There is a
> userfield in the SQL database, which is a VARCHAR(255) and would be plenty
> for what we need.  Is there a way to set the userfield of the CDR database
> from within such a callfile?
>

Yes, adding a Set field in your call file (see
http://www.voip-info.org/wiki/view/Asterisk+auto-dial+out), you'll be able
to pass everything you need to your dialplan, and then, from there, write
everything you need to your CDR.

Cheers

>
> --
> AJS
>
> --
> _____________________________________________________________________
> -- 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20101220/e3408c54/attachment.htm>


More information about the asterisk-users mailing list