Ask Your Question
0

how to get SDP information from the Lua

asked 2018-03-02 21:09:28 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I want to using LUA get SDP information... want to get the Media Port 1234 and decode this port as RTCP

as I know I can using below code to decode 1234 port as RTCP but how can I get the 1234 this port from the SDP?

do
    local lee_port_table = DissectorTable.get("udp.port")
    local rtcp_dissector = Dissector.get("rtcp")
    lee_port_table:add(1234,rtcp_dissector)
end

                Media Description, name and address (m): application 1234 udp MCPTT
                    Media Type: application
                    Media Port: 1234
                    Media Protocol: udp
                    Media Format: MCPTT

is there anybody can help to show me some example code?

Regards

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-03-03 14:01:24 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I have Register a listener and using SDP dissectors fields to extract the sdp.media information. but here comes another problem there are two sap.media line, one is for the video and another one is for the audio. sdp.media only can extract the audio sip media information.

how can I get the second sdp.media field?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-03-02 21:09:28 +0000

Seen: 449 times

Last updated: Mar 03 '18