Skip to content

ikq/subscribe_notify_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

subscribe_notify_test

It's test to JsSIP extension: SUBSCRIBE/NOTIFY dialogs. Please see: versatica/JsSIP#708

Note: It's JsSIP subscriber/notifier API test, not presence client. To use the code as presence client, you should modify the subscriber constructor argumentsand create SUBSCRIBE with appropriate for your server :

  • eventName ( probably 'presence' ?)
  • accept - list of content-type that will be used in receiving NOTIFYs.
  • contentType - content-type of your SUBSCRIBE
  • set some body (if need) to subscriber.subscribe(). (in my test I send without body)

To adopt the example for your case, you should take a SIP trace for some client working with your server, and see how to build SUBSCRIBE request. Modify the test, and check that it generate the SUBSCRIBE as you need. To check generated SIP SUBSCRIBE message: please open browser dev tool (Ctrl/I) and select 'console' tab. The send/receive SIP messages will be shown in the log.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages