Assertion error on Call transfer

JD
João Duarte
Wed, Sep 28, 2022 5:36 PM

Greetings,

I'm building a Java class, that is using PJSUA2. I can run the example app,
where I register two accounts, make a call from A to B and I've extended
the Account class, overriding the onIncomingCall method, so that it answers
the call when the account receives one.

Now I am trying to transfer the call, by replacing "myCall.anser(prm)" by
"myCall.xfer("destination", prm), on the overridden "onIncomingCall"
method. I am getting the following error:

Assertion failed: (!"Unexpected transaction type"), function
inv_on_state_null, file ../src/pjsip-ua/sip_inv.c, line 4185.
zsh: abort      java SPTests

Any idea of what this might be and how to solve it?

Thanks

João Duarte

Greetings, I'm building a Java class, that is using PJSUA2. I can run the example app, where I register two accounts, make a call from A to B and I've extended the Account class, overriding the onIncomingCall method, so that it answers the call when the account receives one. Now I am trying to transfer the call, by replacing "myCall.anser(prm)" by "myCall.xfer("destination", prm), on the overridden "onIncomingCall" method. I am getting the following error: Assertion failed: (!"Unexpected transaction type"), function inv_on_state_null, file ../src/pjsip-ua/sip_inv.c, line 4185. zsh: abort java SPTests Any idea of what this might be and how to solve it? Thanks João Duarte