What does setvar mean in phoneprov.conf?

Hello,

I couldn’t find much information about setvar usage in phoneprov.conf as with:

;[example]
;mime_type => application/octet-stream
;static_file => example/firmware
;static_file => example/default.cfg,text/xml
;{TOUPPER({MAC})}.cfg => templates/example-mac.cfg
;setvar => DB_CIDNAME={ODBC_CID_NAME_LOOKUP({USERNAME})}

  1. Does it exist with PJSIP ? (as PJSIP uses set_var, not setvar, I’m inclined to think it doesn’t) ?
  2. What is its goal ?

Best regards

Un-commenting that line should give you access to the DB_CIDNAME variable from inside of your configuration file templates found under /var/lib/asterisk/phoneprov/ directory. This particular example would be useful for setting the caller ID name in the configuration file that the phone downloads when it boots up.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.