[pjsip] Ack for Re-INVITE and event.

cedric leveque levequecedric at hotmail.com
Mon Nov 3 11:51:58 EST 2008


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 at hotmail.comTo: pjsip at lists.pjsip.orgDate: Mon, 3 Nov 2008 12:13:29 +0100Subject: [pjsip] 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 ! 
_________________________________________________________________
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/20081103/b108bec9/attachment.html>


More information about the pjsip mailing list