[OpenSIPS-Users] one way audio problem

Aamir aamir_ryu at yahoo.com
Tue May 7 15:04:50 CEST 2013


It should not be under main route block, just place it outside main route block.

For e.g.

route {

...

}

Place it here...

Or else paste your config file here.

--Aamir
--- Sent from My BlackBerry ---

-----Original Message-----
From: sermj 2012 <sermj2012 at gmail.com>
Date: Tue, 7 May 2013 18:01:45 
To: aamir chougule<aamir_ryu at yahoo.com>; OpenSIPS users mailling list<users at lists.opensips.org>
Subject: Re: [OpenSIPS-Users] one way audio problem

Thanku very much for your prompt response,

iam new to opensips, please tell me where to add these lines in opensips.cfg

route[nat_check] {
    if (client_nat_test("3")) {
        force_rport();
        fix_contact();
        nat_keepalive();
    }
}

The above lines i have added in opensips.cfg under Routing logic,
when i start opensips server,iam getting errors,

please help me.

Nandini


On Tue, May 7, 2013 at 2:30 PM, aamir chougule <aamir_ryu at yahoo.com> wrote:

> Hi Nandini,
>
> The parameters and modules that you need to turn ON in your opensips.cfg
> file:
>
> loadmodule "nat_traversal.so"
>
> The above line load the module and the given below paragraph will set to
> test the parameters.
>
> route[nat_check] {
>     if (client_nat_test("3")) {
>         force_rport();
>         fix_contact();
>         nat_keepalive();
>     }
> }
>
> Everytime you route a call first test the calls through the
> route(nat_check) which will fix all the NAT handling parameters.
>
> For e.g. if you are gonna route INVITE request then you need to do it like
> this:
>
>     if(is_method("INVITE")) {
>         route(invite_requests);
>         exit;
>     }
>
> route[invite_requests] {
>     route(nat_check);
>
>     if(!lookup("location")) {
>         sl_send_reply("404", "User Not registered");
>         exit;
>     }
>         t_on_reply("user_reply");
>         t_relay();
>     exit;
>     }
>
> Its just an example that how I do it and always you can explore things and
> read the modules provided by OpenSIPS and upgrade yourself to use this
> server in all possible cases.
>
> Regards,
>
> Aamir Chougule
> Cell: 09167989111
>
>   ------------------------------
>  *From:* Aamir <aamir_ryu at yahoo.com>
>
> *To:* OpenSIPS users mailling list <users at lists.opensips.org>
> *Sent:* Tuesday, 7 May 2013 1:58 PM
> *Subject:* Re: [OpenSIPS-Users] one way audio problem
>
> Hi Nandini,
>
> You actually need to turn on the nat_traversal module I guess, will pass
> you the parameters if I get time to do so.
>
> --Aamir
> --- Sent from My BlackBerry ---
>
> -----Original Message-----
> From: sermj 2012 <sermj2012 at gmail.com>
> Sender: users-bounces at lists.opensips.org
> Date: Tue, 7 May 2013 13:49:04
> To: <users at lists.opensips.org>
> Reply-To: OpenSIPS users mailling list <users at lists.opensips.org>
> Subject: [OpenSIPS-Users] one way audio problem
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130507/f1b00470/attachment.htm>


More information about the Users mailing list