asterisk: minor config fixup for 23.1.0
authorPaul Donald <newtwen+github@gmail.com>
Wed, 3 Dec 2025 19:52:20 +0000 (20:52 +0100)
committerJiri Slachta <jiri.slachta@gmail.com>
Thu, 4 Dec 2025 12:06:45 +0000 (13:06 +0100)
The patch 001-phoneprov_users.patch can be dropped when upstream renames the
config. The config file seems necessary for res_phoneprov to start up, so this
helps the user get started.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
net/asterisk/Makefile
net/asterisk/patches/001-phoneprov_users.patch [new file with mode: 0644]

index a810c2fb438d0e4b127e12dc7edd8a7ecf78cad0..1867b44d614f88d9dcf356709b47ce98d00b83a4 100644 (file)
@@ -1016,7 +1016,7 @@ $(eval $(call BuildAsteriskModule,res-mwi-devstate,MWI device state subs,This mo
 $(eval $(call BuildAsteriskModule,res-mwi-external,Core external MWI resource,Core external MWI resource.,,,res_mwi_external,,))
 $(eval $(call BuildAsteriskModule,res-mwi-external-ami,AMI for external MWI,AMI support for external MWI.,+$(PKG_NAME)-res-mwi-external,,res_mwi_external_ami,,))
 $(eval $(call BuildAsteriskModule,res-parking,Phone Parking,Call parking resource.,+$(PKG_NAME)-bridge-holding,res_parking.conf,res_parking,,))
-$(eval $(call BuildAsteriskModule,res-phoneprov,Phone Provisioning,HTTP phone provisioning.,,phoneprov.conf,res_phoneprov,,))
+$(eval $(call BuildAsteriskModule,res-phoneprov,Phone Provisioning,HTTP phone provisioning.,,phoneprov.conf phoneprov_users.conf,res_phoneprov,,))
 $(eval $(call BuildAsteriskModule,res-pjsip-aoc,PJSIP AOC,PJSIP AOC Support.,+asterisk-pjsip +asterisk-res-pjproject,,res_pjsip_aoc,,))
 $(eval $(call BuildAsteriskModule,res-pjsip-geolocation,PJSIP Geolocation,PJSIP Geolocation support.,+asterisk-pjsip +asterisk-res-geolocation,,res_pjsip_geolocation,,))
 $(eval $(call BuildAsteriskModule,res-pjsip-phoneprov,PJSIP Phone Provisioning,PJSIP phone provisioning.,+$(PKG_NAME)-pjsip +$(PKG_NAME)-res-phoneprov,,res_pjsip_phoneprov_provider,,))
diff --git a/net/asterisk/patches/001-phoneprov_users.patch b/net/asterisk/patches/001-phoneprov_users.patch
new file mode 100644 (file)
index 0000000..686462e
--- /dev/null
@@ -0,0 +1,86 @@
+--- a/configs/samples/phoneprov_users.conf
++++ /dev/null
+@@ -1,40 +0,0 @@
+-;
+-; Device provisioning configuration
+-;
+-; This file is used by res_phoneprov to define provisioning entries.
+-;
+-
+-[general]
+-;
+-; Full name of a user
+-;
+-fullname = New User
+-;
+-; MAC Address for res_phoneprov
+-;
+-;macaddress = 112233445566
+-;
+-; Auto provision the phone with res_phoneprov
+-;
+-;autoprov = yes
+-;
+-; Line Keys for hardphone
+-;
+-;LINEKEYS = 1
+-;
+-; Line number for hardphone
+-;
+-;linenumber = 1
+-;
+-; Local Caller ID number used with res_phoneprov and Asterisk GUI
+-;
+-;cid_number = 6000
+-
+-;[6000]
+-;fullname = Joe User
+-;secret = 1234
+-;macaddress = 112233445566
+-;autoprov = yes
+-;LINEKEYS = 1
+-;linenumber = 1
+-;cid_number = 6000
+--- /dev/null
++++ b/configs/samples/phoneprov_users.conf.sample
+@@ -0,0 +1,40 @@
++;
++; Device provisioning configuration
++;
++; This file is used by res_phoneprov to define provisioning entries.
++;
++
++[general]
++;
++; Full name of a user
++;
++fullname = New User
++;
++; MAC Address for res_phoneprov
++;
++;macaddress = 112233445566
++;
++; Auto provision the phone with res_phoneprov
++;
++;autoprov = yes
++;
++; Line Keys for hardphone
++;
++;LINEKEYS = 1
++;
++; Line number for hardphone
++;
++;linenumber = 1
++;
++; Local Caller ID number used with res_phoneprov and Asterisk GUI
++;
++;cid_number = 6000
++
++;[6000]
++;fullname = Joe User
++;secret = 1234
++;macaddress = 112233445566
++;autoprov = yes
++;LINEKEYS = 1
++;linenumber = 1
++;cid_number = 6000