Re: Reinvite after delayed ack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I tried to put that code inside pjsip_inv_send_msg() when method.id is ACK. So that no changes are required in api.

Is it okay to implement this way.?

Regards,
Ajaresh Gudipati.

On Fri, 17 Jul 2020 at 2:40 PM, gabriel manea <gabriel.manea@xxxxxxxxx> wrote:
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);
}

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
_______________________________________________
Visit our blog: http://blog.pjsip.org

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

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux