Skip to content

Commit a5352bd

Browse files
committed
docs: add missing information about HangupCause
1 parent fbc28b6 commit a5352bd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,11 @@ To receive any further Events, you can subscribe to them with the following XML:
365365
```
366366

367367
```typescript
368+
enum Direction {
369+
IN = 'in',
370+
OUT = 'out',
371+
}
372+
368373
interface NewCallEvent {
369374
event: EventType;
370375
callId: string;
@@ -531,6 +536,16 @@ After creating the server, you can subscribe to onHangup events by passing a cal
531536
To receive this event you have to subscribe to them with the XML mentioned in [Subscribing to **newCall** Events](#subscribing-to-newcall-events)
532537

533538
```typescript
539+
enum HangupCause {
540+
NORMAL_CLEARING = 'normalClearing',
541+
BUSY = 'busy',
542+
CANCEL = 'cancel',
543+
NO_ANSWER = 'noAnswer',
544+
CONGESTION = 'congestion',
545+
NOT_FOUND = 'notFound',
546+
FORWARDED = 'forwarded',
547+
}
548+
534549
interface HangupEvent {
535550
callId: string;
536551
direction: Direction;

0 commit comments

Comments
 (0)