[pjsip] Custom INVITE sessions (for file transfer for example)

Ivan Genov ivangg_q at yahoo.com
Thu May 1 12:51:36 EDT 2008

And would it be possible that still PJSIP handles the INVITEs for voice calls while the application handles the INVITEs for file transfer? As I understand, the application will get the SDP of every INVITE (including the voice calls) and it can recognize whether this is a file transfer INVITE or not, and if this is not the file transfer INVITE can the application just let PJSIP process it by default, not having to deal with the audio channels, etc?


----- Original Message ----
From: Benny Prijono <bennylp at pjsip.org>
To: pjsip list <pjsip at lists.pjsip.org>
Sent: Thursday, May 1, 2008 1:43:23 AM
Subject: Re: [pjsip] Custom INVITE sessions (for file transfer for example)

On Wed, Apr 30, 2008 at 8:54 PM, Ivan Genov <ivangg_q at yahoo.com> wrote:
> Hi PJSIP developers,
> Is there a way to create a custom INVITE session for the purpose of having a
> custom media channel? One noteable example is with file transfer - I would
> like to create a custom session to negotiate MSRP or any other kind of file
> transfer channel.
> Any input on custom INVITE sessions or specifically on the file transfer
> topic would be appreciated.

I think it should be possible with using PJSIP API (not PJSUA-LIB
API), although I haven't tried this myself. You need to manually
construct an SDP containing the file transfer descriptor, create
invite session and give the SDP to it. Once SDP is negotiated
on_media_update() will be called and you can retrieve the negotiated
SDP's from both local and remote party and do the file transfer.


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

pjsip mailing list
pjsip at lists.pjsip.org

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080501/a5f17022/attachment.html>

More information about the pjsip mailing list