Hi,body. I'm using the kamailio as a sip server,If in the local network ,It works very well ,But when i set the sip server in the internet, When starting voice chat,Two sip phone will receive the behind net ip address(sip phone's local ip address). How i can configure sip server(kamailio) let sip server send sip phone's peer ip address using front nat ip address(internet ip address)? Any body can give me how to realize it?
Thank you!
--Aiphie
2009-08-21
“欢乐家庭总动员”--第七届全球通演出季网络互动有惊喜,千元大奖送给您!移动新推GPRS流量优惠系列新套餐,手机上网省钱又省心!
Hello,
On 21.08.2009 12:52 Uhr, aiphie wrote:
Hi,body. I'm using the kamailio as a sip server,If in the local network ,It works very well ,But when i set the sip server in the internet, When starting voice chat,Two sip phone will receive the behind net ip address(sip phone's local ip address). How i can configure sip server(kamailio) let sip server send sip phone's peer ip address using front nat ip address(internet ip address)? Any body can give me how to realize it?
you need to enable nathelper module + appropriate lines in config file and install rtpptoxy.
If you check the default config file you will see at the top some comments regarding nat traversal and what sed command you can use to enable it.
Cheers, Daniel
hi,all
I have use sed command to clear the comment which in front of regarding nat,But it's always use local network IP to fill session description protocol->connection information->connection address,I know sip server can rewrite this message item,Can you tell me how to let sip server rewrite it? annex is my config file,please look what wrong in this?
thank you!
--aiphie
----- Original Message ----- From: "Daniel-Constantin Mierla" miconda@gmail.com To: "aiphie" chengwu8@139.com Cc: users@lists.kamailio.org Sent: Friday, August 21, 2009 6:55 PM Subject: Re: [Kamailio-Users] sip phone behind the nat
Hello,
On 21.08.2009 12:52 Uhr, aiphie wrote:
Hi,body. I'm using the kamailio as a sip server,If in the local network ,It works very well ,But when i set the sip server in the internet, When starting voice chat,Two sip phone will receive the behind net ip address(sip phone's local ip address). How i can configure sip server(kamailio) let sip server send sip phone's peer ip address using front nat ip address(internet ip address)? Any body can give me how to realize it?
you need to enable nathelper module + appropriate lines in config file and install rtpptoxy.
If you check the default config file you will see at the top some comments regarding nat traversal and what sed command you can use to enable it.
Cheers, Daniel
-- Daniel-Constantin Mierla
On 24.08.2009 9:49 Uhr, aiphie wrote:
hi,all
I have use sed command to clear the comment which in front of regarding nat,But it's always use local network IP to fill session description protocol->connection information->connection address,I know sip server can rewrite this message item,Can you tell me how to let sip server rewrite it? annex is my config file,please look what wrong in this?
have you read my previous email entirely? There was something about rtpproxy that may lead you to discover what is wrong.
Cheers, Daniel
thank you!
--aiphie
----- Original Message ----- From: "Daniel-Constantin Mierla" miconda@gmail.com To: "aiphie" chengwu8@139.com Cc: users@lists.kamailio.org Sent: Friday, August 21, 2009 6:55 PM Subject: Re: [Kamailio-Users] sip phone behind the nat
Hello,
On 21.08.2009 12:52 Uhr, aiphie wrote:
Hi,body. I'm using the kamailio as a sip server,If in the local network ,It works very well ,But when i set the sip server in the internet, When starting voice chat,Two sip phone will receive the behind net ip address(sip phone's local ip address). How i can configure sip server(kamailio) let sip server send sip phone's peer ip address using front nat ip address(internet ip address)? Any body can give me how to realize it?
you need to enable nathelper module + appropriate lines in config file and install rtpptoxy.
If you check the default config file you will see at the top some comments regarding nat traversal and what sed command you can use to enable it.
Cheers, Daniel
-- Daniel-Constantin Mierla
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Hi,Daniel
I have according to your instruction modify the config file,but it remain as before. following is my modify part:
# -- nathelper modparam("nathelper", "rtpproxy_sock", "udp:127.0.0.1:7722") #Is 127.0.0.1 should modify my internet ip? modparam("nathelper", "natping_interval", 30) modparam("nathelper", "ping_nated_only", 1) modparam("nathelper", "sipping_bflag", 7) modparam("nathelper", "sipping_from", "sip:pinger@kamailio.org") #pinger@kamailio.org no modify? modparam("registrar|nathelper", "received_avp", "$avp(i:80)") modparam("usrloc", "nat_bflag", 6)
Can you tell my how to find the kamailio's log file(it's path)?
Thank you!
--aiphie
----- Original Message ----- From: "Daniel-Constantin Mierla" miconda@gmail.com To: "aiphie" chengwu8@139.com Cc: users@lists.kamailio.org Sent: Monday, August 24, 2009 3:45 PM Subject: Re: [Kamailio-Users] sip phone behind the nat
On 24.08.2009 9:49 Uhr, aiphie wrote:
hi,all
I have use sed command to clear the comment which in front of regarding nat,But it's always use local network IP to fill session description protocol->connection information->connection address,I know sip server can rewrite this message item,Can you tell me how to let sip server rewrite it? annex is my config file,please look what wrong in this?
have you read my previous email entirely? There was something about rtpproxy that may lead you to discover what is wrong.
Cheers, Daniel
thank you!
--aiphie
----- Original Message ----- From: "Daniel-Constantin Mierla" miconda@gmail.com To: "aiphie" chengwu8@139.com Cc: users@lists.kamailio.org Sent: Friday, August 21, 2009 6:55 PM Subject: Re: [Kamailio-Users] sip phone behind the nat
Hello,
On 21.08.2009 12:52 Uhr, aiphie wrote:
Hi,body. I'm using the kamailio as a sip server,If in the local network ,It works very well ,But when i set the sip server in the internet, When starting voice chat,Two sip phone will receive the behind net ip address(sip phone's local ip address). How i can configure sip server(kamailio) let sip server send sip phone's peer ip address using front nat ip address(internet ip address)? Any body can give me how to realize it?
you need to enable nathelper module + appropriate lines in config file and install rtpptoxy.
If you check the default config file you will see at the top some comments regarding nat traversal and what sed command you can use to enable it.
Cheers, Daniel
-- Daniel-Constantin Mierla
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-- Daniel-Constantin Mierla
Hello,
I'm talking about rtpproxy application -- you need to install it (http://www.rtpproxy.org) -- and when you start it you give as parameter also the listen ip address for media stream.
Cheers, Daniel
On 24.08.2009 11:02 Uhr, aiphie wrote:
Hi,Daniel I have according to your instruction modify the config file,but it remain as before. following is my modify part: # -- nathelper modparam("nathelper", "rtpproxy_sock", "udp:127.0.0.1:7722") #Is 127.0.0.1 should modify my internet ip? modparam("nathelper", "natping_interval", 30) modparam("nathelper", "ping_nated_only", 1) modparam("nathelper", "sipping_bflag", 7) modparam("nathelper", "sipping_from", "sip:pinger@kamailio.org") #pinger@kamailio.org mailto:#pinger@kamailio.org no modify? modparam("registrar|nathelper", "received_avp", "$avp(i:80)") modparam("usrloc", "nat_bflag", 6) Can you tell my how to find the kamailio's log file(it's path)? Thank you! --aiphie ----- Original Message ----- From: "Daniel-Constantin Mierla" <miconda@gmail.com mailto:miconda@gmail.com> To: "aiphie" <chengwu8@139.com mailto:chengwu8@139.com> Cc: <users@lists.kamailio.org mailto:users@lists.kamailio.org> Sent: Monday, August 24, 2009 3:45 PM Subject: Re: [Kamailio-Users] sip phone behind the nat
On 24.08.2009 9:49 Uhr, aiphie wrote:
hi,all
I have use sed command to clear the comment which in front of
regarding nat,But it's always use local network IP to fill session description protocol->connection information->connection address,I know sip server can rewrite this message item,Can you tell me how to let sip server rewrite it?
annex is my config file,please look what wrong in this?
have you read my previous email entirely? There was something about rtpproxy that may lead you to discover what is wrong.
Cheers, Daniel
thank you!
--aiphie
----- Original Message ----- From: "Daniel-Constantin Mierla" <miconda@gmail.com
To: "aiphie" <chengwu8@139.com mailto:chengwu8@139.com> Cc: <users@lists.kamailio.org mailto:users@lists.kamailio.org> Sent: Friday, August 21, 2009 6:55 PM Subject: Re: [Kamailio-Users] sip phone behind the nat
Hello,
On 21.08.2009 12:52 Uhr, aiphie wrote:
Hi,body. I'm using the kamailio as a sip server,If in the local network ,It works very well ,But when i set the sip server in the internet, When starting voice chat,Two sip phone will receive the behind net ip address(sip phone's local ip address). How i can configure sip server(kamailio) let sip server send sip phone's peer ip address using front nat ip address(internet ip
address)?
Any body can give me how to realize it?
you need to enable nathelper module + appropriate lines in config file and install rtpptoxy.
If you check the default config file you will see at the top some comments regarding nat traversal and what sed command you can use to enable it.
Cheers, Daniel
-- Daniel-Constantin Mierla
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org mailto:Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-- Daniel-Constantin Mierla
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
2009/8/24 aiphie chengwu8@139.com:
Hi,Daniel I have according to your instruction modify the config file,but it remain as before. following is my modify part:
# -- nathelper modparam("nathelper", "rtpproxy_sock", "udp:127.0.0.1:7722") #Is 127.0.0.1 should modify my internet ip? modparam("nathelper", "natping_interval", 30) modparam("nathelper", "ping_nated_only", 1) modparam("nathelper", "sipping_bflag", 7) modparam("nathelper", "sipping_from", "sip:pinger@kamailio.org") #pinger@kamailio.org no modify? modparam("registrar|nathelper", "received_avp", "$avp(i:80)") modparam("usrloc", "nat_bflag", 6)
Can you tell my how to find the kamailio's log file(it's path)?
Read the documentation please, or pay a consultant to do it for you.