[Freeswitch-users] SIP for chat messages only

Kamil Nigmatullin kamil.nigmatullin at gmail.com
Fri Jan 23 17:19:58 MSK 2015


If you want to dig that deep i think you may want to use sipproxy for that
purpose. Are you trying to implement on android? If so it is better to use
GCM push system for messaging
23 янв. 2015 г. 20:01 пользователь "Steven Ayre" <steveayre at gmail.com>
написал:

> It's normal for the Call-ID to be different each time - each message is
> its own dialog.
>
> Can you not group conversations based on the sender+receiver pair?
>
> On 23 January 2015 at 10:28, mbo <mbodbg at gmx.net> wrote:
>
>> 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.
>>
>> MESSAGE sip:1008 at 192.168.0.123 SIP/2.0
>> Via: SIP/2.0/WSS rfboa1c9gg6q.invalid;branch=z9hG4bK2512434
>> Max-Forwards: 69
>> To: <sip:1008 at 192.168.0.123>
>> From: <sip:192.168.0.123>;tag=e472qkncp0
>> 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
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150123/c1eb09eb/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list