drachtio / drachtio-srf

drachtio signaling resource framework
https://drachtio.org
MIT License
171 stars 60 forks source link

Add SipMessage and cdr events to TS types #144

Closed alexandremiguelabreu closed 1 year ago

alexandremiguelabreu commented 1 year ago

We notice that some definitions were missing in the TypeScript types declaration.

This PR adds the support of the following events:

The connect and error events also were fixed with the callback parameters. Added the tags in the Srf constructor.

For the CDR event, we also create a new interface called SipMessage.

Do you agree with that?

alexandremiguelabreu commented 1 year ago

Hi, @guilherme-rauen!

I've added some improvements to the TS types declaration with this PR, can you do a review, please?