[SR-Users] SIP between IPv4 and IPv6 agents

Komáromi Péter kpeti86 at freemail.hu
Fri Dec 3 11:16:52 CET 2010


Hello!

I forgot from my previous letter to following information:
my IPv4 users` name starts with `4`, and the iv6s` starts with `6`.
I start the rtpproxy like this: rtpproxy -F -l 192.168.124.165 -6 /fec0::2

Regards, 
Peter
---

Previous letter:

Hello!

I went through your letters and start as following:

-------------------------------------------------------
root at ubuntu:/home/yeti/rtpproxy# /etc/init.d/kamailio restart
Restarting kamailio: kamailioloading modules under /usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio/modules/
Listening on
udp: 192.168.124.158:5060
udp: FEC0:0:0:0:0:0:0:2:5060
tcp: 192.168.124.158:5060
tcp: FEC0:0:0:0:0:0:0:2:5060
Aliases:
tcp: ubuntu:5060
udp: ubuntu:5060

root at ubuntu:/home/yeti/rtpproxy# kamctl restart

INFO: Stopping Kamailio :
INFO: stopped

INFO: Starting Kamailio :
INFO: started (pid: 7597)
root at ubuntu:/home/yeti/rtpproxy# rtpproxy restart
-------------------------------------------------------

So I guess everything is starting fine.
The users can register and call each other. Their data are in the mysql database`s location table.
I put this into the kamailio.cfg file:

--------------------------------------------------------
# RTPProxy control
route[RTPPROXY] {
#!ifdef WITH_NAT
       if (is_method("BYE")) {
              unforce_rtp_proxy();
       } else if (is_method("INVITE"))
       {
              if (af == inet) {
                     if ( $(rU{s.substr,0,1}) == "6") {
                     force_rtp_proxy("ie");
                     } else {
                            force_rtp_proxy("ee");
                     }
              } else {
                     if ( $(rU{s.substr,0,1}) == "4") {
                            force_rtp_proxy("ei");
                     } else {
                            force_rtp_proxy("ii");
                     }
              }       
       } else if (is_method("200OK"))
       {
              if (af == inet) {
                     if ( $(rU{s.substr,0,1}) == "6") {
                     force_rtp_proxy("ei");
                     } else {
                            force_rtp_proxy("ee");
                     }
              } else {
                     if ( $(rU{s.substr,0,1}) == "4") {
                            force_rtp_proxy("ie");
                     } else {
                            force_rtp_proxy("ii");
                     }
              }       
       }
       if (!has_totag()) add_rr_param(";nat=yes");
#!endif
       return;
}

----------------------------------------------------------

But, unfortunately there is no RTP traffic yet. :(
What do you thing guys, what can be the problem?

Regards,
Peter



More information about the sr-users mailing list