Hi Daniel,


We have of a set of CODEC which are all in public IP ( DMZ), we receive a quantity of SIP calls (flooding) as such we plan to configure Kamailio in Proxy SIP which works with a public IP ( DMZ).

I made the following modifications in the kamailio.cfg file:

* Related requests presence handle route (PRESENCE);

if (dst_ip == (xx.xx.xx.xx.) && ($rU = ~ " ^ (5588) ")) {
route ( CODEC1);
}

if (dst_ip == (xx.xx.xx.xx) && ($rU = ~ " ^ (5589) ")) {
route ( CODEC2);
}

Where xx.xx.xx.xx is the public IP address of Kamailio, and 5588 will be the prefix of the URI, 5588@xx.xx.xx.xx, my question is the following one:

We can declare a variable in alphanumeric:

$U = ~ " ^ (dr.lille ) " in the place $U = ~ " ^ (5588)"

Whereas CODEC1 in this example will be the argument of the function route (), which will be the public IP address of the concerned codec. There will be thirty codec to be declared in this way.

Is it an optimal method ?

Thank you for your help.


Best Regards,

Djamel.
Le 14/07/2015 11:19, Daniel-Constantin Mierla a écrit :
Hello,

On 09/07/15 11:30, Djamel Bahamid wrote:
Hi,

I have terminals of video conference which are in public IP ( DMZ). I installed kamailio (4.2) which works correctly, it is also in IP pulique (DMZ). I wish configured the kamailio.cfg file, so that kamailio works in proxy SIP. And declared my CODEC of visoconférence in URI, example: 'DR London@domaine.fr'. 
In what part of the file ( kamailio.cfg ) do I have to make these modifications ? This to avoid the flooding. How possibly write the rule of corresponding ACL.

Thank you for your help.

I don't really get what you try to achieve. Maybe you can present more details, like associating the caller with an id (e.g., alice), what it is going to call and where the call has to be routed, as well as what are the planned SIP server nodes in your platform.

Cheers,
Daniel
-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com