SIP user agent and RTP proxy combo - how?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all!

I would like to achieve PJSIP to work in some sort of a hybrid mode. SIP-wise it will act as a full SIP client (registers, make and receives video with audio calls).  Instead of using a local camera device it would receive an RTP input from a local device. 

For example, when it gets an incoming call from a remote SIP client, it will be able to answer the call through SIP. PJSIP will not use a video froma local camera to send the video. Rather, it will simply proxy an RTP coming from a local device to a remote SIP client. And the local device will be getting a video coming from a remote SIP client. Hence, it is simply proxying RTP back and forth. The same applies to outgoing calls.

Graphically, it can be represented as on the diagram below. My question is what would be the best approach to accomplish this with PJSIP? Ideally, PJSUA2 but I accept ideas at any API level.

Regards,
Zarko


Remote SIP client (IP1 addr)    PJSIP (IP2 addr)     Local device (IP3 addr)
   |                                 |                     |
   |-------------INVITE------------->|                     |
   |<------------100 Trying----------|                     |
   |<------------180 Ringing---------|                     |
   |<--------------200 OK -----------|                     |
   |---------------ACK ------------->|                     |
   |                                 |                     |
   |===============RTP1=============>|                     |
   |                                 |=========RTP1=======>|
   |                                 |<========RTP2========|
   |<==============RTP2==============|                     |
   |                                 |                     |
   |                                 |                     |
   |----------------BYE------------->|                     |
   |<--------------200 OK -----------|                     |
   |                                 |                     |
   |                                 |                     |

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux