Hi Fedot, You can check out the --rtp-port option in pjsua. Regards, Ming On Thu, Jul 19, 2012 at 11:39 PM, Fedot Fedotov <fedot.fedotov at gmail.com> wrote: > Hello, everyone! > > I'd like to ask question about video and audio ports. > I analysed talking between PBX Asterisk and PJSIP client with using some > sniffer. > And What I see: > > <PJSIP IP><Asterisk IP> SIP/SDP 1514 audio 53058 RTP/AVP 98 97 99 104 3 0 8 > 9 96 Request: INVITE sip:6030@<Asterisk IP>, with session description > > <Asterisk IP><PJSIP IP> SIP 585 Status: 180 Ringing > > <Asterisk IP><PJSIP IP> SIP/SDP 1006 audio 19018 RTP/AVP 0 3 96,video 12606 > RTP/AVP 97 96 Status: 200 OK, with session description > > <PJSIP IP><Asterisk IP> SIP/SDP 1514 audio 53058 RTP/AVP 0 96 Request: > INVITE sip:6030@ <Asterisk IP>:5060, in-dialog, with session description > Media Description, name and address: audio 53058 RTP/AVP 0 96 > Media Type: audio > Media Port: 53058 > Media Protocol: RTP/AVP > Media Format: ITU-T G.711 PCMU > Media Format: DynamicRTP-Type-96 > > <PJSIP IP><Asterisk IP> H264 1409 PT=H264, SSRC=0x63E60BF0, Seq=30328, > Time=72000 NAL unit - Coded slice of an IDR picture > User Datagram Protocol, Src Port: 53064 (53064), Dst Port: 12606 (12606) > > ====================================== > As I can see PJSIP uses port 53064 for sending video data. and Asterisk PBX > uses 19018 port for receive audio and 12606 for receive video. > > QUESTION: how can I change port or range of ports for sending video to > Asterisk PBX from my PJSIP client? > P.S.: in case of using my PJSIP client inside some corporate networks with > high corporate security rules, video is not showed by recipient SIP client. > I want to control ports for sending data from my PJSIP client. > > Thank you. > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >