|
From: | yonglong.zhao |
Subject: | Re: [osip-dev] Some questions about the rport and oSIP |
Date: | Tue, 22 Jan 2013 09:30:06 +0800 |
Hi Aymeric,
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.
Regards,
Yonglong
2013-01-22
yonglong.zhao
发件人:Aymeric Moizard
发送时间:2013-01-21 19:12:19
收件人:yonglong.zhao
抄送:osip-dev
主题:Re: [osip-dev] Some questions
about the rport and oSIP
Hi Yonglong,
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?)
Regards
Aymeric
2013/1/21 yonglong.zhao <address@hidden>
|
[Prev in Thread] | Current Thread | [Next in Thread] |