Hi sir,

When I tried with your code, change to my sdp and get this log from nua_invite.
nua_params.c:480 nua_stack_set_params() nua: nua_stack_set_params: entering
soa.c:282 soa_clone() soa_clone(static::0xe9bd050, 0xe490080, 0x2b52284121d0) 
called
soa.c:405 soa_set_params() soa_set_params(static::0x2b521c27d9d0, ...) called
nua_stack.c:359 nua_application_event() nua: nua_application_event: entering
soa.c:405 soa_set_params() soa_set_params(static::0x2b521c27d9d0, ...) called
nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering
nua_dialog.c:338 nua_dialog_usage_add() nua(0x2b52284121d0): adding session 
usage
nta.c:4322 nta_leg_tcreate() nta_leg_tcreate(0x2b521860a290)
soa.c:1302 soa_init_offer_answer() 
soa_init_offer_answer(static::0x2b521c27d9d0) called
soa.c:1426 soa_generate_offer() soa_generate_offer(static::0x2b521c27d9d0, 0) 
called
nua_stack.c:271 nua_stack_event() nua(0x2b52284121d0): event r_invite 900 
Internal error at nua_client.c:711
nua_session.c:4135 signal_call_state_change() nua(0x2b52284121d0): call state 
changed: init -> init
nua_stack.c:271 nua_stack_event() nua(0x2b52284121d0): event i_state 900 
Internal error at nua_client.c:711
nua_stack.c:359 nua_application_event() nua: nua_application_event: entering
nua_stack.c:271 nua_stack_event() nua(0x2b52284121d0): event i_terminated 900 
Internal error at nua_client.c:711
nua_dialog.c:397 nua_dialog_usage_remove_at() nua(0x2b52284121d0): removing 
session usage
nua_stack.c:359 nua_application_event() nua: nua_application_event: entering
nua_stack.c:359 nua_application_event() nua: nua_application_event: entering
soa.c:358 soa_destroy() soa_destroy(static::0x2b521c27d9d0) called
nta.c:4375 nta_leg_destroy() nta_leg_destroy(0x2b521860a290)

Let me tell more about my scenario:
+ first I have one nh to handle incoming INVITE from my client.
+ when I get one invite from client(xlite) I call your code to send one invite 
to another sip server. and get this error.
 code is:
nua_handle_t* nh_a = NULL;
        sip_to_t* to = sip_to_create( NULL, URL_STRING_MAKE( 
"sip:372@59.120.208.196" ) );
        nh_a = nua_handle( nua, NULL,
                      SIPTAG_TO( to ),
                      TAG_END() );
        nua_invite( nh_a,
                SOATAG_USER_SDP_STR( r_sdp),
                TAG_END() );

and I see we get 900 Internal error.
:(

Hope you can help me to send success Invite out.
 
Thanks,
ThanhTruong


________________________________
 From: Andreas Wehrmann <andreas_wehrm...@yahoo.at>
To: ThanhTruong <ngoc217th...@yahoo.com> 
Cc: "sofia-sip-devel@lists.sourceforge.net" 
<sofia-sip-devel@lists.sourceforge.net> 
Sent: Friday, August 9, 2013 3:44 PM
Subject: Re: [Sofia-sip-devel] Cant using nua_invite to initial call.
 


On 08/09/2013 10:30 AM, ThanhTruong wrote:
> Hi,
>
> I have used ngrep -p -q -W byline port 5060 in this server and did not see 
> any invite message sent out.
>
> I think sofia-sip handling it and drop it, not send it out.
>
> is there any way to get it work ? do you have any example code to send invite 
> to one sip server ? (only how to use nua_invite to send one INVITE message to 
> one server)
>
> Thanks,
>
>  
> ThanhTruong
>
>
> ________________________________
>   From: Andreas Wehrmann <andreas_wehrm...@yahoo.at>
> To: ThanhTruong <ngoc217th...@yahoo.com>
> Cc: "sofia-sip-devel@lists.sourceforge.net" 
> <sofia-sip-devel@lists.sourceforge.net>
> Sent: Friday, August 9, 2013 3:19 PM
> Subject: Re: [Sofia-sip-devel] Cant using nua_invite to initial call.
>  
>
>
>

This is a (very much) stripped down example from my code
(NOTE: that I didn't include the SDP string here!):

nua_handle_t* nh = NULL;
sip_to_t* to = sip_to_create( NULL, URL_STRING_MAKE( "sip:bla@something" 
) );
nh = nua_handle( sip_stack, NULL,
                      SIPTAG_TO( to ),
                      TAG_END() );
nua_invite( nh,
                 SOATAG_USER_SDP_STR( sdp_os.str().c_str() ),
                 TAG_END() );
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to