[asterisk-dev] Regarding Text based Chat Implementation in Iax2 ! Suggestions ?

Kumar Subramanian Kumar.Subramanian at ccxtech.fi
Wed Nov 3 16:40:22 CDT 2010


HI !

I would like to know how can I implement Text based chat functionality in IAX2 ?
I know there is a Text Frame (one of the Media frame) but I am bit confused about the Call Flow ?
Could anyone give me some Idea regarding Call flow for a Text based Chat between Iax2 clients?
I have my own IAX2 stack implementation with C# and a Softphone . I put forward my  Idea ,
please correct me if it’s wrong or any suggestions ! Everything is appreciated !

Regards
Kumar

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Text based Chat call flow for IAX2 (Chat only scenario)


Peer A                                Peer B
________________________________________
|
| ====NEW============================> |(Starting a chat session , Basically means Opening the Chat Window ?)
|                                      |(But I feel there should some extra IE describes this is a call-leg for Text Based Chat not Voice !)
| <==========================ACCEPT=== |
| ====ACK============================> |
| <=========================RINGING=== |
| ====ACK============================> |
| <==========================ANSWER=== |(As soon as you receive Text based Chat Call , you Answer immediately )
| ====ACK============================> |
|
| <-----------Text Frames------------> | (Exchange occurs)
| <--------------- . ----------------> |
| <--------------- . ----------------> |
| <--------------- . ----------------> |
| <-----------Text Frames------------> |
|
| ====Voice (Full Frame)=============> | (I think this is not needed but to Go along with RFC / CALL reliability send some Voice Frame)
| <===ACK============================= |
| | (every 65536 ms)
| <=============Voice (Full Frame)==== |
| ====ACK============================> |
|
| <-----------Text Frames------------> |
| <--------------- . ----------------> |
| <--------------- . ----------------> |
| <--------------- . ----------------> |
| <-----------Text Frames------------> |
|
| ====HANGUP=========================> | Either can hang-up (Basically means closing the Chat Window ?)
| <=============================ACK=== |

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20101103/47bb6f5a/attachment.htm 


More information about the asterisk-dev mailing list