Olivier
2009-Dec-15 10:42 UTC
[asterisk-users] OT - SPA3102 - Provisioning with config file
Hello, I could successfully played with General Purpose Parameters (GPP_A, GPP_B) and a TFTP server : whenever I change a GPP value in a configuration file, my SPA3102 automatically updates the corresponding value its web server shows. My config file is : <flat-profile> <GPP_A>myid </GPP_A> <UID1>myid </UID1> </flat-profile> I though I could use this mecanism to change some SIP setting like Line userId or password. Unfortunately, it seems macro expansion doesn't occur in Line1 tab : when I type $A or $(A) or ${A} or $GPP_A or $UID1 in User ID field (in Line1 tab), asterisk receives a REGISTER message like : handle_request_register: Registration from '${A} <sip:${A}@172.16.2.1<A%7D at 172.16.2.1>>' failed for '172.16.2.12' - No matching peer found As the whole point of using a TFTP server is, for me, to avoid to use embeded web server, I would be very pleased to get any recommendation on this. Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091215/4821f978/attachment.htm
Steve Howes
2009-Dec-15 11:47 UTC
[asterisk-users] OT - SPA3102 - Provisioning with config file
On 15 Dec 2009, at 10:42, Olivier wrote:> Unfortunately, it seems macro expansion doesn't occur in Line1 tab : > when I type $A or $(A) or ${A} or $GPP_A or $UID1 in User ID field > (in Line1 tab), asterisk receives a REGISTER message like : > handle_request_register: Registration from '${A} <sip:$ > {A}@172.16.2.1>' failed for '172.16.2.12' - No matching peer foundWhy not just set the User ID field in the XML? Steve