webRTC with Asterisk in react-native

how can we handle webRTC offers and answers with Asterisk,while sending PeerConnection SDP over websocket asterisk is returning no response in websocket.

How can we handle ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER events with asterisk with webRTC in react-native.