<div dir="ltr"><div><div>Hello,<br><br></div>With setvar statements in chan_dahdi.conf, we have a convenient way to store DAHDI channels specific values.<br></div><div><br>Unfortunately, we don't have a function to access this data from the dialplan as easily as SIPPEER ou IAXPEER would for SIP or IAX trunks.<br>
<br></div><div>Using AST_CONFIG, you can access DAHDI setvar value but:<br></div><div>1. only one setvar value (see bellow)<br></div><div>2. AST_CONFIG reads values from current config file not previously loaded file (this is obviously what you would expect from this function).<br>
<br></div><div>What do you think of this ?<br></div><div>Would you qualify this as useful ?<br><br></div><div>Regards<br><br><br><br></div><div>PS:<br></div><div>In chan_dahdi.conf, I add this:<br><br></div><div>[channels]<br>
setvar=foo=bar1<br>setvar=baz=bar2<br><br></div><div>DumpChan() dumps both foo and baz variables with expected values but I can only access to the first value with ${AST_CONFIG(chan_dahdi.conf,channels,setvar)}.<br></div>
<div><br></div><div><br><br></div></div>