[Freeswitch-users] SIP for chat messages only
mbodbg at gmx.net
Fri Jan 23 13:28:15 MSK 2015
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.
MESSAGE sip:1008 at 192.168.0.123 SIP/2.0
Via: SIP/2.0/WSS rfboa1c9gg6q.invalid;branch=z9hG4bK2512434
To: <sip:1008 at 192.168.0.123>
Call-ID: 0ggfl2u355ebrf77jsrq <—— always different
CSeq: 521 MESSAGE
sessionId: some uuid
User-Agent: JsSIP 0.6.0
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?
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users