No body know how to catch ReINVITE from event when using Invite Session ? From: levequecedric@hotmail.comTo: pjsip at lists.pjsip.orgDate: Thu, 6 Nov 2008 15:25:27 +0100Subject: Re: Ack for Re-INVITE and event. I get this code from sip_inv.c, but I see that tsx->state never egal PJSIP_TSX_STATE_TRYING. May be because I try to catch it in invite session callback on_tsx_state_changed. May be should I try to catch it on the on_tsx_state callback from a module like the module in the simpleua example ? C?dric. From: levequecedric@hotmail.comTo: pjsip at lists.pjsip.orgDate: Mon, 3 Nov 2008 17:51:58 +0100Subject: Re: Ack for Re-INVITE and event. I used this code to catch the reinvite but it doesn't work : /* * Handle incoming re-INVITE */pjsip_transaction *tsx = e->body.tsx_state.tsx;if (tsx->method.id == PJSIP_INVITE_METHOD) {puts("PJSIP_INVITE_METHOD"); if (tsx->state == PJSIP_TSX_STATE_TRYING) { puts("PJSIP_TSX_STATE_TRYING"); pjsip_rx_data *rdata = e->body.tsx_state.src.rdata; pj_status_t status; /* Check if we have INVITE pending. */ if (inv->invite_tsx && inv->invite_tsx==tsx) { puts("catch ReINVITE"); } }} I put this code in the invite session callback on_tsx_state_changed.But I only show PJSIP_INVITE_METHOD on the screen. I don't understand why. I update my request, I need to catch ACK and ReINVITE too. C?dric. From: levequecedric@hotmail.comTo: pjsip at lists.pjsip.orgDate: Mon, 3 Nov 2008 12:13:29 +0100Subject: Ack for Re-INVITE and event. Hi, I need to be informed when application received an ACK for a ReINVITE. I used INVITE SESSION to establish session, and generate ReINVITE. I try to use events of this module but it seems they're not generated for ReINVITE. I implemente on application the transaction state callback, but application does never send events to it. I have init the transaction, and place on the module the link to the callback, like the on_rx_request. Do you know which trigger I should catch to know when a ACK for a ReINVITE arrived ?And what should I implemented ? Which callback ? Thanks for your help in advance. C?dric. Votre correspondant a choisi Hotmail et profite d'un stockage quasiment illimit?. Cr?ez un compte Hotmail gratuitement ! Votre correspondant a choisi Hotmail et profite d'un stockage quasiment illimit?. Cr?ez un compte Hotmail gratuitement ! Votre correspondant a choisi Hotmail et profite d'un stockage quasiment illimit?. Cr?ez un compte Hotmail gratuitement ! _________________________________________________________________ T?l?phonez gratuitement ? tous vos proches avec Windows Live Messenger? !? T?l?chargez-le maintenant !? http://www.windowslive.fr/messenger/1.asp -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20081112/8aea7c56/attachment.html>