[asterisk-dev] chan_sip.c: how to get phone source and destination

Fadil Sutomo fsutomo at gmail.com
Tue Jul 31 08:57:30 CDT 2007


AMAZING!!!!!!!!

Thank you so much...

On 7/30/07, Kevin P. Fleming <kpfleming at digium.com> wrote:
>
> Fadil Sutomo wrote:
>
> > In order to use this field, then each client has to use this field
> > through sip.conf.
> > For example:
> > [Xlite]
> > username=Fadil
> > secret=fadil
> > ..
> > ..
> > database_location=/home/fadil/MySQL
> >
> > I modify chan_sip in order to do this.
> >
> > Now, what I want to do is to access this location "on-the-fly", that is
> > accessing this field while the phone is answered. And I am doing this in
> > app_dial.c.
> >
> > Now my question: is there any way from app_dial.c to access the field
> > that I created in chan_sip.c (database_location) ?
>
> It would do you good to read the sample config files and documentation;
> this functionality is already available. Change that line to:
>
> setvar=database_location=/home/fadil/MySQL
>
> and you will magically have a variable called 'DATABASE_LOCATION' in the
> dialplan (and elsewhere) with that value in it.
>
> --
> Kevin P. Fleming
> Director of Software Technologies
> Digium, Inc. - "The Genuine Asterisk Experience" (TM)
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20070731/8f828ce9/attachment.htm 


More information about the asterisk-dev mailing list