[pjsip] reinvite

Benny Prijono bennylp at pjsip.org
Tue Sep 11 23:25:25 EDT 2007


You get the call id when you make outgoing calls (pjsua_call_make_call() ), or when on_incoming_call() callback is called. You'll then need to pass this call id when you call pjsua_call_reinvite().

Reading your case, I'm afraid it won't be as simple as sending reinvite. Since the client's STUN port mappings have changed, all transports (SIP and media)  need to be restarted, and the Contact address of the invite session then needs to be updated before reinvite is sent. The registration session also needs to be updated with a new Contact too. 

I don't think PJSUA-LIB API supports the above operations. For now, you need to use PJSIP API directly.

--
Benny Prijono
http://www.pjsip.org


- original message -
Subject:	[pjsip] reinvite
From:	Hitesh Tewari <htewari at hotmail.com>
Date:		11/09/2007 18:51

Hello,

I am writing some test code using the pjsua API where I would like to start a call, and after a predetermined interval I would like to do a reinvite. Looking at the simple_pjsau and pjsua code I can make the initial call. However I am not sure how to go about passing in the call parameters to the following method:

pjsua_call_reivite(current_call, PJ_TRUE, NULL);

I cannot make out from the example code how the variable current_call is set when one has initiated the call and how the current call parameters are passed to the function call.

The reason for doing the reinvite is that the client is behind a NAT and the session is reset after a predetermined interval. The session is reestablished within 200ms or less but the client now has a new external port and this needs to be communicated to the SIP peer. I am assuming that the reinvite primitive allows me to do this, which in turn allows me to continue with the existing call. Is this possible to do?

Any suggestions or pointers would be much appreciated. Thanks.

Hitesh



_________________________________________________________________
Connect and share instantly with the world's most popular IM network.
http://get.live.com/en-ie/messenger/overview
_______________________________________________
Visit our blog: http://blog.pjsip.org

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





More information about the pjsip mailing list