Updating from 1.10 (Arjun Kamath) (Tom?? Valenta)

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

 



Hi Vali,

I am working, as I said, on a SIP client for Windows using VS2008. It's a
very simple application, which was developed by a previous employee and I
have to develop further. Once I saw that 2.0 was released, I thought it
best to do the upgrade. So I blindly merged the code, because the
interfaces and filenames were supposed to be identical. The only issue was
with calling the below function.

The documentation mentioned that media streams would now be created on
demand as required, so I went ahead and did this.

    #if DISABLED_FOR_TICKET_1185
    status = pjsua_media_transports_create(&app_config.rtp_config);
    if (status != PJ_SUCCESS)
        goto on_error;
    #endif

Coming to your question, there is no need to manage the media through
callbacks. The values of app_config should be sufficient. I am currently
facing some issues wrt the media creation but after a thorough
investigation, I believe that it's highly unlikely that the problem is due
to absence of 'pjsua_media_transports_create'. It's most likely an error
caused by the previous person. But since you have a month to wait, let me
solve my issue and then I will post here if there are any updates.

------------------------------
>
> Message: 3
> Date: Tue, 03 Jul 2012 12:36:48 +0200
> From: Tom?? Valenta <vali@xxxxxxxxxx>
> To: pjsip at lists.pjsip.org
> Subject: Re: Updating from 1.10 (Arjun Kamath)
> Message-ID: <4FF2CB40.5040607 at kamarad.cz>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> Hi Arjun,
>
> it is nice to read that upgrading to version 2.x is that easy for simple
> applications, but I wonder whether you can specify base media port (like
> using app_config.rtp_config.media_port in your case) or you must manage
> it yourself in on_create_media_transport callback?
>
> I will be dealing with this in one month's time...
>
> Thanks,
> Vali
>
>
> Dne 3.7.2012 8:33, Arjun Kamath napsal(a):
> > Hi all,
> >
> > This was a very minor problem, but I will still report it anyways. Due
> > to the change in pjsip from older versions, to on-demand creation of
> > media transports the main app, somethinglike pjsua_app should no longer
> > have this function called.
> >
> > status = pjsua_media_transports_create(&app_config.rtp_config);
> >
> > That's it. Simple as that.
> >
> >
> >     ------------------------------
> >
> >     Message: 3
> >     Date: Thu, 31 May 2012 11:17:58 +0300
> >     From: Arjun Kamath <junnaonly@xxxxxxxxx <mailto:junnaonly at gmail.com
> >>
> >     To: pjsip at lists.pjsip.org <mailto:pjsip at lists.pjsip.org>
> >     Subject: Updating from 1.10
> >     Message-ID:
> >
> >     <CADzHbEWF0yc7hJWn6obxsP61Mf=2=ZQN=+M6Oyug9ot1+R9FHA at mail.gmail.com
> >     <mailto:M6Oyug9ot1%2BR9FHA at mail.gmail.com>>
> >     Content-Type: text/plain; charset="iso-8859-1"
> >
> >     Hi,
> >
> >     I have a client on windows that uses the library version 1.10. My
> >     colleague
> >     used it as that was the stablest version then. She has left now and
> >     I have
> >     decided that the first thing I should do is update the library to 2.0
> >
> >     As the client uses the old pjsua APIs I have set
> >
> >     #define DISABLED_FOR_TICKET_1185    1
> >
> >     But I get compilation errors due to argument mismatch in several
> >     functions:
> >     Error    3    error C2198: '*create_ice_media_transport' : too few
> >     arguments for call*  ...\pjsip\src\pjsua-lib\pjsua_media.c    787
> >     pjsua_lib
> >     Error    4    error C2065: 'i' : undeclared identifier
> >     ...\pjsip\src\pjsua-lib\pjsua_media.c    1488    pjsua_lib
> >     Error    5    error C2065: 'i' : undeclared identifier
> >     ...\pjsip\src\pjsua-lib\pjsua_media.c    1488    pjsua_lib
> >     Error    7    error C2065: 'i' : undeclared identifier
> >     ...\pjsip\src\pjsua-lib\pjsua_media.c    1488    pjsua_lib
> >     Error    8    error C2065: 'i' : undeclared identifier
> >     ...\pjsip\src\pjsua-lib\pjsua_media.c    1489    pjsua_lib
> >     Error    9    error C2039: '*med_tp' : is not a member of
> 'pjsua_call*'
> >     ...\pjsip\src\pjsua-lib\pjsua_core.c    426    pjsua_lib
> >     Error    10    error C2039: *'med_tp' : is not a member of
> 'pjsua_call'*
> >     ...\pjsip\src\pjsua-lib\pjsua_core.c    431    pjsua_lib
> >     Error    12    error C2198: *'pjmedia_transport_get_info' : too few
> >     arguments for call*    ...\pjsip\src\pjsua-lib\pjsua_core.c    431
> >     pjsua_lib
> >     Error    14    error C2039: *'tp' : is not a member of 'pjsua_call' *
> >     ...\pjsip\src\pjsua-lib\pjsua_call.c    3209    pjsua_lib
> >     Error    15    error C2039: *'med_tp' : is not a member of
> 'pjsua_call'*
> >     ...\pjsip\src\pjsua-lib\pjsua_call.c    3216    pjsua_lib
> >     Error    17    error C2198: *'pjmedia_transport_get_info' : too few
> >     arguments for call *   ...\pjsip\src\pjsua-lib\pjsua_call.c    3216
> >     pjsua_lib
> >
> >     I will eventually move to the new APIs, but as a first step I wanted
> to
> >     work with just the updated library and same old APIs as the
> >     application I
> >     have uses them. Also, I am new to the group and am going to stay
> >     here for
> >     quite a while and more importantly am really enthusiastic to learn
> >     :)  So
> >     any related advice would be greatly appreciated.
> >
> >     Lastly, I am running Visual Studio 2008 Professional Edition and am
> >     calling
> >     the library through DLLs
> >
> >     Thanks,
> >     Arjun
> >     -------------- next part --------------
> >     An HTML attachment was scrubbed...
> >     URL:
> >     <
> http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120531/9e7447ea/attachment-0001.html
> >
> >
> >     ------------------------------
> >
> >
> >
> >
> > ___
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120706/bb038ae2/attachment-0001.html>


[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