Open haisamMH opened 3 years ago
It's JsSIP subscriber/notifier API test, not presence client.
To use the code as presence client, you should modify it and create SUBSCRIBE with appropriate for your server :
In such cases, I take a SIP trace for some client working with my server and learn how to build SUBSCRIBE request..
The SUBSCRIBE sent by this test should simulate the SUBSCRIBE from other working clients.
E.g. I don't think your server will send NOTIFY with text/plain format, as I set in my test 'accept'.
subscriber = jssipUA.subscriber(target, {
event_name: eventName, // event name with optional ;id=xxx
accept: 'application/pidf+xml,text/json,text/plain',
expires: expires,
content_type: 'text/plain',
params: params,
credential: credential,
Please attach JsSIP console log.
client dialog: terminated (SUBSCRIBE non-OK response)