Pekka Pessi ha scritto: > 2008/2/13, Antonio Gallo <[EMAIL PROTECTED]>: >> 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? > Yep, that is right. For 2XX responses, the ACK is sent directly to the > UAS unless Record-Route is used.
Ok i get the ACK too now ;-) Used this code: sip_record_route_t rr[1]; url_t const *rr_uri =URL_STRING_MAKE("sip:192.168.1.8")->us_url; *sip_record_route_init(rr)->r_url = *rr_uri; msg_header_add_dup(msg, (msg_pub_t *)sip, (msg_header_t *)rr); The funny thing is that i'm redirecting to Asterisk context: [mytest] exten=>s,1,Goto(moh) exten=>moh,1,NoOp(IT WORKS) exten=>moh,n,Answer exten=>moh,n,PlayBack(test-message) exten=>moh,n,Hangup Asterisk send back "200 OK" on "Asnwer()" and then execute PlayBack() before receiving the ACK... so i guess i'm loosing the begin of the message because of this... perhaps i've to use a "Wait(1)" before the PlayBack() but that's Off-Topic :) Is there a way (API) that allow me to know all the transaction (Dialogs) that NTA si keeping track of? :) Antonio ------------------------------------------------------------------------- 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 Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel