|Subject:||Re: [osip-dev] Some questions about the rport and oSIP|
|Date:||Tue, 22 Jan 2013 09:30:06 +0800|
Thanks for your suggestion.
The code used by my project was published in 2001s, so it is too old and I can't found "osip_message_fix_last_via_header ".
I will check the eXosip2 ,hope it may help me to solve the problem.
主题：Re: [osip-dev] Some questions about the rport and oSIP
There is a method in osip that is a helper for adding "received" and "rport" parameters
into an incoming request.
For every incoming request, you can call the following method with the correct SOURCE
IP and PORT.
int osip_message_fix_last_via_header (osip_message_t * request, const char *ip_addr, int port)
The source ip & port can be retreived using "recvfrom" socket API.
You can check eXosip2 source code to see how this is done.
I don't see any reference to "sip_message_receive" and "osipua_distribute_event" in
my code.... (may be that's reference to an old sample code or version?)
2013/1/21 yonglong.zhao <address@hidden>
Antisip - http://www.antisip.com
|[Prev in Thread]||Current Thread||[Next in Thread]|