MayamaTakeshi / sip-lab

A node module that helps to write SIP functional tests
3 stars 2 forks source link

Create conf per AudioEndpoint #74

Closed MayamaTakeshi closed 3 months ago

MayamaTakeshi commented 4 months ago

In #60 we switched media architecture from chainlink to conference bridge. One pjmedia_conf is created for each call. However, I think the correct is to create one per AudioEndpoint. This is because I originally used:

#define CLOCK_RATE 16000

in the call to pjmedia_conf_create. With this, all samples succeed except samples/send_and_receive_fax.js. The test only worked after I changed to:

#define CLOCK_RATE 8000

So I think we need to get the details of the stream and create the conf according to it for each AudioEndpoint.

MayamaTakeshi commented 3 months ago

Done. Upon reinvite we will check the characteristics of the new stream port and process accordingly.