Specify port in case client does not support SRV

Stephen Paul Weber created

Change summary

lib/sip_account.rb | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

Detailed changes

lib/sip_account.rb 🔗

@@ -35,6 +35,14 @@ class SipAccount
 		with(password: MN_WORDS.sample(3).join(" "))
 	end
 
+	PORT = {
+		var: "port",
+		type: :fixed,
+		value: "5008",
+		label: "Port",
+		description: "usually optional"
+	}.freeze
+
 	def form
 		form = Blather::Stanza::X.new(:result)
 		form.title = "Sip Account Reset!"
@@ -43,7 +51,8 @@ class SipAccount
 		form.fields = [
 			{ var: "username", value: username, label: "Username", type: :fixed },
 			{ var: "password", value: @password, label: "Password", type: :fixed },
-			{ var: "server", value: server, label: "Server", type: :fixed }
+			{ var: "server", value: server, label: "Server", type: :fixed },
+			PORT
 		]
 
 		form