2009/2/19 Fabio Margarido <fabiomargar...@gmail.com>: > I'm observing some odd behavior from Sofia in the following scenario: I have > an answered call and receive a re-INVITE; when I generate an error for the > re-INVITE (480, for instance) and then try to send a BYE and destroy the leg > in the sequence, the BYE is not sent to the network.
>This is what the log > shows with SOFIA_DEBUG=9: > > nua: nua_respond: entering > nua(0x985ddb8): sent signal r_respond > nua: nua_bye: entering > nua(0x985ddb8): sent signal r_bye > nua(0x985ddb8): ready call updated: received received offer > nua: nua_stack_set_params: entering > nua: nua_invite_server_respond: entering > tport_tsend(0x985cb50) tpn = UDP/10.0.66.27:5060 > tport_resolve addrinfo = 10.0.66.27:5060 > tport_by_addrinfo(0x985cb50): not found by name UDP/10.0.66.27:5060 > tport_vsend returned 409 > nta: sent 480 Temporarily Unavailable for INVITE (111410412) > nua(0x985ddb8): removing session usage > nua(0x985ddb8): call state changed: ready -> terminated > nta_leg_destroy(0x985e980) > > Is this behavior expected? Currently nua uses the function sip_response_termionates_dialog() to determine what each returned response code does with the dialog. When you return 480 to re-INVITE, nua considers the dialog terminated and clears its state. In that sense, the behaviour is as expected. Nua should probably allow sending BYE after the session has otherwise been cleared, however. -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel