Well, this is interesting, because nua_handle_local() returns the url without a username.
Here is url_as_string(NULL, nua_handle_local(nh)->a_url )

sip:10.1.64.123;transport=udp

I create the handle with:
nua_handle( no tags )
Then:
nua_set_hparams(
                     NUTAG_M_USERNAME( "3014243101" ),
                     SIPTAG_FROM_STR(  "\"phone 1\" <sip:[EMAIL PROTECTED]>"  ),
                     NUTAG_AUTOACK( 1 ),
                     NUTAG_EARLY_ANSWER( 0 ),    // Don't Send SDP with 1xx responses.
                     SOATAG_USER_SDP_STR( SDP ),
                     TAG_END() );

So this probably explains what I am seeing, but why doesn't the username get set ?



Pekka Pessi wrote:
in 10/28/06, Colin Whittaker <[EMAIL PROTECTED]> wrote:
  
 I assume you mean you see the problem in the trace, but can't figure what
would cause this in the code.
    

Yes...

  
 I tried adding SIPTAG_FROM_STR() to the nua_handle(). It does not fix
either problem.
    

OK. What does nua_handle_local() return?

  
 I've worked around this by adding:
 SIPTAG_FROM_STR() and SIPTAG_M_USERNAME() to all:
 nua_invite()
 nua_cancel()
 nua_bye()
 nua_ack()
 Also, I had to turn set NUTAG_AUTOACK( 0 ) in nua_handle(). So I could
include the SIPTAGs in the ACK.
    

  
 Are there any traces that might help identify what causes this ?
    

A simple application demonstrating the problem would be
doubleplusgood. If you don't have anyhting laying around I'll try to
do something with test_nua.c ...

  
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to