I&#39;ve just setup a similar configuration as yours.<br><br>Could you check the SDP payload of the SIP INVITE that goes from kamailio to the callee ? It should contains the IP address of rtpproxy and the port allocated by the proxy.<br>

<br>Regards,<br>Pascal<br><br><div class="gmail_quote">On Thu, Jun 25, 2009 at 12:41 PM, rubenrojas - Trc.es <span dir="ltr">&lt;<a href="mailto:rubenrojas@trc.es">rubenrojas@trc.es</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hello everyone, this is my first post on this list,<br>
<br>
I have installed kamailio 1.5.1 and set up a vanilla default kamailio.cfg, then I have modified the cfg to activate mysql, domain, presence, nathelper and authentication with md5, everything works as supposed to, and the clients can register, send txt messages and talk to each other. The only problem is with the audio when the two clients are behind a NAT, the phones can make a call and it does ring too, but when you pick up there is no audio both ways.<br>


<br>
when the phones have a public IP everything goes fine, it also works when I use a Linksys PAP2T whith the options to &quot;Insert VIA received&quot;, &quot;Insert VIA rport&quot;, &quot;Handle VIA received&quot;, &quot;Handle VIA rport&quot; and &quot;NAT mapping enable&quot; turned on, with the Qutecom softphone works too.<br>


<br>
This is happening with thomson phones (model ST 2022), and GrandStream Budge Tone 200, it happens no matter what options I set for NATting on the phones, I&#39;ve even used stun with <a href="http://stunserver.org" target="_blank">stunserver.org</a> or the ekiga stunserver, the phones register and can make and recieve calls, but there is no audio when you pick up the call.<br>


<br>
With a kamctl ul show, you can see that the phones have registered the Contact with their local IPs and the Received have the public IPs and ports for the NAT<br>
The only difference with the working Linksys is that they register the Contact with the public IP.<br>
Here you can see two NATed phones on the proxy<br>
<br>
Domain:: location table=512 records=2 max_slot=1<br>
        AOR:: <a href="mailto:20000004@212.4.107.250">20000004@212.4.107.250</a><br>
                Contact:: sip:20000004@192.168.254.110:5060;transport=udp;user=phone Q=<br>
                        Expires:: 1150<br>
                        Callid:: <a href="mailto:72ed03f6d2f390f9@192.168.254.110">72ed03f6d2f390f9@192.168.254.110</a><br>
                        Cseq:: 10003<br>
                        User-agent:: Grandstream BT200 1.1.6.27<br>
                        Received:: sip:<a href="http://212.4.97.115:35379" target="_blank">212.4.97.115:35379</a><br>
                        State:: CS_NEW<br>
                        Flags:: 0<br>
                        Cflag:: 0<br>
                        Socket:: udp:<a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a><br>
                        Methods:: 7807<br>
        AOR:: <a href="mailto:20000000@212.4.107.250">20000000@212.4.107.250</a><br>
                Contact:: sip:20000000@192.168.254.101:5060;user=phone Q=<br>
                        Expires:: 2945<br>
                        Callid:: <a href="mailto:17fe-c0a80101-5-1@192.168.254.101">17fe-c0a80101-5-1@192.168.254.101</a><br>
                        Cseq:: 6<br>
                        User-agent:: THOMSON ST2022 hw2 fw3.56 00-18-F6-B5-7E-06<br>
                        Received:: sip:<a href="http://212.4.97.115:55128" target="_blank">212.4.97.115:55128</a><br>
                        State:: CS_NEW<br>
                        Flags:: 0<br>
                        Cflag:: 0<br>
                        Socket:: udp:<a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a><br>
                        Methods:: 4294967295<br>
<br>
<br>
Im using rtpproxy and there is no log error that indicates that rttpproxy isn&#39;t working, in fact doing a SIP trace shows rtpproxy setting ports for the audio.<br>
I run rtpproxy with this command:<br>
<br>
rtpproxy -l 212.4.107.250 -s udp:localhost:7722 -F<br>
<br>
Any help would be greatly appreciated, I&#39;ve been two weeks looking for a solution<br>
<br>
Im attaching my kamailio.cfg so you can take a look, at the end of the message Im gonna attache the SIP Trace of a call between two NATed phones (a Thomson and a GrandStream) in case anyone can help me decypher whats wrong here:<br>


<br>
this is my cfg file<br>
**************************************************************************************************<br>
<br>
#<br>
# $Id: kamailio.cfg 5800 2009-04-20 11:01:49Z miconda $<br>
#<br>
# Kamailio (OpenSER) SIP Server - basic configuration script<br>
#     - web: <a href="http://www.kamailio.org" target="_blank">http://www.kamailio.org</a><br>
#     - svn: <a href="http://openser.svn.sourceforge.net/viewvc/openser/" target="_blank">http://openser.svn.sourceforge.net/viewvc/openser/</a><br>
#<br>
# Direct your questions about this file to: &lt;<a href="mailto:users@lists.kamailio.org">users@lists.kamailio.org</a>&gt;<br>
#<br>
# Refer to the Core CookBook at <a href="http://www.kamailio.org/dokuwiki/doku.php" target="_blank">http://www.kamailio.org/dokuwiki/doku.php</a><br>
# for an explanation of possible statements, functions and parameters.<br>
#<br>
# There are comments showing how to enable different features in th econfig<br>
# file. Such commented code starts with #X# where X is a letter to identify<br>
# a feature. Delete entire #X# if you want to enable that feature. Next are<br>
# sed commands that help you enable such features.<br>
#<br>
# *** To enamble mysql execute:<br>
#     sed -i &#39;s/#m#//g&#39; kamailio.cfg<br>
#<br>
# *** To enamble authentication execute:<br>
#     - enable mysql<br>
#     sed -i &#39;s/#a#//g&#39; kamailio.cfg<br>
#     - add users using &#39;kamctl&#39;<br>
#<br>
# *** To enamble persistent user location execute:<br>
#     - enable mysql<br>
#     sed -i &#39;s/#u#//g&#39; kamailio.cfg<br>
#<br>
# *** To enamble presence server execute:<br>
#     - enable mysql<br>
#     sed -i &#39;s/#p#//g&#39; kamailio.cfg<br>
#<br>
# *** To enamble nat traversal execute:<br>
#     sed -i &#39;s/#n#//g&#39; kamailio.cfg<br>
#     - install RTPProxy: <a href="http://www.rtpproxy.org" target="_blank">http://www.rtpproxy.org</a><br>
#     - start RTPProxy:<br>
#        rtpproxy -l _your_public_ip_ -s udp:localhost:7722<br>
#<br>
# *** To enhance accounting execute:<br>
#     - enable mysql<br>
#     sed -i &#39;s/#c#//g&#39; kamailio.cfg<br>
#     - add following columns to database<br>
# ALTER TABLE acc ADD COLUMN src_user VARCHAR(64) NOT NULL DEFAULT &#39;&#39;;<br>
# ALTER TABLE acc ADD COLUMN src_domain VARCHAR(128) NOT NULL DEFAULT &#39;&#39;;<br>
# ALTER TABLE acc ADD COLUMN dst_ouser VARCHAR(64) NOT NULL DEFAULT &#39;&#39;;<br>
# ALTER TABLE acc ADD COLUMN dst_user VARCHAR(64) NOT NULL DEFAULT &#39;&#39;;<br>
# ALTER TABLE acc ADD COLUMN dst_domain VARCHAR(128) NOT NULL DEFAULT &#39;&#39;;<br>
# ALTER TABLE missed_calls ADD COLUMN src_user VARCHAR(64) NOT NULL DEFAULT &#39;&#39;;<br>
# ALTER TABLE missed_calls ADD COLUMN src_domain VARCHAR(128) NOT NULL DEFAULT &#39;&#39;;<br>
# ALTER TABLE missed_calls ADD COLUMN dst_ouser VARCHAR(64) NOT NULL DEFAULT &#39;&#39;;<br>
# ALTER TABLE missed_call ADD COLUMN dst_user VARCHAR(64) NOT NULL DEFAULT &#39;&#39;;<br>
# ALTER TABLE missed_calls ADD COLUMN dst_domain VARCHAR(128) NOT NULL DEFAULT &#39;&#39;;<br>
#<br>
<br>
<br>
####### Global Parameters #########<br>
<br>
debug=3<br>
log_stderror=no<br>
log_facility=LOG_LOCAL0<br>
<br>
fork=yes<br>
children=4<br>
<br>
/* uncomment the following lines to enable debugging */<br>
#debug=6<br>
#fork=no<br>
#log_stderror=yes<br>
<br>
/* uncomment the next line to disable TCP (default on) */<br>
#disable_tcp=yes<br>
<br>
/* uncomment the next line to enable the auto temporary blacklisting of<br>
   not available destinations (default disabled) */<br>
#disable_dns_blacklist=no<br>
<br>
/* uncomment the next line to enable IPv6 lookup after IPv4 dns<br>
   lookup failures (default disabled) */<br>
#dns_try_ipv6=yes<br>
<br>
/* uncomment the next line to disable the auto discovery of local aliases<br>
   based on revers DNS on IPs (default on) */<br>
#auto_aliases=no<br>
<br>
/* uncomment the following lines to enable TLS support  (default off) */<br>
#disable_tls = no<br>
#listen = tls:your_IP:5061<br>
#tls_verify_server = 1<br>
#tls_verify_client = 1<br>
#tls_require_client_certificate = 0<br>
#tls_method = TLSv1<br>
#tls_certificate = &quot;/usr/local/etc/kamailio/tls/user/user-cert.pem&quot;<br>
#tls_private_key = &quot;/usr/local/etc/kamailio/tls/user/user-privkey.pem&quot;<br>
#tls_ca_list     = &quot;/usr/local/etc/kamailio/tls/user/user-calist.pem&quot;<br>
<br>
<br>
port=5060<br>
<br>
/* uncomment and configure the following line if you want Kamailio to<br>
   bind on a specific interface/port/proto (default bind on all available) */<br>
#listen=udp:<a href="http://192.168.1.2:5060" target="_blank">192.168.1.2:5060</a><br>
<br>
<br>
####### Modules Section ########<br>
<br>
#set module path<br>
mpath=&quot;/usr/local/lib/kamailio/modules/&quot;<br>
<br>
/* uncomment next line for MySQL DB support */<br>
loadmodule &quot;db_mysql.so&quot;<br>
loadmodule &quot;mi_fifo.so&quot;<br>
loadmodule &quot;sl.so&quot;<br>
loadmodule &quot;tm.so&quot;<br>
loadmodule &quot;rr.so&quot;<br>
loadmodule &quot;pv.so&quot;<br>
loadmodule &quot;maxfwd.so&quot;<br>
loadmodule &quot;usrloc.so&quot;<br>
loadmodule &quot;registrar.so&quot;<br>
loadmodule &quot;textops.so&quot;<br>
loadmodule &quot;uri_db.so&quot;<br>
loadmodule &quot;siputils.so&quot;<br>
loadmodule &quot;xlog.so&quot;<br>
loadmodule &quot;acc.so&quot;<br>
/* uncomment next lines for MySQL based authentication support<br>
   NOTE: a DB (like db_mysql) module must be also loaded */<br>
loadmodule &quot;auth.so&quot;<br>
loadmodule &quot;auth_db.so&quot;<br>
/* uncomment next line for aliases support<br>
   NOTE: a DB (like db_mysql) module must be also loaded */<br>
#loadmodule &quot;alias_db.so&quot;<br>
/* uncomment next line for multi-domain support<br>
   NOTE: a DB (like db_mysql) module must be also loaded<br>
   NOTE: be sure and enable multi-domain support in all used modules<br>
         (see &quot;multi-module params&quot; section ) */<br>
loadmodule &quot;domain.so&quot;<br>
/* uncomment the next two lines for presence server support<br>
   NOTE: a DB (like db_mysql) module must be also loaded */<br>
loadmodule &quot;presence.so&quot;<br>
loadmodule &quot;presence_xml.so&quot;<br>
loadmodule &quot;presence_mwi.so&quot;#manually added<br>
<br>
loadmodule &quot;nathelper.so&quot;<br>
<br>
# ----------------- setting module-specific parameters ---------------<br>
<br>
<br>
# ----- mi_fifo params -----<br>
modparam(&quot;mi_fifo&quot;, &quot;fifo_name&quot;, &quot;/tmp/kamailio_fifo&quot;)<br>
<br>
<br>
# ----- rr params -----<br>
# add value to ;lr param to cope with most of the UAs<br>
modparam(&quot;rr&quot;, &quot;enable_full_lr&quot;, 1)<br>
# do not append from tag to the RR (no need for this script)<br>
modparam(&quot;rr&quot;, &quot;append_fromtag&quot;, 0)<br>
<br>
<br>
# ----- rr params -----<br>
modparam(&quot;registrar&quot;, &quot;method_filtering&quot;, 1)<br>
/* uncomment the next line to disable parallel forking via location */<br>
# modparam(&quot;registrar&quot;, &quot;append_branches&quot;, 0)<br>
/* uncomment the next line not to allow more than 10 contacts per AOR */<br>
#modparam(&quot;registrar&quot;, &quot;max_contacts&quot;, 10)<br>
<br>
<br>
# ----- uri_db params -----<br>
/* by default we disable the DB support in the module as we do not need it<br>
   in this configuration */<br>
modparam(&quot;uri_db&quot;, &quot;use_uri_table&quot;, 0)<br>
modparam(&quot;uri_db&quot;, &quot;db_url&quot;, &quot;&quot;)<br>
<br>
<br>
# ----- acc params -----<br>
/* what sepcial events should be accounted ? */<br>
modparam(&quot;acc&quot;, &quot;early_media&quot;, 1)<br>
modparam(&quot;acc&quot;, &quot;report_ack&quot;, 1)<br>
modparam(&quot;acc&quot;, &quot;report_cancels&quot;, 1)<br>
/* by default ww do not adjust the direct of the sequential requests.<br>
   if you enable this parameter, be sure the enable &quot;append_fromtag&quot;<br>
   in &quot;rr&quot; module */<br>
modparam(&quot;acc&quot;, &quot;detect_direction&quot;, 0)<br>
/* account triggers (flags) */<br>
modparam(&quot;acc&quot;, &quot;failed_transaction_flag&quot;, 3)<br>
modparam(&quot;acc&quot;, &quot;log_flag&quot;, 1)<br>
modparam(&quot;acc&quot;, &quot;log_missed_flag&quot;, 2)<br>
modparam(&quot;acc&quot;, &quot;log_extra&quot;,<br>
        &quot;src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd&quot;)<br>
/* uncomment the following lines to enable DB accounting also */<br>
#c#modparam(&quot;acc&quot;, &quot;db_flag&quot;, 1)<br>
#c#modparam(&quot;acc&quot;, &quot;db_missed_flag&quot;, 2)<br>
#c#modparam(&quot;domain&quot;, &quot;db_url&quot;,<br>
#c#     &quot;mysql://openser:openserrw@localhost/openser&quot;)<br>
#c#modparam(&quot;acc&quot;, &quot;db_extra&quot;,<br>
#c#     &quot;src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd&quot;)<br>
<br>
<br>
# ----- usrloc params -----<br>
/* uncomment the following lines if you want to enable DB persistency<br>
   for location entries */<br>
#u#modparam(&quot;usrloc&quot;, &quot;db_mode&quot;,   2)<br>
#u#modparam(&quot;usrloc&quot;, &quot;db_url&quot;,<br>
#u#     &quot;mysql://openser:openserrw@localhost/openser&quot;)<br>
<br>
# ----- auth_db params -----<br>
/* uncomment the following lines if you want to enable the DB based<br>
   authentication */<br>
#a#modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, yes)<br>
#a#modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)<br>
#a#modparam(&quot;auth_db&quot;, &quot;db_url&quot;,<br>
#a#     &quot;mysql://openser:openserrw@localhost/openser&quot;)<br>
#a#modparam(&quot;auth_db&quot;, &quot;load_credentials&quot;, &quot;&quot;)<br>
<br>
#parametros de autentificacion modificados manualmente<br>
modparam(&quot;auth_db&quot;, &quot;user_column&quot;, &quot;username&quot;)<br>
modparam(&quot;auth_db&quot;, &quot;domain_column&quot;, &quot;domain&quot;)<br>
modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;ha1&quot;)<br>
modparam(&quot;auth_db&quot;, &quot;password_column_2&quot;, &quot;ha1b&quot;)<br>
modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, 0)<br>
#modparam(&quot;auth_db&quot;, &quot;use_domain&quot;, 0)<br>
modparam(&quot;auth_db&quot;, &quot;use_domain&quot;, 1)#0 encendemos con 1 porque utilizaremos multi-domain<br>
modparam(&quot;auth_db&quot;, &quot;load_credentials&quot;, &quot;rpid&quot;)<br>
modparam(&quot;auth_db&quot;, &quot;db_url&quot;,<br>
        &quot;mysql://openser:openserrw@localhost/openser&quot;)<br>
<br>
<br>
# ----- alias_db params -----<br>
/* uncomment the following lines if you want to enable the DB based<br>
   aliases */<br>
#modparam(&quot;alias_db&quot;, &quot;db_url&quot;,<br>
#       &quot;mysql://openser:openserrw@localhost/openser&quot;)<br>
<br>
<br>
# ----- domain params -----<br>
/* uncomment the following lines to enable multi-domain detection<br>
   support */<br>
modparam(&quot;domain&quot;, &quot;db_url&quot;,<br>
        &quot;mysql://openser:openserrw@localhost/openser&quot;)<br>
modparam(&quot;domain&quot;, &quot;db_mode&quot;, 1)   # Use caching<br>
<br>
<br>
# ----- multi-module params -----<br>
/* uncomment the following line if you want to enable multi-domain support<br>
   in the modules (dafault off) */<br>
modparam(&quot;alias_db|auth_db|usrloc|uri_db&quot;, &quot;use_domain&quot;, 1)<br>
<br>
<br>
# ----- presence params -----<br>
/* uncomment the following lines if you want to enable presence */<br>
modparam(&quot;presence|presence_xml&quot;, &quot;db_url&quot;,<br>
        &quot;mysql://openser:openserrw@localhost/openser&quot;)<br>
modparam(&quot;presence_xml&quot;, &quot;force_active&quot;, 1)<br>
modparam(&quot;presence&quot;, &quot;server_address&quot;, &quot;sip:<a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a>&quot;)<br>
<br>
# -- nathelper<br>
modparam(&quot;nathelper&quot;, &quot;rtpproxy_sock&quot;, &quot;udp:<a href="http://127.0.0.1:7722" target="_blank">127.0.0.1:7722</a>&quot;)<br>
modparam(&quot;nathelper&quot;, &quot;natping_interval&quot;, 15)<br>
modparam(&quot;nathelper&quot;, &quot;ping_nated_only&quot;, 0)<br>
modparam(&quot;nathelper&quot;, &quot;sipping_bflag&quot;, 7)<br>
modparam(&quot;nathelper&quot;, &quot;sipping_from&quot;, &quot;<a href="mailto:sip%3Apinger@212.4.107.250">sip:pinger@212.4.107.250</a>&quot;)<br>
modparam(&quot;registrar|nathelper&quot;, &quot;received_avp&quot;, &quot;$avp(i:80)&quot;)<br>
modparam(&quot;usrloc&quot;, &quot;nat_bflag&quot;, 6)<br>
modparam(&quot;nathelper&quot;, &quot;sipping_method&quot;, &quot;OPTIONS&quot;)<br>
<br>
<br>
####### Routing Logic ########<br>
<br>
<br>
# main request routing logic<br>
<br>
route{<br>
<br>
        if (!mf_process_maxfwd_header(&quot;10&quot;)) {<br>
                sl_send_reply(&quot;483&quot;,&quot;Too Many Hops&quot;);<br>
                exit;<br>
        }<br>
<br>
        # NAT detection<br>
        route(4);<br>
<br>
        if (has_totag()) {<br>
                # sequential request withing a dialog should<br>
                # take the path determined by record-routing<br>
                if (loose_route()) {<br>
                        if (is_method(&quot;BYE&quot;)) {<br>
                                setflag(1); # do accounting ...<br>
                                setflag(3); # ... even if the transaction fails<br>
                        }<br>
                        route(1);<br>
                } else {<br>
                        if (is_method(&quot;SUBSCRIBE&quot;) &amp;&amp; uri == myself) {<br>
                                # in-dialog subscribe requests<br>
                                route(2);<br>
                                exit;<br>
                        }<br>
                        if ( is_method(&quot;ACK&quot;) ) {<br>
                                if ( t_check_trans() ) {<br>
                                        # non loose-route, but stateful ACK; must be an ACK after a 487 or e.g. 404 from upstream server<br>
                                        t_relay();<br>
                                        exit;<br>
                                } else {<br>
                                        # ACK without matching transaction ... ignore and discard.\n&quot;);<br>
                                        exit;<br>
                                }<br>
                        }<br>
                        sl_send_reply(&quot;404&quot;,&quot;Not here&quot;);<br>
                }<br>
                exit;<br>
        }<br>
<br>
        #initial requests<br>
<br>
        # CANCEL processing<br>
        if (is_method(&quot;CANCEL&quot;))<br>
        {<br>
                if (t_check_trans())<br>
                {<br>
                        t_relay();<br>
                }<br>
                exit;<br>
        }<br>
<br>
        t_check_trans();<br>
<br>
        # authentication<br>
        route(3);<br>
<br>
        # record routing<br>
        if (!is_method(&quot;REGISTER|MESSAGE&quot;))<br>
        {<br>
                record_route();<br>
        }<br>
<br>
        # account only INVITEs<br>
        if (is_method(&quot;INVITE&quot;)) {<br>
                setflag(1); # do accounting<br>
        }<br>
        ##if (!uri==myself)<br>
        /* replace with following line if multi-domain support is used */<br>
        if (!is_uri_host_local())<br>
        {<br>
                append_hf(&quot;P-hint: outbound\r\n&quot;);<br>
                # if you have some interdomain connections via TLS<br>
                ##if($rd==&quot;<a href="http://tls_domain1.net" target="_blank">tls_domain1.net</a>&quot;) {<br>
                ##      t_relay(&quot;tls:<a href="http://domain1.net" target="_blank">domain1.net</a>&quot;);<br>
                ##      exit;<br>
                ##} else if($rd==&quot;<a href="http://tls_domain2.net" target="_blank">tls_domain2.net</a>&quot;) {<br>
                ##      t_relay(&quot;tls:<a href="http://domain2.net" target="_blank">domain2.net</a>&quot;);<br>
                ##      exit;<br>
                ##}<br>
                route(1);<br>
        }<br>
<br>
        # requests for my domain<br>
<br>
        if( is_method(&quot;PUBLISH|SUBSCRIBE&quot;))<br>
        {<br>
                route(2);<br>
        }<br>
<br>
        if (is_method(&quot;REGISTER&quot;))<br>
        {<br>
                if (!save(&quot;location&quot;))<br>
                {<br>
                        sl_reply_error();<br>
                }<br>
                exit;<br>
        }<br>
<br>
        if ($rU==NULL) {<br>
                # request with no Username in RURI<br>
                sl_send_reply(&quot;484&quot;,&quot;Address Incomplete&quot;);<br>
                exit;<br>
        }<br>
<br>
        # apply DB based aliases (uncomment to enable)<br>
        ##alias_db_lookup(&quot;dbaliases&quot;);<br>
<br>
        if (!lookup(&quot;location&quot;)) {<br>
                switch ($retcode) {<br>
                        case -1:<br>
                        case -3:<br>
                                t_newtran();<br>
                                t_reply(&quot;404&quot;, &quot;Not Found&quot;);<br>
                                exit;<br>
                        case -2:<br>
                                sl_send_reply(&quot;405&quot;, &quot;Method Not Allowed&quot;);<br>
                                exit;<br>
                }<br>
        }<br>
<br>
        # when routing via usrloc, log the missed calls also<br>
        setflag(2);<br>
<br>
        route(1);<br>
}<br>
<br>
<br>
route[1] {<br>
        if (check_route_param(&quot;nat=yes&quot;)) {<br>
                setbflag(6);<br>
                setbflag(7);# sipping<br>
        }<br>
        if (isflagset(5) || isbflagset(6)) {<br>
                route(5);<br>
        }<br>
<br>
        /* example how to enable some additional event routes */<br>
        if (is_method(&quot;INVITE&quot;)) {<br>
                #t_on_branch(&quot;1&quot;);<br>
                t_on_reply(&quot;1&quot;);<br>
                t_on_failure(&quot;1&quot;);<br>
        }<br>
<br>
        if (!t_relay()) {<br>
                sl_reply_error();<br>
        }<br>
        exit;<br>
}<br>
<br>
<br>
# Presence route<br>
/* uncomment the whole following route for enabling presence server */<br>
route[2]<br>
{<br>
        if (!t_newtran())<br>
        {<br>
                sl_reply_error();<br>
                exit;<br>
        };<br>
<br>
        if(is_method(&quot;PUBLISH&quot;))<br>
        {<br>
                handle_publish();<br>
                t_release();<br>
        }<br>
        else<br>
        if( is_method(&quot;SUBSCRIBE&quot;))<br>
        {<br>
                handle_subscribe();<br>
                t_release();<br>
        }<br>
        exit;<br>
<br>
        # if presence enabled, this part will not be executed<br>
        if (is_method(&quot;PUBLISH&quot;) || $rU==null)<br>
        {<br>
                sl_send_reply(&quot;404&quot;, &quot;Not here&quot;);<br>
                exit;<br>
        }<br>
        return;<br>
}<br>
<br>
# Authentication route<br>
/* uncomment the whole following route for enabling authentication */<br>
route[3] {<br>
        if (is_method(&quot;REGISTER&quot;))<br>
        {<br>
                # authenticate the REGISTER requests (uncomment to enable auth)<br>
                if (!www_authorize(&quot;&quot;, &quot;subscriber&quot;))<br>
                {<br>
                        www_challenge(&quot;&quot;, &quot;0&quot;);<br>
                        exit;<br>
                }<br>
<br>
                if ($au!=$tU)<br>
                {<br>
                        sl_send_reply(&quot;403&quot;,&quot;Forbidden auth ID&quot;);<br>
                        exit;<br>
                }<br>
        }<br>
# Auth only on registration<br>
#a#     } else {<br>
#a#             # authenticate if from local subscriber (uncomment to enable auth)<br>
#a#             if (from_uri==myself)<br>
#a#             {<br>
#a#                     if (!proxy_authorize(&quot;&quot;, &quot;subscriber&quot;)) {<br>
#a#                             proxy_challenge(&quot;&quot;, &quot;0&quot;);<br>
#a#                             exit;<br>
#a#                     }<br>
#a#                     if (is_method(&quot;PUBLISH&quot;))<br>
#a#                     {<br>
#a#                             if ($au!=$tU) {<br>
#a#                                     sl_send_reply(&quot;403&quot;,&quot;Forbidden auth ID&quot;);<br>
#a#                                     exit;<br>
#a#                             }<br>
#a#                     } else {<br>
#a#                             if ($au!=$fU) {<br>
#a#                                     sl_send_reply(&quot;403&quot;,&quot;Forbidden auth ID&quot;);<br>
#a#                                     exit;<br>
#a#                             }<br>
#a#                     }<br>
#a#<br>
#a#                     consume_credentials();<br>
#a#                     # caller authenticated<br>
#a#             }<br>
#a#     }<br>
        return;<br>
}<br>
<br>
# Caller NAT detection route<br>
/* uncomment the whole following route for enabling Caller NAT Detection */<br>
route[4]{<br>
        force_rport();<br>
        if (nat_uac_test(&quot;19&quot;)) {<br>
                if (method==&quot;REGISTER&quot;) {<br>
                        fix_nated_register();<br>
                } else {<br>
                        fix_nated_contact();<br>
                }<br>
                setflag(5);<br>
        }<br>
        return;<br>
}<br>
<br>
# RTPProxy control<br>
/* uncomment the whole following route for enabling RTPProxy Control */<br>
route[5] {<br>
        if (is_method(&quot;BYE&quot;)) {<br>
                unforce_rtp_proxy();<br>
        } else if (is_method(&quot;INVITE&quot;)){<br>
                force_rtp_proxy();<br>
        }<br>
        if (!has_totag()) add_rr_param(&quot;;nat=yes&quot;);<br>
        return;<br>
}<br>
<br>
branch_route[1] {<br>
        xdbg(&quot;new branch at $ru\n&quot;);<br>
}<br>
<br>
<br>
onreply_route[1] {<br>
        xdbg(&quot;incoming reply\n&quot;);<br>
<br>
        if ((isflagset(5) || isbflagset(6)) &amp;&amp; status=~&quot;(183)|(2[0-9][0-9])&quot;) {<br>
                force_rtp_proxy();<br>
        }<br>
        if (isbflagset(6)) {<br>
                fix_nated_contact();<br>
        }<br>
}<br>
<br>
<br>
failure_route[1] {<br>
        if (is_method(&quot;INVITE&quot;)<br>
                        &amp;&amp; (isbflagset(6) || isflagset(5))) {<br>
                unforce_rtp_proxy();<br>
        }<br>
<br>
        if (t_was_cancelled()) {<br>
                exit;<br>
        }<br>
<br>
        # uncomment the following lines if you want to block client<br>
        # redirect based on 3xx replies.<br>
        ##if (t_check_status(&quot;3[0-9][0-9]&quot;)) {<br>
        ##t_reply(&quot;404&quot;,&quot;Not found&quot;);<br>
        ##      exit;<br>
        ##}<br>
<br>
        # uncomment the following lines if you want to redirect the failed<br>
        # calls to a different new destination<br>
        ##if (t_check_status(&quot;486|408&quot;)) {<br>
        ##      sethostport(&quot;<a href="http://192.168.2.100:5060" target="_blank">192.168.2.100:5060</a>&quot;);<br>
        ##      append_branch();<br>
        ##      # do not set the missed call flag again<br>
        ##      t_relay();<br>
        ##}<br>
}<br>
<br>
**************************************************************************************************<br>
**************************************************************************************************<br>
<br>
And here goes the SIP Trace for a NATed to NATed hardphones:<br>
**************************************************************************************************<br>
U +0.161561 <a href="http://212.4.97.115:35379" target="_blank">212.4.97.115:35379</a> -&gt; <a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a><br>
INVITE <a href="mailto:sip%3A20000000@212.4.107.250">sip:20000000@212.4.107.250</a>;user=phone SIP/2.0<br>
Via: SIP/2.0/UDP 192.168.254.110:5060;branch=z9hG4bK8f809670adc00668<br>
From: &quot;20000004&quot; &lt;<a href="mailto:sip%3A20000004@212.4.107.250">sip:20000004@212.4.107.250</a>;user=phone&gt;;tag=ab6ba13b2f38a04e<br>
To: &lt;<a href="mailto:sip%3A20000000@212.4.107.250">sip:20000000@212.4.107.250</a>;user=phone&gt;<br>
Contact: &lt;sip:20000004@192.168.254.110:5060;transport=udp;user=phone&gt;<br>
Supported: replaces, timer, path<br>
Call-ID: <a href="mailto:c177cae013da224d@192.168.254.110">c177cae013da224d@192.168.254.110</a><br>
CSeq: 29653 INVITE<br>
User-Agent: Grandstream BT200 1.1.6.27<br>
Max-Forwards: 70<br>
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK<br>
Content-Type: application/sdp<br>
Content-Length: 332<br>
<br>
v=0<br>
o=20000004 8000 8000 IN IP4 192.168.254.110<br>
s=SIP Call<br>
c=IN IP4 192.168.254.110<br>
t=0 0<br>
m=audio 40000 RTP/AVP 4 3 18 0 8 9 97<br>
a=sendrecv<br>
a=rtpmap:4 G723/8000<br>
a=rtpmap:3 GSM/8000<br>
a=rtpmap:18 G729/8000<br>
a=rtpmap:0 PCMU/8000<br>
a=rtpmap:8 PCMA/8000<br>
a=rtpmap:9 G722/8000<br>
a=rtpmap:97 iLBC/8000<br>
a=fmtp:97 mode=20<br>
a=ptime:60<br>
<br>
#<br>
U +0.000407 <a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a> -&gt; <a href="http://212.4.97.115:35379" target="_blank">212.4.97.115:35379</a><br>
SIP/2.0 100 Giving a try<br>
Via: SIP/2.0/UDP 192.168.254.110:5060;branch=z9hG4bK8f809670adc00668;rport=35379;received=212.4.97.115<br>
From: &quot;20000004&quot; &lt;<a href="mailto:sip%3A20000004@212.4.107.250">sip:20000004@212.4.107.250</a>;user=phone&gt;;tag=ab6ba13b2f38a04e<br>
To: &lt;<a href="mailto:sip%3A20000000@212.4.107.250">sip:20000000@212.4.107.250</a>;user=phone&gt;<br>
Call-ID: <a href="mailto:c177cae013da224d@192.168.254.110">c177cae013da224d@192.168.254.110</a><br>
CSeq: 29653 INVITE<br>
Server: Kamailio (1.5.1-notls (i386/linux))<br>
Content-Length: 0<br>
<br>
<br>
#<br>
U +0.000034 <a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a> -&gt; <a href="http://212.4.97.115:55128" target="_blank">212.4.97.115:55128</a><br>
INVITE sip:20000000@192.168.254.101:5060;user=phone SIP/2.0<br>
Record-Route: &lt;sip:212.4.107.250;lr=on;nat=yes&gt;<br>
Via: SIP/2.0/UDP 212.4.107.250;branch=z9hG4bK5974.c5c9aa24.0<br>
Via: SIP/2.0/UDP 192.168.254.110:5060;rport=35379;received=212.4.97.115;branch=z9hG4bK8f809670adc00668<br>
From: &quot;20000004&quot; &lt;<a href="mailto:sip%3A20000004@212.4.107.250">sip:20000004@212.4.107.250</a>;user=phone&gt;;tag=ab6ba13b2f38a04e<br>
To: &lt;<a href="mailto:sip%3A20000000@212.4.107.250">sip:20000000@212.4.107.250</a>;user=phone&gt;<br>
Contact: &lt;sip:20000004@212.4.97.115:35379;transport=udp;user=phone&gt;<br>
Supported: replaces, timer, path<br>
Call-ID: <a href="mailto:c177cae013da224d@192.168.254.110">c177cae013da224d@192.168.254.110</a><br>
CSeq: 29653 INVITE<br>
User-Agent: Grandstream BT200 1.1.6.27<br>
Max-Forwards: 69<br>
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK<br>
Content-Type: application/sdp<br>
Content-Length: 348<br>
<br>
v=0<br>
o=20000004 8000 8000 IN IP4 192.168.254.110<br>
s=SIP Call<br>
c=IN IP4 212.4.107.250<br>
t=0 0<br>
m=audio 35752 RTP/AVP 4 3 18 0 8 9 97<br>
a=sendrecv<br>
a=rtpmap:4 G723/8000<br>
a=rtpmap:3 GSM/8000<br>
a=rtpmap:18 G729/8000<br>
a=rtpmap:0 PCMU/8000<br>
a=rtpmap:8 PCMA/8000<br>
a=rtpmap:9 G722/8000<br>
a=rtpmap:97 iLBC/8000<br>
a=fmtp:97 mode=20<br>
a=ptime:60<br>
a=nortpproxy:yes<br>
<br>
#<br>
U +0.019311 <a href="http://212.4.97.115:55128" target="_blank">212.4.97.115:55128</a> -&gt; <a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a><br>
SIP/2.0 100 Trying<br>
Via: SIP/2.0/UDP 212.4.107.250;branch=z9hG4bK5974.c5c9aa24.0<br>
Via: SIP/2.0/UDP 192.168.254.110:5060;rport=35379;received=212.4.97.115;branch=z9hG4bK8f809670adc00668<br>
From: &quot;20000004&quot;&lt;<a href="mailto:sip%3A20000004@212.4.107.250">sip:20000004@212.4.107.250</a>;user=phone&gt;;tag=ab6ba13b2f38a04e<br>
To: &lt;<a href="mailto:sip%3A20000000@212.4.107.250">sip:20000000@212.4.107.250</a>;user=phone&gt;<br>
Call-ID: <a href="mailto:c177cae013da224d@192.168.254.110">c177cae013da224d@192.168.254.110</a><br>
CSeq: 29653 INVITE<br>
Content-Length: 0<br>
<br>
<br>
#<br>
U +0.030480 <a href="http://212.4.97.115:55128" target="_blank">212.4.97.115:55128</a> -&gt; <a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a><br>
SIP/2.0 180 Ringing<br>
Via: SIP/2.0/UDP 212.4.107.250;branch=z9hG4bK5974.c5c9aa24.0<br>
Via: SIP/2.0/UDP 192.168.254.110:5060;rport=35379;received=212.4.97.115;branch=z9hG4bK8f809670adc00668<br>
From: &quot;20000004&quot;&lt;<a href="mailto:sip%3A20000004@212.4.107.250">sip:20000004@212.4.107.250</a>;user=phone&gt;;tag=ab6ba13b2f38a04e<br>
To: &lt;<a href="mailto:sip%3A20000000@212.4.107.250">sip:20000000@212.4.107.250</a>;user=phone&gt;;tag=c0a80101-21188<br>
Call-ID: <a href="mailto:c177cae013da224d@192.168.254.110">c177cae013da224d@192.168.254.110</a><br>
CSeq: 29653 INVITE<br>
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,SUBSCRIBE,NOTIFY,UPDATE,REFER,REGISTER,INFO<br>
Contact: &lt;sip:20000000@192.168.254.101:5060;user=phone&gt;<br>
Record-Route: &lt;sip:212.4.107.250;lr=on;nat=yes&gt;<br>
Allow-Events: refer,dialog,message-summary,check-sync,talk,hold<br>
Content-Length: 0<br>
<br>
<br>
#<br>
U +0.000083 <a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a> -&gt; <a href="http://212.4.97.115:35379" target="_blank">212.4.97.115:35379</a><br>
SIP/2.0 180 Ringing<br>
Via: SIP/2.0/UDP 192.168.254.110:5060;rport=35379;received=212.4.97.115;branch=z9hG4bK8f809670adc00668<br>
From: &quot;20000004&quot;&lt;<a href="mailto:sip%3A20000004@212.4.107.250">sip:20000004@212.4.107.250</a>;user=phone&gt;;tag=ab6ba13b2f38a04e<br>
To: &lt;<a href="mailto:sip%3A20000000@212.4.107.250">sip:20000000@212.4.107.250</a>;user=phone&gt;;tag=c0a80101-21188<br>
Call-ID: <a href="mailto:c177cae013da224d@192.168.254.110">c177cae013da224d@192.168.254.110</a><br>
CSeq: 29653 INVITE<br>
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,SUBSCRIBE,NOTIFY,UPDATE,REFER,REGISTER,INFO<br>
Contact: &lt;sip:20000000@192.168.254.101:5060;user=phone&gt;<br>
Record-Route: &lt;sip:212.4.107.250;lr=on;nat=yes&gt;<br>
Allow-Events: refer,dialog,message-summary,check-sync,talk,hold<br>
Content-Length: 0<br>
<br>
<br>
#<br>
U +6.510103 <a href="http://212.4.97.115:55128" target="_blank">212.4.97.115:55128</a> -&gt; <a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a><br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP 212.4.107.250;branch=z9hG4bK5974.c5c9aa24.0<br>
Via: SIP/2.0/UDP 192.168.254.110:5060;rport=35379;received=212.4.97.115;branch=z9hG4bK8f809670adc00668<br>
From: &quot;20000004&quot;&lt;<a href="mailto:sip%3A20000004@212.4.107.250">sip:20000004@212.4.107.250</a>;user=phone&gt;;tag=ab6ba13b2f38a04e<br>
To: &lt;<a href="mailto:sip%3A20000000@212.4.107.250">sip:20000000@212.4.107.250</a>;user=phone&gt;;tag=c0a80101-21188<br>
Call-ID: <a href="mailto:c177cae013da224d@192.168.254.110">c177cae013da224d@192.168.254.110</a><br>
CSeq: 29653 INVITE<br>
Require: timer<br>
Session-Expires: 100;refresher=uac<br>
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,SUBSCRIBE,NOTIFY,UPDATE,REFER,REGISTER,INFO<br>
Contact: &lt;sip:20000000@192.168.254.101:5060;user=phone&gt;<br>
Record-Route: &lt;sip:212.4.107.250;lr=on;nat=yes&gt;<br>
Allow-Events: refer,dialog,message-summary,check-sync,talk,hold<br>
Content-Type: application/sdp<br>
Content-Length: 151<br>
<br>
v=0<br>
o=20000000 138812 138812 IN IP4 192.168.254.101<br>
s=-<br>
c=IN IP4 192.168.254.101<br>
t=0 0<br>
m=audio 32448 RTP/AVP 0<br>
a=rtpmap:0 PCMU/8000<br>
a=sendrecv<br>
<br>
#<br>
U +0.000365 <a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a> -&gt; <a href="http://212.4.97.115:35379" target="_blank">212.4.97.115:35379</a><br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP 192.168.254.110:5060;rport=35379;received=212.4.97.115;branch=z9hG4bK8f809670adc00668<br>
From: &quot;20000004&quot;&lt;<a href="mailto:sip%3A20000004@212.4.107.250">sip:20000004@212.4.107.250</a>;user=phone&gt;;tag=ab6ba13b2f38a04e<br>
To: &lt;<a href="mailto:sip%3A20000000@212.4.107.250">sip:20000000@212.4.107.250</a>;user=phone&gt;;tag=c0a80101-21188<br>
Call-ID: <a href="mailto:c177cae013da224d@192.168.254.110">c177cae013da224d@192.168.254.110</a><br>
CSeq: 29653 INVITE<br>
Require: timer<br>
Session-Expires: 100;refresher=uac<br>
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,SUBSCRIBE,NOTIFY,UPDATE,REFER,REGISTER,INFO<br>
Contact: &lt;sip:20000000@192.168.254.101:5060;user=phone&gt;<br>
Record-Route: &lt;sip:212.4.107.250;lr=on;nat=yes&gt;<br>
Allow-Events: refer,dialog,message-summary,check-sync,talk,hold<br>
Content-Type: application/sdp<br>
Content-Length: 167<br>
<br>
v=0<br>
o=20000000 138812 138812 IN IP4 192.168.254.101<br>
s=-<br>
c=IN IP4 212.4.107.250<br>
t=0 0<br>
m=audio 35754 RTP/AVP 0<br>
a=rtpmap:0 PCMU/8000<br>
a=sendrecv<br>
a=nortpproxy:yes<br>
<br>
#<br>
U +0.034122 <a href="http://212.4.97.115:35379" target="_blank">212.4.97.115:35379</a> -&gt; <a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a><br>
ACK sip:20000000@192.168.254.101:5060;user=phone SIP/2.0<br>
Via: SIP/2.0/UDP 192.168.254.110:5060;branch=z9hG4bKdf5e0ceed72f3797<br>
Route: &lt;sip:212.4.107.250;lr=on;nat=yes&gt;<br>
From: &quot;20000004&quot; &lt;<a href="mailto:sip%3A20000004@212.4.107.250">sip:20000004@212.4.107.250</a>;user=phone&gt;;tag=ab6ba13b2f38a04e<br>
To: &lt;<a href="mailto:sip%3A20000000@212.4.107.250">sip:20000000@212.4.107.250</a>;user=phone&gt;;tag=c0a80101-21188<br>
Contact: &lt;sip:20000004@192.168.254.110:5060;transport=udp;user=phone&gt;<br>
Supported: path<br>
Call-ID: <a href="mailto:c177cae013da224d@192.168.254.110">c177cae013da224d@192.168.254.110</a><br>
CSeq: 29653 ACK<br>
User-Agent: Grandstream BT200 1.1.6.27<br>
Max-Forwards: 70<br>
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK<br>
Content-Length: 0<br>
<br>
<br>
#<br>
U +0.000245 <a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a> -&gt; <a href="http://192.168.254.101:5060" target="_blank">192.168.254.101:5060</a><br>
ACK sip:20000000@192.168.254.101:5060;user=phone SIP/2.0<br>
Via: SIP/2.0/UDP 212.4.107.250;branch=z9hG4bK5974.c5c9aa24.2<br>
Via: SIP/2.0/UDP 192.168.254.110:5060;rport=35379;received=212.4.97.115;branch=z9hG4bKdf5e0ceed72f3797<br>
From: &quot;20000004&quot; &lt;<a href="mailto:sip%3A20000004@212.4.107.250">sip:20000004@212.4.107.250</a>;user=phone&gt;;tag=ab6ba13b2f38a04e<br>
To: &lt;<a href="mailto:sip%3A20000000@212.4.107.250">sip:20000000@212.4.107.250</a>;user=phone&gt;;tag=c0a80101-21188<br>
Contact: &lt;sip:20000004@212.4.97.115:35379;transport=udp;user=phone&gt;<br>
Supported: path<br>
Call-ID: <a href="mailto:c177cae013da224d@192.168.254.110">c177cae013da224d@192.168.254.110</a><br>
CSeq: 29653 ACK<br>
User-Agent: Grandstream BT200 1.1.6.27<br>
Max-Forwards: 69<br>
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK<br>
Content-Length: 0<br>
<br>
<br>
#<br>
U +0.458031 <a href="http://212.4.97.115:55128" target="_blank">212.4.97.115:55128</a> -&gt; <a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a><br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP 212.4.107.250;branch=z9hG4bK5974.c5c9aa24.0<br>
Via: SIP/2.0/UDP 192.168.254.110:5060;rport=35379;received=212.4.97.115;branch=z9hG4bK8f809670adc00668<br>
From: &quot;20000004&quot;&lt;<a href="mailto:sip%3A20000004@212.4.107.250">sip:20000004@212.4.107.250</a>;user=phone&gt;;tag=ab6ba13b2f38a04e<br>
To: &lt;<a href="mailto:sip%3A20000000@212.4.107.250">sip:20000000@212.4.107.250</a>;user=phone&gt;;tag=c0a80101-21188<br>
Call-ID: <a href="mailto:c177cae013da224d@192.168.254.110">c177cae013da224d@192.168.254.110</a><br>
CSeq: 29653 INVITE<br>
Require: timer<br>
Session-Expires: 100;refresher=uac<br>
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,SUBSCRIBE,NOTIFY,UPDATE,REFER,REGISTER,INFO<br>
Contact: &lt;sip:20000000@192.168.254.101:5060;user=phone&gt;<br>
Record-Route: &lt;sip:212.4.107.250;lr=on;nat=yes&gt;<br>
Allow-Events: refer,dialog,message-summary,check-sync,talk,hold<br>
Content-Type: application/sdp<br>
Content-Length: 151<br>
<br>
v=0<br>
o=20000000 138812 138812 IN IP4 192.168.254.101<br>
s=-<br>
c=IN IP4 192.168.254.101<br>
t=0 0<br>
m=audio 32448 RTP/AVP 0<br>
a=rtpmap:0 PCMU/8000<br>
a=sendrecv<br>
<br>
#<br>
U +0.000246 <a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a> -&gt; <a href="http://212.4.97.115:35379" target="_blank">212.4.97.115:35379</a><br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP 192.168.254.110:5060;rport=35379;received=212.4.97.115;branch=z9hG4bK8f809670adc00668<br>
From: &quot;20000004&quot;&lt;<a href="mailto:sip%3A20000004@212.4.107.250">sip:20000004@212.4.107.250</a>;user=phone&gt;;tag=ab6ba13b2f38a04e<br>
To: &lt;<a href="mailto:sip%3A20000000@212.4.107.250">sip:20000000@212.4.107.250</a>;user=phone&gt;;tag=c0a80101-21188<br>
Call-ID: <a href="mailto:c177cae013da224d@192.168.254.110">c177cae013da224d@192.168.254.110</a><br>
CSeq: 29653 INVITE<br>
Require: timer<br>
Session-Expires: 100;refresher=uac<br>
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,SUBSCRIBE,NOTIFY,UPDATE,REFER,REGISTER,INFO<br>
Contact: &lt;sip:20000000@192.168.254.101:5060;user=phone&gt;<br>
Record-Route: &lt;sip:212.4.107.250;lr=on;nat=yes&gt;<br>
Allow-Events: refer,dialog,message-summary,check-sync,talk,hold<br>
Content-Type: application/sdp<br>
Content-Length: 167<br>
<br>
v=0<br>
o=20000000 138812 138812 IN IP4 192.168.254.101<br>
s=-<br>
c=IN IP4 212.4.107.250<br>
t=0 0<br>
m=audio 35754 RTP/AVP 0<br>
a=rtpmap:0 PCMU/8000<br>
a=sendrecv<br>
a=nortpproxy:yes<br>
<br>
#<br>
U +0.999724 <a href="http://212.4.97.115:55128" target="_blank">212.4.97.115:55128</a> -&gt; <a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a><br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP 212.4.107.250;branch=z9hG4bK5974.c5c9aa24.0<br>
Via: SIP/2.0/UDP 192.168.254.110:5060;rport=35379;received=212.4.97.115;branch=z9hG4bK8f809670adc00668<br>
From: &quot;20000004&quot;&lt;<a href="mailto:sip%3A20000004@212.4.107.250">sip:20000004@212.4.107.250</a>;user=phone&gt;;tag=ab6ba13b2f38a04e<br>
To: &lt;<a href="mailto:sip%3A20000000@212.4.107.250">sip:20000000@212.4.107.250</a>;user=phone&gt;;tag=c0a80101-21188<br>
Call-ID: <a href="mailto:c177cae013da224d@192.168.254.110">c177cae013da224d@192.168.254.110</a><br>
CSeq: 29653 INVITE<br>
Require: timer<br>
Session-Expires: 100;refresher=uac<br>
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,SUBSCRIBE,NOTIFY,UPDATE,REFER,REGISTER,INFO<br>
Contact: &lt;sip:20000000@192.168.254.101:5060;user=phone&gt;<br>
Record-Route: &lt;sip:212.4.107.250;lr=on;nat=yes&gt;<br>
Allow-Events: refer,dialog,message-summary,check-sync,talk,hold<br>
Content-Type: application/sdp<br>
Content-Length: 151<br>
<br>
v=0<br>
o=20000000 138812 138812 IN IP4 192.168.254.101<br>
s=-<br>
c=IN IP4 192.168.254.101<br>
t=0 0<br>
m=audio 32448 RTP/AVP 0<br>
a=rtpmap:0 PCMU/8000<br>
a=sendrecv<br>
<br>
#<br>
U +0.000295 <a href="http://212.4.107.250:5060" target="_blank">212.4.107.250:5060</a> -&gt; <a href="http://212.4.97.115:35379" target="_blank">212.4.97.115:35379</a><br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP 192.168.254.110:5060;rport=35379;received=212.4.97.115;branch=z9hG4bK8f809670adc00668<br>
From: &quot;20000004&quot;&lt;<a href="mailto:sip%3A20000004@212.4.107.250">sip:20000004@212.4.107.250</a>;user=phone&gt;;tag=ab6ba13b2f38a04e<br>
To: &lt;<a href="mailto:sip%3A20000000@212.4.107.250">sip:20000000@212.4.107.250</a>;user=phone&gt;;tag=c0a80101-21188<br>
Call-ID: <a href="mailto:c177cae013da224d@192.168.254.110">c177cae013da224d@192.168.254.110</a><br>
CSeq: 29653 INVITE<br>
Require: timer<br>
Session-Expires: 100;refresher=uac<br>
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,SUBSCRIBE,NOTIFY,UPDATE,REFER,REGISTER,INFO<br>
Contact: &lt;sip:20000000@192.168.254.101:5060;user=phone&gt;<br>
Record-Route: &lt;sip:212.4.107.250;lr=on;nat=yes&gt;<br>
Allow-Events: refer,dialog,message-summary,check-sync,talk,hold<br>
Content-Type: application/sdp<br>
Content-Length: 167<br>
<br>
v=0<br>
o=20000000 138812 138812 IN IP4 192.168.254.101<br>
s=-<br>
c=IN IP4 212.4.107.250<br>
t=0 0<br>
m=audio 35754 RTP/AVP 0<br>
a=rtpmap:0 PCMU/8000<br>
a=sendrecv<br>
a=nortpproxy:yes<br>
<br>
<br>
_______________________________________________<br>
Kamailio (OpenSER) - Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br>