0.0.114 • Published 22 hours ago

chai-sip v0.0.114

Weekly downloads
108
License
MIT
Repository
github
Last release
22 hours ago

chai-sip

Installation

$ npm install chai-sip --save

Introduction

Chai plugin simplifying development of SIP server tests written in Node for CI/CD pipelines. It supports sending SIP requests and assert based on responses.

It also supports test cases where sending of RTP media is required as it will send audio to the destinations in the SDP received for a 200 OK to a sent SIP invite request.

Current version supports

  • Send SIP Invite requests with the following parameters
    • SIP Request URI
    • Custom headers and values
    • Content-type
    • Request body
  • High level API to send SIPRec Invite requests with the following parameters
    • SIP Request URI
    • Custom headers and values
    • Content-type
    • Request body
  • SIP Message requests with the following parameters
    • SIP Request URI
    • Custom headers and values
    • Content-type
    • Request body
  • Build SIP Cancel requests from provisional response
  • Wait for incoming SIP requests
  • High level API to send SIP Bye request within established dialog
  • Callback upon final SIP response
  • Callback upon provisional SIP response
  • Support for proxy authentication using SIP digest authentication
  • Supports SIP over UDP, TCP and TLS transports
  • Supports deployments with multiple proxy hops and record-route

In addtion to be able to send and receive SIP requests it provides the following new asserts:

  • to.be.method() - To assert on a received SIP requests method type, for example request.to.be.method("INVITE")
  • to.be.status() - To assert on a received SIP response status code, for example response.to.be.status(200)

If no headers, content-types and bodies are passed to the request function the plugin will generate default headers and bodies useful for basic test scenarios.

The plugin using sip.js, please have a look at its documentation to understand the configuration options and SIP request and response models and header configuration in more detail.

If you need to troubleshoot your tests and get more information about what is going on set the LOG_LEVEL environment variable to the value verbose, for example:

$ export LOG_LEVEL=verbose

Getting started

Have a look at the examples in this repository.

This project is sponsored by iotcomms.io.

0.0.114

22 hours ago

0.0.113

1 month ago

0.0.112

2 months ago

0.0.111

3 months ago

0.0.110

3 months ago

0.0.106

4 months ago

0.0.109

3 months ago

0.0.107

3 months ago

0.0.105

4 months ago

0.0.104

6 months ago

0.0.103

6 months ago

0.0.102

7 months ago

0.0.101

10 months ago

0.0.100

12 months ago

0.0.95

1 year ago

0.0.96

1 year ago

0.0.97

1 year ago

0.0.98

1 year ago

0.0.99

1 year ago

0.0.93

1 year ago

0.0.94

1 year ago

0.0.91

2 years ago

0.0.92

2 years ago

0.0.90

2 years ago

0.0.89

2 years ago

0.0.88

2 years ago

0.0.84

2 years ago

0.0.85

2 years ago

0.0.86

2 years ago

0.0.87

2 years ago

0.0.80

2 years ago

0.0.81

2 years ago

0.0.82

2 years ago

0.0.83

2 years ago

0.0.77

2 years ago

0.0.78

2 years ago

0.0.79

2 years ago

0.0.73

2 years ago

0.0.74

2 years ago

0.0.75

2 years ago

0.0.76

2 years ago

0.0.70

2 years ago

0.0.71

2 years ago

0.0.72

2 years ago

0.0.64

3 years ago

0.0.65

3 years ago

0.0.66

2 years ago

0.0.67

2 years ago

0.0.68

2 years ago

0.0.69

2 years ago

0.0.63

3 years ago

0.0.62

3 years ago

0.0.60

3 years ago

0.0.61

3 years ago

0.0.59

3 years ago

0.0.53

3 years ago

0.0.54

3 years ago

0.0.55

3 years ago

0.0.56

3 years ago

0.0.57

3 years ago

0.0.58

3 years ago

0.0.52

3 years ago

0.0.50

3 years ago

0.0.48

3 years ago

0.0.49

3 years ago

0.0.47

3 years ago

0.0.46

3 years ago

0.0.45

3 years ago

0.0.44

3 years ago

0.0.43

3 years ago

0.0.42

4 years ago

0.0.41

4 years ago

0.0.40

4 years ago

0.0.39

4 years ago

0.0.38

4 years ago

0.0.37

4 years ago

0.0.36

4 years ago

0.0.35

4 years ago

0.0.34

4 years ago

0.0.33

4 years ago

0.0.32

4 years ago

0.0.31

4 years ago

0.0.30

4 years ago

0.0.29

5 years ago

0.0.28

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.23

5 years ago

0.0.24

5 years ago

0.0.25

5 years ago

0.0.22

5 years ago

0.0.20

5 years ago

0.0.21

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago