onSIPRegistration()

wrtc.onSIPRegistration() is an event function called when SIP registration process is finished. After you have logged in to a SIP server.

Usually this event occurs a short time after line.authenticate() but "UNREGISTER" can come at any time a SIP server has timeout for registrations.

You can use this event to tell user if SIP login succeeded or not.

You can also use this event to store the SIP password hash sum wrtc.sipHa1 into a cookie if you want to.

Occurs

SIP registration finished.

Arguments

wrtc.onSIPRegistration(result)

  • result - string containing SIP registration results:
    • "OK" - log in succeeded
    • "REJECTED" - log in failed, probably due to wrong password
    • "UNAVAILABLE" - SIP server unavailable (log in error)
    • "UNREGISTER" - SIP server logged you out

Return value

Ignored.

See also

ixnx/wrtc/js/api/wrtc/onsipregistration.txt · Last modified: by tibor
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0