Crash when adding a video to the call (with ICE)

JK
Janusz Kolarczyk
Fri, May 31, 2019 8:24 AM

Hello.

In scenario:
UA 1 calling to UA 2. After connected UA 2 is trying to add video.
After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD, NULL);
i got crash in func create_ice_media_transport section "/* Create ICE
stream transport configuration */"

It is caused because m is NULL after this: m =
call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c
= m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing
crash.

m is NULL because call_med->call->async_call.rem_sdp has only one media and
call_med->idx is equal to 1.

Any idea? Am I doing something wrong? Or it is a bug?

Best Regards
Janusz

Hello. In scenario: UA 1 calling to UA 2. After connected UA 2 is trying to add video. After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD, NULL); i got crash in func create_ice_media_transport section "/* Create ICE stream transport configuration */" It is caused because m is NULL after this: m = call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c = m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing crash. m is NULL because call_med->call->async_call.rem_sdp has only one media and call_med->idx is equal to 1. Any idea? Am I doing something wrong? Or it is a bug? Best Regards Janusz
M
Ming
Fri, May 31, 2019 9:44 AM

Hi Janusz,

I tested it here with the latest trunk version, adding video call with ICE,
and it seemed to work fine.
Which PJSIP version are you using and can you forward us the PJSIP log?

Regards,
Ming

On Fri, May 31, 2019 at 4:25 PM Janusz Kolarczyk januszkol@gmail.com
wrote:

Hello.

In scenario:
UA 1 calling to UA 2. After connected UA 2 is trying to add video.
After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD, NULL);
i got crash in func create_ice_media_transport section "/* Create ICE
stream transport configuration */"

It is caused because m is NULL after this: m =
call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c
= m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing
crash.

m is NULL because call_med->call->async_call.rem_sdp has only one media
and call_med->idx is equal to 1.

Any idea? Am I doing something wrong? Or it is a bug?

Best Regards
Janusz


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

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

Hi Janusz, I tested it here with the latest trunk version, adding video call with ICE, and it seemed to work fine. Which PJSIP version are you using and can you forward us the PJSIP log? Regards, Ming On Fri, May 31, 2019 at 4:25 PM Janusz Kolarczyk <januszkol@gmail.com> wrote: > Hello. > > In scenario: > UA 1 calling to UA 2. After connected UA 2 is trying to add video. > After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD, NULL); > i got crash in func create_ice_media_transport section "/* Create ICE > stream transport configuration */" > > It is caused because m is NULL after this: m = > call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c > = m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing > crash. > > m is NULL because call_med->call->async_call.rem_sdp has only one media > and call_med->idx is equal to 1. > > Any idea? Am I doing something wrong? Or it is a bug? > > Best Regards > Janusz > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
JK
Janusz Kolarczyk
Fri, May 31, 2019 9:49 AM

I'm using latest revision from svn

pt., 31 maj 2019 o 11:45 Ming ming@teluu.com napisał(a):

Hi Janusz,

I tested it here with the latest trunk version, adding video call with
ICE, and it seemed to work fine.
Which PJSIP version are you using and can you forward us the PJSIP log?

Regards,
Ming

On Fri, May 31, 2019 at 4:25 PM Janusz Kolarczyk januszkol@gmail.com
wrote:

Hello.

In scenario:
UA 1 calling to UA 2. After connected UA 2 is trying to add video.
After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD,
NULL); i got crash in func create_ice_media_transport section "/* Create
ICE stream transport configuration */"

It is caused because m is NULL after this: m =
call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c
= m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing
crash.

m is NULL because call_med->call->async_call.rem_sdp has only one media
and call_med->idx is equal to 1.

Any idea? Am I doing something wrong? Or it is a bug?

Best Regards
Janusz


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

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

I'm using latest revision from svn pt., 31 maj 2019 o 11:45 Ming <ming@teluu.com> napisał(a): > Hi Janusz, > > I tested it here with the latest trunk version, adding video call with > ICE, and it seemed to work fine. > Which PJSIP version are you using and can you forward us the PJSIP log? > > Regards, > Ming > > On Fri, May 31, 2019 at 4:25 PM Janusz Kolarczyk <januszkol@gmail.com> > wrote: > >> Hello. >> >> In scenario: >> UA 1 calling to UA 2. After connected UA 2 is trying to add video. >> After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD, >> NULL); i got crash in func create_ice_media_transport section "/* Create >> ICE stream transport configuration */" >> >> It is caused because m is NULL after this: m = >> call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c >> = m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing >> crash. >> >> m is NULL because call_med->call->async_call.rem_sdp has only one media >> and call_med->idx is equal to 1. >> >> Any idea? Am I doing something wrong? Or it is a bug? >> >> Best Regards >> Janusz >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
JK
Janusz Kolarczyk
Fri, May 31, 2019 10:07 AM

And here are logs

pt., 31 maj 2019 o 11:49 Janusz Kolarczyk januszkol@gmail.com napisał(a):

I'm using latest revision from svn

pt., 31 maj 2019 o 11:45 Ming ming@teluu.com napisał(a):

Hi Janusz,

I tested it here with the latest trunk version, adding video call with
ICE, and it seemed to work fine.
Which PJSIP version are you using and can you forward us the PJSIP log?

Regards,
Ming

On Fri, May 31, 2019 at 4:25 PM Janusz Kolarczyk januszkol@gmail.com
wrote:

Hello.

In scenario:
UA 1 calling to UA 2. After connected UA 2 is trying to add video.
After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD,
NULL); i got crash in func create_ice_media_transport section "/* Create
ICE stream transport configuration */"

It is caused because m is NULL after this: m =
call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c
= m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing
crash.

m is NULL because call_med->call->async_call.rem_sdp has only one media
and call_med->idx is equal to 1.

Any idea? Am I doing something wrong? Or it is a bug?

Best Regards
Janusz


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

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

And here are logs pt., 31 maj 2019 o 11:49 Janusz Kolarczyk <januszkol@gmail.com> napisał(a): > I'm using latest revision from svn > > pt., 31 maj 2019 o 11:45 Ming <ming@teluu.com> napisał(a): > >> Hi Janusz, >> >> I tested it here with the latest trunk version, adding video call with >> ICE, and it seemed to work fine. >> Which PJSIP version are you using and can you forward us the PJSIP log? >> >> Regards, >> Ming >> >> On Fri, May 31, 2019 at 4:25 PM Janusz Kolarczyk <januszkol@gmail.com> >> wrote: >> >>> Hello. >>> >>> In scenario: >>> UA 1 calling to UA 2. After connected UA 2 is trying to add video. >>> After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD, >>> NULL); i got crash in func create_ice_media_transport section "/* Create >>> ICE stream transport configuration */" >>> >>> It is caused because m is NULL after this: m = >>> call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c >>> = m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing >>> crash. >>> >>> m is NULL because call_med->call->async_call.rem_sdp has only one media >>> and call_med->idx is equal to 1. >>> >>> Any idea? Am I doing something wrong? Or it is a bug? >>> >>> Best Regards >>> Janusz >>> _______________________________________________ >>> Visit our blog: http://blog.pjsip.org >>> >>> pjsip mailing list >>> pjsip@lists.pjsip.org >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >
M
Ming
Tue, Jun 4, 2019 4:51 AM

Hi Janusz,

The SIP messages in the log are missing. Can you provide us the complete
log?

Regards,
Ming

On Fri, May 31, 2019 at 6:08 PM Janusz Kolarczyk januszkol@gmail.com
wrote:

And here are logs

pt., 31 maj 2019 o 11:49 Janusz Kolarczyk januszkol@gmail.com
napisał(a):

I'm using latest revision from svn

pt., 31 maj 2019 o 11:45 Ming ming@teluu.com napisał(a):

Hi Janusz,

I tested it here with the latest trunk version, adding video call with
ICE, and it seemed to work fine.
Which PJSIP version are you using and can you forward us the PJSIP log?

Regards,
Ming

On Fri, May 31, 2019 at 4:25 PM Janusz Kolarczyk januszkol@gmail.com
wrote:

Hello.

In scenario:
UA 1 calling to UA 2. After connected UA 2 is trying to add video.
After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD,
NULL); i got crash in func create_ice_media_transport section "/* Create
ICE stream transport configuration */"

It is caused because m is NULL after this: m =
call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c
= m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing
crash.

m is NULL because call_med->call->async_call.rem_sdp has only one media
and call_med->idx is equal to 1.

Any idea? Am I doing something wrong? Or it is a bug?

Best Regards
Janusz


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

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


Hi Janusz, The SIP messages in the log are missing. Can you provide us the complete log? Regards, Ming On Fri, May 31, 2019 at 6:08 PM Janusz Kolarczyk <januszkol@gmail.com> wrote: > And here are logs > > pt., 31 maj 2019 o 11:49 Janusz Kolarczyk <januszkol@gmail.com> > napisał(a): > >> I'm using latest revision from svn >> >> pt., 31 maj 2019 o 11:45 Ming <ming@teluu.com> napisał(a): >> >>> Hi Janusz, >>> >>> I tested it here with the latest trunk version, adding video call with >>> ICE, and it seemed to work fine. >>> Which PJSIP version are you using and can you forward us the PJSIP log? >>> >>> Regards, >>> Ming >>> >>> On Fri, May 31, 2019 at 4:25 PM Janusz Kolarczyk <januszkol@gmail.com> >>> wrote: >>> >>>> Hello. >>>> >>>> In scenario: >>>> UA 1 calling to UA 2. After connected UA 2 is trying to add video. >>>> After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD, >>>> NULL); i got crash in func create_ice_media_transport section "/* Create >>>> ICE stream transport configuration */" >>>> >>>> It is caused because m is NULL after this: m = >>>> call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c >>>> = m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing >>>> crash. >>>> >>>> m is NULL because call_med->call->async_call.rem_sdp has only one media >>>> and call_med->idx is equal to 1. >>>> >>>> Any idea? Am I doing something wrong? Or it is a bug? >>>> >>>> Best Regards >>>> Janusz >>>> _______________________________________________ >>>> Visit our blog: http://blog.pjsip.org >>>> >>>> pjsip mailing list >>>> pjsip@lists.pjsip.org >>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>>> >>> _______________________________________________ >>> Visit our blog: http://blog.pjsip.org >>> >>> pjsip mailing list >>> pjsip@lists.pjsip.org >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> >> _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
JK
Janusz Kolarczyk
Tue, Jun 4, 2019 11:46 AM

Hi Ming,

Here are logs from 2 iOS devices

  1. UAC-1 make audio call to UAC-2
  2. UAC-2 answer with 200
  3. UAC-2 is trying add video and crash

I described reason of this crash in first e-mail.

Regards
Janusz

wt., 4 cze 2019 o 06:52 Ming ming@teluu.com napisał(a):

Hi Janusz,

The SIP messages in the log are missing. Can you provide us the complete
log?

Regards,
Ming

On Fri, May 31, 2019 at 6:08 PM Janusz Kolarczyk januszkol@gmail.com
wrote:

And here are logs

pt., 31 maj 2019 o 11:49 Janusz Kolarczyk januszkol@gmail.com
napisał(a):

I'm using latest revision from svn

pt., 31 maj 2019 o 11:45 Ming ming@teluu.com napisał(a):

Hi Janusz,

I tested it here with the latest trunk version, adding video call with
ICE, and it seemed to work fine.
Which PJSIP version are you using and can you forward us the PJSIP log?

Regards,
Ming

On Fri, May 31, 2019 at 4:25 PM Janusz Kolarczyk januszkol@gmail.com
wrote:

Hello.

In scenario:
UA 1 calling to UA 2. After connected UA 2 is trying to add video.
After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD,
NULL); i got crash in func create_ice_media_transport section "/* Create
ICE stream transport configuration */"

It is caused because m is NULL after this: m =
call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c
= m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing
crash.

m is NULL because call_med->call->async_call.rem_sdp has only one
media and call_med->idx is equal to 1.

Any idea? Am I doing something wrong? Or it is a bug?

Best Regards
Janusz


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

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


Hi Ming, Here are logs from 2 iOS devices 1) UAC-1 make audio call to UAC-2 2) UAC-2 answer with 200 3) UAC-2 is trying add video and crash I described reason of this crash in first e-mail. Regards Janusz wt., 4 cze 2019 o 06:52 Ming <ming@teluu.com> napisał(a): > Hi Janusz, > > The SIP messages in the log are missing. Can you provide us the complete > log? > > Regards, > Ming > > On Fri, May 31, 2019 at 6:08 PM Janusz Kolarczyk <januszkol@gmail.com> > wrote: > >> And here are logs >> >> pt., 31 maj 2019 o 11:49 Janusz Kolarczyk <januszkol@gmail.com> >> napisał(a): >> >>> I'm using latest revision from svn >>> >>> pt., 31 maj 2019 o 11:45 Ming <ming@teluu.com> napisał(a): >>> >>>> Hi Janusz, >>>> >>>> I tested it here with the latest trunk version, adding video call with >>>> ICE, and it seemed to work fine. >>>> Which PJSIP version are you using and can you forward us the PJSIP log? >>>> >>>> Regards, >>>> Ming >>>> >>>> On Fri, May 31, 2019 at 4:25 PM Janusz Kolarczyk <januszkol@gmail.com> >>>> wrote: >>>> >>>>> Hello. >>>>> >>>>> In scenario: >>>>> UA 1 calling to UA 2. After connected UA 2 is trying to add video. >>>>> After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD, >>>>> NULL); i got crash in func create_ice_media_transport section "/* Create >>>>> ICE stream transport configuration */" >>>>> >>>>> It is caused because m is NULL after this: m = >>>>> call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c >>>>> = m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing >>>>> crash. >>>>> >>>>> m is NULL because call_med->call->async_call.rem_sdp has only one >>>>> media and call_med->idx is equal to 1. >>>>> >>>>> Any idea? Am I doing something wrong? Or it is a bug? >>>>> >>>>> Best Regards >>>>> Janusz >>>>> _______________________________________________ >>>>> Visit our blog: http://blog.pjsip.org >>>>> >>>>> pjsip mailing list >>>>> pjsip@lists.pjsip.org >>>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>>>> >>>> _______________________________________________ >>>> Visit our blog: http://blog.pjsip.org >>>> >>>> pjsip mailing list >>>> pjsip@lists.pjsip.org >>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>>> >>> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
JK
Janusz Kolarczyk
Wed, Jun 12, 2019 8:20 AM

Any idea?

wt., 4 cze 2019 o 13:46 Janusz Kolarczyk januszkol@gmail.com napisał(a):

Hi Ming,

Here are logs from 2 iOS devices

  1. UAC-1 make audio call to UAC-2
  2. UAC-2 answer with 200
  3. UAC-2 is trying add video and crash

I described reason of this crash in first e-mail.

Regards
Janusz

wt., 4 cze 2019 o 06:52 Ming ming@teluu.com napisał(a):

Hi Janusz,

The SIP messages in the log are missing. Can you provide us the complete
log?

Regards,
Ming

On Fri, May 31, 2019 at 6:08 PM Janusz Kolarczyk januszkol@gmail.com
wrote:

And here are logs

pt., 31 maj 2019 o 11:49 Janusz Kolarczyk januszkol@gmail.com
napisał(a):

I'm using latest revision from svn

pt., 31 maj 2019 o 11:45 Ming ming@teluu.com napisał(a):

Hi Janusz,

I tested it here with the latest trunk version, adding video call with
ICE, and it seemed to work fine.
Which PJSIP version are you using and can you forward us the PJSIP log?

Regards,
Ming

On Fri, May 31, 2019 at 4:25 PM Janusz Kolarczyk januszkol@gmail.com
wrote:

Hello.

In scenario:
UA 1 calling to UA 2. After connected UA 2 is trying to add video.
After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD,
NULL); i got crash in func create_ice_media_transport section "/* Create
ICE stream transport configuration */"

It is caused because m is NULL after this: m =
call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c
= m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing
crash.

m is NULL because call_med->call->async_call.rem_sdp has only one
media and call_med->idx is equal to 1.

Any idea? Am I doing something wrong? Or it is a bug?

Best Regards
Janusz


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

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


Any idea? wt., 4 cze 2019 o 13:46 Janusz Kolarczyk <januszkol@gmail.com> napisał(a): > Hi Ming, > > Here are logs from 2 iOS devices > > 1) UAC-1 make audio call to UAC-2 > 2) UAC-2 answer with 200 > 3) UAC-2 is trying add video and crash > > I described reason of this crash in first e-mail. > > Regards > Janusz > > wt., 4 cze 2019 o 06:52 Ming <ming@teluu.com> napisał(a): > >> Hi Janusz, >> >> The SIP messages in the log are missing. Can you provide us the complete >> log? >> >> Regards, >> Ming >> >> On Fri, May 31, 2019 at 6:08 PM Janusz Kolarczyk <januszkol@gmail.com> >> wrote: >> >>> And here are logs >>> >>> pt., 31 maj 2019 o 11:49 Janusz Kolarczyk <januszkol@gmail.com> >>> napisał(a): >>> >>>> I'm using latest revision from svn >>>> >>>> pt., 31 maj 2019 o 11:45 Ming <ming@teluu.com> napisał(a): >>>> >>>>> Hi Janusz, >>>>> >>>>> I tested it here with the latest trunk version, adding video call with >>>>> ICE, and it seemed to work fine. >>>>> Which PJSIP version are you using and can you forward us the PJSIP log? >>>>> >>>>> Regards, >>>>> Ming >>>>> >>>>> On Fri, May 31, 2019 at 4:25 PM Janusz Kolarczyk <januszkol@gmail.com> >>>>> wrote: >>>>> >>>>>> Hello. >>>>>> >>>>>> In scenario: >>>>>> UA 1 calling to UA 2. After connected UA 2 is trying to add video. >>>>>> After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD, >>>>>> NULL); i got crash in func create_ice_media_transport section "/* Create >>>>>> ICE stream transport configuration */" >>>>>> >>>>>> It is caused because m is NULL after this: m = >>>>>> call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c >>>>>> = m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing >>>>>> crash. >>>>>> >>>>>> m is NULL because call_med->call->async_call.rem_sdp has only one >>>>>> media and call_med->idx is equal to 1. >>>>>> >>>>>> Any idea? Am I doing something wrong? Or it is a bug? >>>>>> >>>>>> Best Regards >>>>>> Janusz >>>>>> _______________________________________________ >>>>>> Visit our blog: http://blog.pjsip.org >>>>>> >>>>>> pjsip mailing list >>>>>> pjsip@lists.pjsip.org >>>>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>>>>> >>>>> _______________________________________________ >>>>> Visit our blog: http://blog.pjsip.org >>>>> >>>>> pjsip mailing list >>>>> pjsip@lists.pjsip.org >>>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>>>> >>>> _______________________________________________ >>> Visit our blog: http://blog.pjsip.org >>> >>> pjsip mailing list >>> pjsip@lists.pjsip.org >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >
M
Ming
Thu, Jun 13, 2019 3:10 AM

Hi Janusz,

I tried to reproduce it, but it seems to work fine here. Can you try:

  • on desktop, with our sample app pjsua, or
  • iOS vs desktop call, using our sample apps
    and check whether the issue is also reproducible under those environments.

The strange thing is that you mentioned that
call_med->call->async_call.rem_sdp only has one media, while it seems clear
from the SDP in the log that it should have two. So I'm still not sure how
it could have happened.

Regards,
Ming

On Wed, Jun 12, 2019 at 4:21 PM Janusz Kolarczyk januszkol@gmail.com
wrote:

Any idea?

wt., 4 cze 2019 o 13:46 Janusz Kolarczyk januszkol@gmail.com napisał(a):

Hi Ming,

Here are logs from 2 iOS devices

  1. UAC-1 make audio call to UAC-2
  2. UAC-2 answer with 200
  3. UAC-2 is trying add video and crash

I described reason of this crash in first e-mail.

Regards
Janusz

wt., 4 cze 2019 o 06:52 Ming ming@teluu.com napisał(a):

Hi Janusz,

The SIP messages in the log are missing. Can you provide us the complete
log?

Regards,
Ming

On Fri, May 31, 2019 at 6:08 PM Janusz Kolarczyk januszkol@gmail.com
wrote:

And here are logs

pt., 31 maj 2019 o 11:49 Janusz Kolarczyk januszkol@gmail.com
napisał(a):

I'm using latest revision from svn

pt., 31 maj 2019 o 11:45 Ming ming@teluu.com napisał(a):

Hi Janusz,

I tested it here with the latest trunk version, adding video call
with ICE, and it seemed to work fine.
Which PJSIP version are you using and can you forward us the PJSIP
log?

Regards,
Ming

On Fri, May 31, 2019 at 4:25 PM Janusz Kolarczyk januszkol@gmail.com
wrote:

Hello.

In scenario:
UA 1 calling to UA 2. After connected UA 2 is trying to add video.
After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD,
NULL); i got crash in func create_ice_media_transport section "/* Create
ICE stream transport configuration */"

It is caused because m is NULL after this: m =
call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c
= m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing
crash.

m is NULL because call_med->call->async_call.rem_sdp has only one
media and call_med->idx is equal to 1.

Any idea? Am I doing something wrong? Or it is a bug?

Best Regards
Janusz


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

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



Hi Janusz, I tried to reproduce it, but it seems to work fine here. Can you try: - on desktop, with our sample app pjsua, or - iOS vs desktop call, using our sample apps and check whether the issue is also reproducible under those environments. The strange thing is that you mentioned that call_med->call->async_call.rem_sdp only has one media, while it seems clear from the SDP in the log that it should have two. So I'm still not sure how it could have happened. Regards, Ming On Wed, Jun 12, 2019 at 4:21 PM Janusz Kolarczyk <januszkol@gmail.com> wrote: > Any idea? > > wt., 4 cze 2019 o 13:46 Janusz Kolarczyk <januszkol@gmail.com> napisał(a): > >> Hi Ming, >> >> Here are logs from 2 iOS devices >> >> 1) UAC-1 make audio call to UAC-2 >> 2) UAC-2 answer with 200 >> 3) UAC-2 is trying add video and crash >> >> I described reason of this crash in first e-mail. >> >> Regards >> Janusz >> >> wt., 4 cze 2019 o 06:52 Ming <ming@teluu.com> napisał(a): >> >>> Hi Janusz, >>> >>> The SIP messages in the log are missing. Can you provide us the complete >>> log? >>> >>> Regards, >>> Ming >>> >>> On Fri, May 31, 2019 at 6:08 PM Janusz Kolarczyk <januszkol@gmail.com> >>> wrote: >>> >>>> And here are logs >>>> >>>> pt., 31 maj 2019 o 11:49 Janusz Kolarczyk <januszkol@gmail.com> >>>> napisał(a): >>>> >>>>> I'm using latest revision from svn >>>>> >>>>> pt., 31 maj 2019 o 11:45 Ming <ming@teluu.com> napisał(a): >>>>> >>>>>> Hi Janusz, >>>>>> >>>>>> I tested it here with the latest trunk version, adding video call >>>>>> with ICE, and it seemed to work fine. >>>>>> Which PJSIP version are you using and can you forward us the PJSIP >>>>>> log? >>>>>> >>>>>> Regards, >>>>>> Ming >>>>>> >>>>>> On Fri, May 31, 2019 at 4:25 PM Janusz Kolarczyk <januszkol@gmail.com> >>>>>> wrote: >>>>>> >>>>>>> Hello. >>>>>>> >>>>>>> In scenario: >>>>>>> UA 1 calling to UA 2. After connected UA 2 is trying to add video. >>>>>>> After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD, >>>>>>> NULL); i got crash in func create_ice_media_transport section "/* Create >>>>>>> ICE stream transport configuration */" >>>>>>> >>>>>>> It is caused because m is NULL after this: m = >>>>>>> call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c >>>>>>> = m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing >>>>>>> crash. >>>>>>> >>>>>>> m is NULL because call_med->call->async_call.rem_sdp has only one >>>>>>> media and call_med->idx is equal to 1. >>>>>>> >>>>>>> Any idea? Am I doing something wrong? Or it is a bug? >>>>>>> >>>>>>> Best Regards >>>>>>> Janusz >>>>>>> _______________________________________________ >>>>>>> Visit our blog: http://blog.pjsip.org >>>>>>> >>>>>>> pjsip mailing list >>>>>>> pjsip@lists.pjsip.org >>>>>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>>>>>> >>>>>> _______________________________________________ >>>>>> Visit our blog: http://blog.pjsip.org >>>>>> >>>>>> pjsip mailing list >>>>>> pjsip@lists.pjsip.org >>>>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>>>>> >>>>> _______________________________________________ >>>> Visit our blog: http://blog.pjsip.org >>>> >>>> pjsip mailing list >>>> pjsip@lists.pjsip.org >>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>>> >>> _______________________________________________ >>> Visit our blog: http://blog.pjsip.org >>> >>> pjsip mailing list >>> pjsip@lists.pjsip.org >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> >> _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >