Hello,
We have implemented a web based client based on the jsSIP library to do audio/video and chat via SIP over websocket and freeswitch. With this client it is also possible to chat only.
When chatting between two clients, the Call-ID in the message is different for each message.
Via: SIP/2.0/WSS rfboa1c9gg6q.invalid;branch=z9hG4bK2512434
Max-Forwards: 69
Call-ID: 0ggfl2u355ebrf77jsrq <—— always different
CSeq: 521 MESSAGE
sessionId: some uuid
Content-Type: text/plain
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS
Supported: outbound
User-Agent: JsSIP 0.6.0
Content-Length: 2
First problem: As the Call-ID is different for each message, I cannot group the messages to a conversation.
Second problem: I want to store the chat conversation in the database and link it to a CDR. But there is no CDR written for the conversation.
As I can see in the RFC (
https://www.ietf.org/rfc/rfc3428.txt) on page 3, it should also be possible to create a dialog and then send all messages in context of this dialog. I assume this means, it is possible to establish a chat only (INVITE) call and then send all messages in context of the call.
If there is a call then freeswitch will also write a cdr and if I can send messages in context of that call I can group them to a conversation, insert it to the db and link it to the cdr. How can I do this with freeswitch?
Thanks
Markus