Hello everybody, i red the post and didn&#39;t work.<br><br>Here is my command line to run rtpproxy and my configuration file of OPENSIPS, if some one could help me.<br><br>./rtpproxy -l PUBLICIP/<a href="http://192.168.1.220">192.168.1.220</a> -s udp:<a href="http://192.168.1.220:12333">192.168.1.220:12333</a> -n tcp:<a href="http://192.168.1.220:12333">192.168.1.220:12333</a> -u user -m 35000 -M 35200<br>
<br><br><br>#<br># $Id: opensips_residential.m4 9042 2012-05-17 13:57:10Z vladut-paiu $<br>#<br># OpenSIPS residential configuration script<br>#     by OpenSIPS Solutions &lt;<a href="mailto:team@opensips-solutions.com">team@opensips-solutions.com</a>&gt;<br>
#<br># This script was generated via &quot;make menuconfig&quot;, from<br>#   the &quot;Residential&quot; scenario.<br># You can enable / disable more features / functionalities by<br>#   re-generating the scenario with different options.#<br>
#<br># Please refer to the Core CookBook at:<br>#      <a href="http://www.opensips.org/Resources/DocsCookbooks">http://www.opensips.org/Resources/DocsCookbooks</a><br># for a explanation of possible statements, functions and parameters.<br>
#<br><br><br>####### Global Parameters #########<br><br>debug=3<br>log_stderror=no<br>log_facility=LOG_LOCAL1<br><br><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 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>/* comment the next line to enable the auto discovery of local aliases<br>   based on revers DNS on IPs */<br>auto_aliases=no<br><br>/* It can be an IP address or string and represents the address advertised <br>
   in Via header and other destination lumps (e.g RR header). If empty or not <br>   set (default value) the socket address from where the request will be sent is used. */<br>advertised_address=&quot;public_ip&quot;<br><br>
<br><br>listen=udp:<a href="http://192.168.1.220:5062">192.168.1.220:5062</a>  <br>disable_tcp=no<br>listen=tcp:<a href="http://192.168.1.220:5062">192.168.1.220:5062</a>  <br><br>disable_tls=yes<br><br>#port=5062<br>####### Modules Section ########<br>
<br>#set module path<br>mpath=&quot;/home/syrium/opensips_proxy/lib/opensips/modules/&quot;<br><br>#### SIGNALING module<br>loadmodule &quot;signaling.so&quot;<br><br>#### StateLess module<br>loadmodule &quot;sl.so&quot;<br>
<br>#### Transaction Module<br>loadmodule &quot;tm.so&quot;<br>modparam(&quot;tm&quot;, &quot;fr_timer&quot;, 5)<br>modparam(&quot;tm&quot;, &quot;fr_inv_timer&quot;, 30)<br>modparam(&quot;tm&quot;, &quot;restart_fr_on_each_reply&quot;, 0)<br>
modparam(&quot;tm&quot;, &quot;onreply_avp_mode&quot;, 1)<br><br>#### Record Route Module<br>loadmodule &quot;rr.so&quot;<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>#### MAX ForWarD module<br>loadmodule &quot;maxfwd.so&quot;<br><br>#### SIP MSG OPerationS module<br>loadmodule &quot;sipmsgops.so&quot;<br><br>#### FIFO Management Interface<br>loadmodule &quot;mi_fifo.so&quot;<br>modparam(&quot;mi_fifo&quot;, &quot;fifo_name&quot;, &quot;/tmp/opensips_fifo&quot;)<br>
modparam(&quot;mi_fifo&quot;, &quot;fifo_mode&quot;, 0666)<br><br><br>#### URI module<br>loadmodule &quot;uri.so&quot;<br>modparam(&quot;uri&quot;, &quot;use_uri_table&quot;, 0)<br>modparam(&quot;uri&quot;, &quot;db_url&quot;,<br>
        &quot;mysql://opensips:opensipsrw@localhost/opensips&quot;) # CUSTOMIZE ME<br><br><br><br><br>#### MYSQL module<br>loadmodule &quot;db_mysql.so&quot;<br><br>#### USeR LOCation module<br>loadmodule &quot;usrloc.so&quot;<br>
modparam(&quot;usrloc&quot;, &quot;nat_bflag&quot;, 10)<br>modparam(&quot;usrloc&quot;, &quot;db_mode&quot;,   2)<br>modparam(&quot;usrloc&quot;, &quot;db_url&quot;,<br>    &quot;mysql://opensips:opensipsrw@localhost/opensips&quot;) # CUSTOMIZE ME<br>
<br><br>#### REGISTRAR module<br>loadmodule &quot;registrar.so&quot;<br>modparam(&quot;registrar&quot;, &quot;tcp_persistent_flag&quot;, 7)<br>modparam(&quot;registrar&quot;, &quot;received_avp&quot;, &quot;$avp(received_nh)&quot;)<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>#### ACCounting module<br>loadmodule &quot;acc.so&quot;<br>/* what special events should be accounted ? */<br>
modparam(&quot;acc&quot;, &quot;early_media&quot;, 0)<br>modparam(&quot;acc&quot;, &quot;report_cancels&quot;, 0)<br>/* by default we 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>modparam(&quot;acc&quot;, &quot;failed_transaction_flag&quot;, 3)<br>/* account triggers (flags) */<br>modparam(&quot;acc&quot;, &quot;db_flag&quot;, 1)<br>
modparam(&quot;acc&quot;, &quot;db_missed_flag&quot;, 2)<br>modparam(&quot;acc&quot;, &quot;db_url&quot;,<br>    &quot;mysql://opensips:opensipsrw@localhost/opensips&quot;) # CUSTOMIZE ME<br><br><br>#### AUTHentication modules<br>
loadmodule &quot;auth.so&quot;<br>loadmodule &quot;auth_db.so&quot;<br>modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, yes)<br>modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)<br>modparam(&quot;auth_db&quot;, &quot;db_url&quot;,<br>
    &quot;mysql://opensips:opensipsrw@localhost/opensips&quot;) # CUSTOMIZE ME<br>modparam(&quot;auth_db&quot;, &quot;load_credentials&quot;, &quot;&quot;)<br><br><br><br><br>#### DOMAIN module<br>loadmodule &quot;domain.so&quot;<br>
modparam(&quot;domain&quot;, &quot;db_url&quot;,<br>    &quot;mysql://opensips:opensipsrw@localhost/opensips&quot;) # CUSTOMIZE ME<br>modparam(&quot;domain&quot;, &quot;db_mode&quot;, 1)   # Use caching<br>modparam(&quot;auth_db|usrloc|uri&quot;, &quot;use_domain&quot;, 1)<br>
<br><br><br><br>#### DIALOG module<br>loadmodule &quot;dialog.so&quot;<br>modparam(&quot;dialog&quot;, &quot;dlg_match_mode&quot;, 1)<br>modparam(&quot;dialog&quot;, &quot;default_timeout&quot;, 21600)  # 6 hours timeout<br>
modparam(&quot;dialog&quot;, &quot;db_mode&quot;, 2)<br>modparam(&quot;dialog&quot;, &quot;db_url&quot;,<br>    &quot;mysql://opensips:opensipsrw@localhost/opensips&quot;) # CUSTOMIZE ME<br><br><br>####  NAT modules<br>loadmodule &quot;nathelper.so&quot;<br>
modparam(&quot;nathelper&quot;, &quot;natping_interval&quot;, 10)<br>modparam(&quot;nathelper&quot;, &quot;ping_nated_only&quot;, 1)<br>modparam(&quot;nathelper&quot;, &quot;received_avp&quot;, &quot;$avp(received_nh)&quot;)<br>
<br>loadmodule &quot;nat_traversal.so&quot;<br><br><br>loadmodule &quot;rtpproxy.so&quot;<br>modparam(&quot;rtpproxy&quot;, &quot;rtpproxy_sock&quot;, &quot;1 == udp:<a href="http://192.168.1.220:12333">192.168.1.220:12333</a>&quot;) <br>
modparam(&quot;rtpproxy&quot;, &quot;rtpp_notify_socket&quot;,&quot;tcp:<a href="http://192.168.1.220:12333">192.168.1.220:12333</a>&quot;)<br>modparam(&quot;rtpproxy&quot;, &quot;rtpproxy_autobridge&quot;, 1)<br><br><br>
<br><br><br><br>####### Routing Logic ########<br><br># main request routing logic<br><br>route{<br>    force_rport();<br>    if (nat_uac_test(&quot;23&quot;)) {<br>        if (is_method(&quot;REGISTER&quot;)) {<br>            fix_nated_register();<br>
            setbflag(10);<br>        } else {<br>            fix_nated_contact();<br>            setflag(10);<br>        }<br>    }<br>     <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>    if (has_totag()) {<br>        # sequential request withing a dialog should<br>        # take the path determined by record-routing<br>        if (loose_route()) {<br>            <br>            # validate the sequential request against dialog<br>
            if ( $DLG_status!=NULL &amp;&amp; !validate_dialog() ) {<br>                xlog(&quot;In-Dialog $rm from $si (callid=$ci) is not valid according to dialog\n&quot;);<br>                ## exit;<br>            }<br>
            <br>            if (is_method(&quot;BYE&quot;)) {<br>                setflag(1); # do accounting ...<br>                setflag(3); # ... even if the transaction fails<br>            } else if (is_method(&quot;INVITE&quot;)) {<br>
                # even if in most of the cases is useless, do RR for<br>                # re-INVITEs alos, as some buggy clients do change route set<br>                # during the dialog.<br>                record_route();<br>
            }<br><br>            if (check_route_param(&quot;nat=yes&quot;)) <br>                setflag(10);<br><br>            # route it out to whatever destination was set by loose_route()<br>            # in $du (destination URI).<br>
            route(1);<br>        } else {<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 <br>
                    # a 487 or e.g. 404 from upstream server<br>                    t_relay();<br>                    exit;<br>                } else {<br>                    # ACK without matching transaction -&gt;<br>                    # ignore and discard<br>
                    exit;<br>                }<br>            }<br>            sl_send_reply(&quot;404&quot;,&quot;Not here&quot;);<br>        }<br>        exit;<br>    }<br><br>    # CANCEL processing<br>    if (is_method(&quot;CANCEL&quot;))<br>
    {<br>        if (t_check_trans())<br>            t_relay();<br>        exit;<br>    }<br><br>    t_check_trans();<br><br>    if ( !(is_method(&quot;REGISTER&quot;)  ) ) {<br>        <br>        if (is_from_local())<br>
        {<br>            <br>            # authenticate if from local subscriber<br>            # authenticate all initial non-REGISTER request that pretend to be<br>            # generated by local subscriber (domain from FROM URI is local)<br>
            if (!proxy_authorize(&quot;&quot;, &quot;subscriber&quot;)) {<br>                proxy_challenge(&quot;&quot;, &quot;0&quot;);<br>                exit;<br>            }<br>            if (!db_check_from()) {<br>
                sl_send_reply(&quot;403&quot;,&quot;Forbidden auth ID&quot;);<br>                exit;<br>            }<br>        <br>            consume_credentials();<br>            # caller authenticated<br>            <br>
        } else {<br>            # if caller is not local, then called number must be local<br>            <br>            if (!is_uri_host_local()) {<br>                send_reply(&quot;403&quot;,&quot;Rely forbidden&quot;);<br>
                exit;<br>            }<br>        }<br><br>    }<br><br>    # preloaded route checking<br>    if (loose_route()) {<br>        xlog(&quot;L_ERR&quot;,<br>        &quot;Attempt to route with preloaded Route&#39;s [$fu/$tu/$ru/$ci]&quot;);<br>
        if (!is_method(&quot;ACK&quot;))<br>            sl_send_reply(&quot;403&quot;,&quot;Preload Route denied&quot;);<br>        exit;<br>    }<br><br>    # record routing<br>    if (!is_method(&quot;REGISTER|MESSAGE&quot;))<br>
        record_route();<br><br>    # account only INVITEs<br>    if (is_method(&quot;INVITE&quot;)) {<br>        <br>        # create dialog with timeout<br>        if ( !create_dialog(&quot;B&quot;) ) {<br>            send_reply(&quot;500&quot;,&quot;Internal Server Error&quot;);<br>
            exit;<br>        }<br>        <br>        setflag(1); # do accounting<br>    }<br><br>    <br>    if (!is_uri_host_local()) {<br>        append_hf(&quot;P-hint: outbound\r\n&quot;); <br>        <br>        route(1);<br>
    }<br><br>    # requests for my domain<br>    <br>    if (is_method(&quot;PUBLISH|SUBSCRIBE&quot;))<br>    {<br>        sl_send_reply(&quot;503&quot;, &quot;Service Unavailable&quot;);<br>        exit;<br>    }<br><br>
    if (is_method(&quot;REGISTER&quot;))<br>    {<br>        <br>        # authenticate the REGISTER requests<br>        if (!www_authorize(&quot;&quot;, &quot;subscriber&quot;))<br>        {<br>            www_challenge(&quot;&quot;, &quot;0&quot;);<br>
            exit;<br>        }<br>        <br>        if (!db_check_to()) <br>        {<br>            sl_send_reply(&quot;403&quot;,&quot;Forbidden auth ID&quot;);<br>            exit;<br>        }<br><br>        if ( proto==TCP ||  0 ) setflag(7);<br>
<br>        if (client_nat_test(&quot;3&quot;)) {<br>                nat_keepalive();<br>            }<br><br>        if (!save(&quot;location&quot;))<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>    <br><br>    <br><br>     <br><br>    # do lookup with method filtering<br>
    if (!lookup(&quot;location&quot;,&quot;m&quot;)) {<br>        if (!db_does_uri_exist()) {<br>            send_reply(&quot;420&quot;,&quot;Bad Extension&quot;);<br>            exit;<br>        }<br>        <br>        t_newtran();<br>
        t_reply(&quot;404&quot;, &quot;Not Found&quot;);<br>        exit;<br>    } <br><br>    if (isbflagset(10)) setflag(10);<br><br>    # when routing via usrloc, log the missed calls also<br>    setflag(2);<br>    route(1);<br>
}<br><br><br>route[1] {<br>    # for INVITEs enable some additional helper routes<br>    if (is_method(&quot;INVITE&quot;)) {<br>        <br>        if (isflagset(10)) {<br>            set_rtp_proxy_set(&quot;1&quot;);<br>
            rtpproxy_offer(&quot;ro&quot;);<br>        }<br><br>        t_on_branch(&quot;2&quot;);<br>        t_on_reply(&quot;2&quot;);<br>        t_on_failure(&quot;1&quot;);<br><br>        if (client_nat_test(&quot;3&quot;)) {<br>
                        nat_keepalive();<br>                }<br><br>    }<br><br>    if (isflagset(10)) {<br>        add_rr_param(&quot;;nat=yes&quot;);<br>        }<br><br>    if (!t_relay()) {<br>        send_reply(&quot;500&quot;,&quot;Internal Error&quot;);<br>
    };<br>    exit;<br>}<br><br><br><br><br>branch_route[2] {<br>    xlog(&quot;new branch at $ru\n&quot;);<br>}<br><br><br>#onreply_route[1]{<br>#        xlog(&quot;reply route 1: sequential requests ($rs $rr)\n&quot;);<br>
#        if ( src_ip != onebox_asterisk1_ip &amp;&amp; src_ip != onebox_asterisk2_ip ){<br>#           if ( nat_uac_test( &quot;31&quot;) ) {<br>#             fix_nated_contact();<br>#             force_rport();<br>#             if( has_body( &quot;application/sdp&quot; ) ) {<br>
#               fix_nated_sdp( &quot;3&quot; );<br>#             }<br>#           }<br>#        }<br>#}<br><br><br>onreply_route[2] {<br>    if (nat_uac_test(&quot;1&quot;))<br>        fix_nated_contact();<br>    if ( isflagset(10) ){<br>
        set_rtp_proxy_set(&quot;1&quot;);<br>        rtpproxy_answer(&quot;ro&quot;);<br>        }<br>    xlog(&quot;incoming reply\n&quot;);<br>}<br><br><br>failure_route[1] {<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>    <br>}<br><br><br><br>local_route {<br>    if (is_method(&quot;BYE&quot;) &amp;&amp; $DLG_dir==&quot;UPSTREAM&quot;) {<br>        <br>        acc_db_request(&quot;200 Dialog Timeout&quot;, &quot;acc&quot;);<br>
        <br>    }<br>}<br><br><div class="gmail_extra"><br><br><div class="gmail_quote">2012/11/12 <a href="mailto:qasimakhan@gmail.com">qasimakhan@gmail.com</a> <span dir="ltr">&lt;<a href="mailto:qasimakhan@gmail.com" target="_blank">qasimakhan@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Or you can follow this tutorial and mend it to your needs,<br><br><a href="http://saevolgo.blogspot.com/2012/03/making-rtpproxy-work.html" target="_blank">http://saevolgo.blogspot.com/2012/03/making-rtpproxy-work.html</a><br>
<br>Regards,<br>
Qasim<div class="HOEnZb"><div class="h5"><br>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 12, 2012 at 1:40 PM, spady <span dir="ltr">&lt;<a href="mailto:spady77@gmail.com" target="_blank">spady77@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi, take a look at my post. Probably you will find a solution for your issue.<br>
<br>
<a href="http://opensips-open-sip-server.1449251.n2.nabble.com/Rtpproxy-connection-td7581935.html" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/Rtpproxy-connection-td7581935.html</a><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/RTPProxy-Problem-tp7582930p7582943.html" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/RTPProxy-Problem-tp7582930p7582943.html</a><br>


Sent from the OpenSIPS - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>