Is possibile to have a on_rx_rtp callback with PJSUA?

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

 



Hi,
I'm writing a simple client using PJSUA, the only things that the client 
should do is start a call and at the first ring of the recipient hang up 
the call. With the SIP providers that I have tried the SIP message "180 
Ringing" isn't sent to the client so I can't handle all the procedure 
only with on_call_state callback.

Dumping the traffic of XTen-XLite I have noticed that the singal of 
ringing is sent to client with RTP packet.
The problem so is that I need a callback for the incomung RTP traffic, I 
want to analize that traffic and hang up the call when the ringing 
packet arrives.
I saw the source code and a lower level is used "on_rx_rtp" callback, in 
PJSUA I saw the function pjsua_media_transports_attach that is declared 
but unfortunately is not yet implemented.
The question is, how can I read the RTP packets using PJSUA? I read 
siprtp.c that use directly PJMEDIA but I can't understand how to 
integrate PJMEDIA with PJSUA, what I have to do for getting a callback 
like on_rx_rtcp?

regards
Davide



[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