Antonio Gallo ha scritto:
> Pekka Pessi ha scritto:
>> There is a bare-bones stateful proxy implementation in
>> <libsofia-sip-ua/nua/test_proxy.c>. Have a peek in it?
> Peeked ;-) I can forward the message but no one of my callbacks is
> invoked when the other side answer me with a 401.
Ok i got it working ;-) dunno what happened maybe a wront NTAG.. somewhere.
int proxy_process(nta_outgoing_magic_t *magic, nta_outgoing_t *request,
sip_t const *sip) {
printf( CONSOLE_TODO "got a message in proxy_process ...\n" );
if (!sip) {
printf( "\t" CONSOLE_ERROR "sip is NULL\n" );
}
if (sip->sip_request)
printf( "\t" CONSOLE_TODO "REQUEST ...\n" );
if (sip->sip_status)
printf( "\t" CONSOLE_TODO "RESPONSE %d ...\n",
sip->sip_status->st_status );
msg_t *response = nta_outgoing_getresponse(request);
sip_via_remove(response, sip_object(response));
nta_incoming_mreply(registrar_incoming, response);
return 0;
}
Now i route the "200 OK" but i don't get the ACK. I think the ACK is
sent directly bypassing me because i didn't added any "Record-Route"
stuff to the packets.
I am correct?
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel