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: <sip:192.168.1.112:5062>;tag=DXeN4j2DFt27j
   To: "101" <sip:101@192.168.1.112>;tag=cd424d7d



On 13/06/2013, at 1:20 PM, ThanhTruong 
<ngoc217th...@yahoo.com<mailto:ngoc217th...@yahoo.com>>
 wrote:

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(profile->nua,
                   SIPTAG_FROM_STR("sip:101@192.168.1.112:5062"),
                   NUTAG_ENABLEMESSAGE(1),
                   NUTAG_ENABLEINVITE(1),
                   NUTAG_AUTOALERT(1),
                   NUTAG_SESSION_TIMER(0),
                   NUTAG_AUTOANSWER(0),
                   TAG_NULL());

        nua_register(nh,
                 NUTAG_PROXY("sip:192.168.1.112:5062"),
                 NUTAG_REGISTRAR("sip:192.168.1.112:5062"), //registra uri
                 SIPTAG_FROM_STR("sip:192.168.1.112:5062"),
                 NUTAG_INSTANCE (0),
                 NUTAG_M_USERNAME("101"),
                 TAG_NULL());
...

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to