Skip to content

Instantly share code, notes, and snippets.

@benlangfeld
Created October 15, 2010 11:43
Show Gist options
  • Save benlangfeld/628063 to your computer and use it in GitHub Desktop.
Save benlangfeld/628063 to your computer and use it in GitHub Desktop.
auth = Blather::Stanza::Iq::Command.new :set, "authorize-plain"
auth.form.type = :submit
auth.form.fields = [
{ :type => 'text-single', :var => 'sip-address', :value => endpoint.sip_address },
{ :type => 'text-private', :var => 'password', :value => endpoint.password }
]
auth.to = "commands.auth.xmpp.onsip.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment