Hi,
I only succeeded by modifying the pjsip
source file sip_inv.c (remove static keyword from void
inv_set_state() and declare void inv_set_state() in
sip_inv.h header).
After that it is possible to manually
change session state after sending ack:
{
pjsip_event e;
PJSIP_EVENT_INIT_TX_MSG(e, tdata);
inv_set_state(inv, PJSIP_INV_STATE_CONFIRMED, &e);
}
PJSIP_EVENT_INIT_TX_MSG(e, tdata);
inv_set_state(inv, PJSIP_INV_STATE_CONFIRMED, &e);
}
Regards,
Gabriel.
On 17.07.2020 07:12, Ajaresh Gudipati
wrote:
Dear Team,
I am implementing b2bua server with pjsip version 2.9
I am trying the transfer feature in server. So I want to delay the ack message untill i get the offer.
I have implemented the on_send_ack method of inv_session to send ack message manually from application
But after sending the ack from the application, if i try reinvite on the session. It is giving error as the invite session state is still in CONNECTING state.
Please suggest how can I achieve this functionality
Regards,Ajaresh Gudipati.
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org