No RTP after upgrading to latest commit

M
mayamatakeshi
Mon, Mar 1, 2021 11:35 PM

Hi,
I'm trying to update a node.js module I wrote
https://github.com/MayamaTakeshi/sip-lab
using pjproject commit de3d744c2e1188b59bb907b6ee32ef83740ebc64 (jan/2017)
to latest commit 6470fb9e4bd9baa14d50f754dc7f945e7a76c828.

The build works but I got the assertion failure discussed here when I try
to run an app using my module:

http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2019-March/041233.html
So I changed my code to call pjmedia_event_mgr_create().
This indeed solved the assertion issue.
However, although there are no error logs, pjmedia doesn't send RTP packets
anymore.
I tested the pjsip samples and they work (no RTP issues) and I tried
previous commits but the same problem happens so I'm sure it is a problem
with my code but I could not figure where as pjmedia doesn't output any
error messages.
Does anyone have any clue why this might be happening? (I didn't change
anything else).

Hi, I'm trying to update a node.js module I wrote https://github.com/MayamaTakeshi/sip-lab using pjproject commit de3d744c2e1188b59bb907b6ee32ef83740ebc64 (jan/2017) to latest commit 6470fb9e4bd9baa14d50f754dc7f945e7a76c828. The build works but I got the assertion failure discussed here when I try to run an app using my module: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2019-March/041233.html So I changed my code to call pjmedia_event_mgr_create(). This indeed solved the assertion issue. However, although there are no error logs, pjmedia doesn't send RTP packets anymore. I tested the pjsip samples and they work (no RTP issues) and I tried previous commits but the same problem happens so I'm sure it is a problem with my code but I could not figure where as pjmedia doesn't output any error messages. Does anyone have any clue why this might be happening? (I didn't change anything else).
M
mayamatakeshi
Tue, Mar 2, 2021 1:48 AM

On Tue, Mar 2, 2021 at 8:35 AM mayamatakeshi mayamatakeshi@gmail.com
wrote:

Hi,
I'm trying to update a node.js module I wrote
https://github.com/MayamaTakeshi/sip-lab
using pjproject commit de3d744c2e1188b59bb907b6ee32ef83740ebc64 (jan/2017)
to latest commit 6470fb9e4bd9baa14d50f754dc7f945e7a76c828.

The build works but I got the assertion failure discussed here when I try
to run an app using my module:

http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2019-March/041233.html
So I changed my code to call pjmedia_event_mgr_create().
This indeed solved the assertion issue.
However, although there are no error logs, pjmedia doesn't send RTP
packets anymore.
I tested the pjsip samples and they work (no RTP issues) and I tried
previous commits but the same problem happens so I'm sure it is a problem
with my code but I could not figure where as pjmedia doesn't output any
error messages.
Does anyone have any clue why this might be happening? (I didn't change
anything else).

Ah, I found the problem.
I compared the old version of sample streamutil.c with the one from latest
commit and I found that now it calls:
pjmedia_transport_media_start()
and
pjmedia_transport_media_stop()
I added these calls to my code and now RTP is OK.

On Tue, Mar 2, 2021 at 8:35 AM mayamatakeshi <mayamatakeshi@gmail.com> wrote: > Hi, > I'm trying to update a node.js module I wrote > https://github.com/MayamaTakeshi/sip-lab > using pjproject commit de3d744c2e1188b59bb907b6ee32ef83740ebc64 (jan/2017) > to latest commit 6470fb9e4bd9baa14d50f754dc7f945e7a76c828. > > The build works but I got the assertion failure discussed here when I try > to run an app using my module: > > http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2019-March/041233.html > So I changed my code to call pjmedia_event_mgr_create(). > This indeed solved the assertion issue. > However, although there are no error logs, pjmedia doesn't send RTP > packets anymore. > I tested the pjsip samples and they work (no RTP issues) and I tried > previous commits but the same problem happens so I'm sure it is a problem > with my code but I could not figure where as pjmedia doesn't output any > error messages. > Does anyone have any clue why this might be happening? (I didn't change > anything else). > Ah, I found the problem. I compared the old version of sample streamutil.c with the one from latest commit and I found that now it calls: pjmedia_transport_media_start() and pjmedia_transport_media_stop() I added these calls to my code and now RTP is OK.