Variables documentation in phoneprov.conf for PJSIP?

Hello,

After reading [1], I’m discovering phoneprov.conf with PJSIP.

  1. Where can I find documentation about PJSIP’s available variables in phoneprov.conf ?

  2. More specifically, using USERNAME worked OK but SECRET does not.

My /etc/asterisk/pjsip_wizard.conf includes:
9150
inbound_auth/username = 9150
inbound_auth/password = 123456
endpoint/mailboxes = 9150
has_phoneprov = yes
phoneprov/MAC = 0123456789ab
phoneprov/profile = yealink

My template file includes:
account.1.user_name = {USERNAME} account.1.password = {SECRET}

Generated file includes:
account.1.user_name = 9150
account.1.password =

I expected to get a generated file with
account.1.user_name = 9150
account.1.password = 123456

Which variable name shall I use instead of SECRET ?

Best regards

[1] https://wiki.asterisk.org/wiki/display/AST/PJSIP+Configuration+Wizard

Replying to myself, it seems:

  • [2] is the reference I was looking after
  • using both pjsip_wizard and phoneprov seems quite buggy (maybe due to [3])

I started all over with a plain pjsip.conf configuration and this time, SECRET and USERNAME worked flawlessly.

Still, I don’t understand at all, how to use LINEKEYS and LINE variables but I’ll open a dedicated topic, I think.

Best regards

[2] https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Configuration_res_pjsip_phoneprov_provider
[3] https://issues.asterisk.org/jira/browse/ASTERISK-28492

1 Like

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