Re: [Sofia-sip-devel] sip register message construct

2013-06-20 Thread ThanhTruong
Huang, Kun-Yao" To: "sofia-sip-devel@lists.sourceforge.net" Sent: Thursday, June 13, 2013 12:12 PM Subject: Re: [Sofia-sip-devel] sip register message construct Hi Thanh:   I am currently using the following code and it works for me:      m_registrationHandle = nua_handle(

Re: [Sofia-sip-devel] sip register message construct

2013-06-13 Thread ThanhTruong
with sip message, But not success.  Thank you ,   ThanhTruong From: "Huang, Kun-Yao" To: "sofia-sip-devel@lists.sourceforge.net" Sent: Friday, June 14, 2013 6:36 AM Subject: Re: [Sofia-sip-devel] sip register message construct @Thanh

Re: [Sofia-sip-devel] sip register message construct

2013-06-13 Thread Huang, Kun-Yao
-sip-devel@lists.sourceforge.net<mailto:sofia-sip-devel@lists.sourceforge.net>" mailto:sofia-sip-devel@lists.sourceforge.net>> Sent: Thursday, June 13, 2013 3:22 PM Subject: Re: [Sofia-sip-devel] sip register message construct If you can successful register something with the regist

Re: [Sofia-sip-devel] sip register message construct

2013-06-13 Thread Andreas Wehrmann
On 06/13/2013 10:09 AM, Andreas Wehrmann wrote: > Hey there! > > Nothing to do with the problem but I just wanted to say that you can > simplify/strengthen > the code for building the auth string by doing it like this code: > > "sip" is of type , which is delivered by NUA to the > callback: > > si

Re: [Sofia-sip-devel] sip register message construct

2013-06-13 Thread ThanhTruong
via 5062 port. So, I dont know why it is. :( Thanks,   ThanhTruong From: "Huang, Kun-Yao" To: "sofia-sip-devel@lists.sourceforge.net" Sent: Thursday, June 13, 2013 3:22 PM Subject: Re: [Sofia-sip-devel] sip register message cons

Re: [Sofia-sip-devel] sip register message construct

2013-06-13 Thread Andreas Wehrmann
On 06/13/2013 09:34 AM, ThanhTruong wrote: > > For handling register authentication in callback I used: > > if(evt == nua_r_register && (status == 401 || status == 407)) >{ > if (sip && sip->sip_www_authenticate && > sip->sip_www_authenticate->au_params

Re: [Sofia-sip-devel] sip register message construct

2013-06-13 Thread Huang, Kun-Yao
kxh...@dolby.com>> To: "sofia-sip-devel@lists.sourceforge.net<mailto:sofia-sip-devel@lists.sourceforge.net>" mailto:sofia-sip-devel@lists.sourceforge.net>> Sent: Thursday, June 13, 2013 3:04 PM Subject: Re: [Sofia-sip-devel] sip register message construct I don't

Re: [Sofia-sip-devel] sip register message construct

2013-06-13 Thread Huang, Kun-Yao
orge.net>" mailto:sofia-sip-devel@lists.sourceforge.net>> Sent: Thursday, June 13, 2013 12:12 PM Subject: Re: [Sofia-sip-devel] sip register message construct Hi Thanh: I am currently using the following code and it works for me: m_registrationHandle = nua_handle(m_nua,

Re: [Sofia-sip-devel] sip register message construct

2013-06-13 Thread ThanhTruong
sourceforge.net" Sent: Thursday, June 13, 2013 12:12 PM Subject: Re: [Sofia-sip-devel] sip register message construct Hi Thanh:   I am currently using the following code and it works for me:      m_registrationHandle = nua_handle(m_nua, this, TAG_END());      std::stringstream from;

Re: [Sofia-sip-devel] sip register message construct

2013-06-12 Thread Huang, Kun-Yao
} } } } From: ThanhTruong [mailto:ngoc217th...@yahoo.com] Sent: Thursday, June 13, 2013 2:37 PM To: Huang, Kun-Yao; sofia-sip-devel@lists.sourceforge.net Subject: Re: [Sofia-sip-devel] sip register message construct hi, as I menti

Re: [Sofia-sip-devel] sip register message construct

2013-06-12 Thread ThanhTruong
er be 192.168.3.122 instead of 192.168.1.112" with nua ? Thanks,   ThanhTruong From: "Huang, Kun-Yao" To: "sofia-sip-devel@lists.sourceforge.net" Sent: Thursday, June 13, 2013 11:07 AM Subject: Re: [Sofia-sip-devel] sip register message

Re: [Sofia-sip-devel] sip register message construct

2013-06-12 Thread Huang, Kun-Yao
I could be wrong, but should the host field of TO and FROM header be 192.168.3.122 instead of 192.168.1.112? Kun-Yao REGISTER sip:101@192.168.3.122:42806;rinstance=7742cc70900998e8 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.112;rport;branch=z9hG4bKBB44UFQ9ySjQK Max-Forwards: 70 From: ;tag=DX

[Sofia-sip-devel] sip register message construct

2013-06-12 Thread ThanhTruong
hi all, I am very new in sofia sip, and I am develop one register module for FS using sofia sip stack. in FS, when i receive REGISTER message, i am trying to send it to another registrar server (kamailio). I have implement my code in incoming REGISTER message like:         nua_set_params(prof