From f87344820e6e7fb58b2f52eba3ea74a541f291ba Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 20 Oct 2021 13:00:51 -0500 Subject: [PATCH] Specify port in case client does not support SRV --- lib/sip_account.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/sip_account.rb b/lib/sip_account.rb index a6ad4a0..b0b4cf2 100644 --- a/lib/sip_account.rb +++ b/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 -- 2.38.5