AMAZING!!!!!!!!<br><br>Thank you so much...<br><br><div><span class="gmail_quote">On 7/30/07, <b class="gmail_sendername">Kevin P. Fleming</b> <<a href="mailto:kpfleming@digium.com">kpfleming@digium.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Fadil Sutomo wrote:<br><br>> In order to use this field, then each client has to use this field
<br>> through sip.conf.<br>> For example:<br>> [Xlite]<br>> username=Fadil<br>> secret=fadil<br>> ..<br>> ..<br>> database_location=/home/fadil/MySQL<br>><br>> I modify chan_sip in order to do this.
<br>><br>> Now, what I want to do is to access this location "on-the-fly", that is<br>> accessing this field while the phone is answered. And I am doing this in<br>> app_dial.c.<br>><br>> Now my question: is there any way from app_dial.c to access the field
<br>> that I created in chan_sip.c (database_location) ?<br><br>It would do you good to read the sample config files and documentation;<br>this functionality is already available. Change that line to:<br><br>setvar=database_location=/home/fadil/MySQL
<br><br>and you will magically have a variable called 'DATABASE_LOCATION' in the<br>dialplan (and elsewhere) with that value in it.<br><br>--<br>Kevin P. Fleming<br>Director of Software Technologies<br>Digium, Inc. - "The Genuine Asterisk Experience" (TM)
<br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br><br>asterisk-dev mailing list<br>To UNSUBSCRIBE or update options visit:
<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br>