diff --git a/lib/sip_account.rb b/lib/sip_account.rb index a6ad4a0eeac7eeff2c84abebb81868f8625247dd..b0b4cf2af11bf6a995ec39d42359603191d48a0e 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