~singpolyma/sgx-jmp

f87344820e6e7fb58b2f52eba3ea74a541f291ba — Stephen Paul Weber 11 months ago 245d66e
Specify port in case client does not support SRV
1 files changed, 10 insertions(+), 1 deletions(-)

M lib/sip_account.rb
M lib/sip_account.rb => lib/sip_account.rb +10 -1
@@ 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