Re: [OpenSIPS-Users] Max TCP connections

2012-10-10 Thread John Quick
Hi Ali, Inspired by that feedback from Muhammad (thanks for that), I just did some more testing. It is possible to set the value of tcp_max_connections to a large number (e.g. 20) but only if you increase the setting for “private memory per process” above the default value of 1 Mb. In version

[OpenSIPS-Users] dlg_validate_dialog Error, help

2012-10-10 Thread spady
Hi, while i was making some test for my lab ( place on hold and retrive it ) i noticed on opensips's log the following error: *ERROR:dialog:dlg_validate_dialog: failed to validate remote contact: dlg=[sip:5100@172.16.52.51;transport=UDP;user=phone] , req=[sip:5100@172.16.52.51;user=phone] * I can

Re: [OpenSIPS-Users] Need Hint for Opensips as UDP/TCP Proxy

2012-10-10 Thread spady
Hi Binan, as I said, i tried both methods but seems nothing is changing. How can I test if seted flag is really seted? How can i show it on logs?? -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Need-Hint-for-Opensips-as-UDP-TCP-Proxy-tp7582137p7582199.ht

Re: [OpenSIPS-Users] Need Hint for Opensips as UDP/TCP Proxy

2012-10-10 Thread Binan AL Halabi
You have changed && to  || //Binan Från: spady Till: users@lists.opensips.org Skickat: onsdag, 10 oktober 2012 16:20 Ämne: Re: [OpenSIPS-Users] Need Hint for Opensips as UDP/TCP Proxy I talked to early !! :-( It's happening  a very strange thing. Seems that

Re: [OpenSIPS-Users] duplicate information in sip_trace table

2012-10-10 Thread Dragomir Haralambiev
Hi, Thanks for your replay. The problem is not in IF operator. When use sip_trace() Opnesips make two records in sip_trace. Best regards, PlayMen 2012/10/10 > > Hi, > Do it like this: > if (is_avp_set("$avp(trace_id)"){ > # Do tracing > } > or like this : > If (!avp_check("$avp(trace_id)","re/^$

Re: [OpenSIPS-Users] Need Hint for Opensips as UDP/TCP Proxy

2012-10-10 Thread spady
I talked to early !! :-( It's happening a very strange thing. Seems that this part of code is no more taken into account: *if (is_method("INVITE") || is_audio_on_hold()){ set_dlg_flag("7"); } else { if (is_method("INVITE")){

Re: [OpenSIPS-Users] Migrating dispatcher module from 1.6.4 to 1.8.1

2012-10-10 Thread Bogdan-Andrei Iancu
Hi Adam, The fix was done on 1.8 version on SVN and it should automstically be pushed into the src tarballs and deb packages ( which are daily built).  Regards, Bogdan Sent from Samsung MobileAdam Raszynski wrote:Hi I have exactly the same problem with dispatcher module and MySQL after succ

Re: [OpenSIPS-Users] [NEW] Dynamic Routing enhancements in OpenSIPS 1.8.0

2012-10-10 Thread JoeAkiki
Hello, I just want to ask about the flags in do_routing: If I want to use a combination on two flags i.e. F and W, can I do that? The purpose is to allow Fallback in the same time as weight base sorting. do_routing("2","FW"); Or their is another way to do this? Thank you for your cooperation.

[OpenSIPS-Users] May "From" and "To" header fields be modified?

2012-10-10 Thread microx
Hi, I know that uac_replace_from() and uac_replace_to() functions allow the >From and To header fields of a SIP request to be replaced. However, these two functions are not enabled in the onreply_route block. Can someone tell me how to modify the From and To fields of a SIP response such as 20

[OpenSIPS-Users] May "From" and "To" header fields of a SIP message be modified?

2012-10-10 Thread microx
Hi, I know that uac_replace_from() and uac_replace_to() functions allow the >From and To header fields of a SIP request to be replaced. However, these two functions are not enabled in the onreply_route block. Can someone tell me how to modify the From and To fields of a SIP response such as 20

Re: [OpenSIPS-Users] attack from friendly-scanner

2012-10-10 Thread Davide Dal Frà
Hi, you can simply use iptables to block the src ip originating the register. If yuo want to automate the procedure you can look for Fail2Ban. There is a very good example here: http://www.opensips.org/Resources/DocsTutFail2ban Regards Davide -- Ing. Davide Dal Frà On 10/

[OpenSIPS-Users] duplicate information in sip_trace table

2012-10-10 Thread Binan AL Halabi
Hi, Do it like this: if (is_avp_set("$avp(trace_id)"){ # Do tracing } or like this : If (!avp_check("$avp(trace_id)","re/^$/")){ # Do tracing } where "/^$/" regex pattern for empty string. // Binan Från: Dragomir Haralambiev Till: OpenSIPS users mailling li

Re: [OpenSIPS-Users] Opensips upgrade

2012-10-10 Thread Bogdan-Andrei Iancu
Hi, OpenSIPS does not really care about the dir name, do you can do it in your way.  To be cleaner, I would suggest to install 1.8 in a new dir and have the old dir as a sym link to the new one. Regards, Bogdan Sent from Samsung Mobiledpa wrote:Hello!   Sorry if it were but anyway. I am usin

Re: [OpenSIPS-Users] duplicate information in sip_trace table

2012-10-10 Thread Binan AL Halabi
Hi, Do it like this: if (is_avp_set("$avp(trace_id)"){ # Do tracing } or like this : If (!avp_check("$avp(trace_id)", "re/^$/")){ # Do tracing } where "/^$/" regex pattern matches an empty string // Binan Från: Dragomir Haralambiev Till: OpenSIPS users mai

Re: [OpenSIPS-Users] Need Hint for Opensips as UDP/TCP Proxy

2012-10-10 Thread Binan AL Halabi
great. Från: spady Till: users@lists.opensips.org Skickat: onsdag, 10 oktober 2012 12:09 Ämne: Re: [OpenSIPS-Users] Need Hint for Opensips as UDP/TCP Proxy SOLVED!! i was not reseted flag!!! :-( This is the right code: branch_route[2] {     if (is_method(

Re: [OpenSIPS-Users] Need Hint for Opensips as UDP/TCP Proxy

2012-10-10 Thread spady
SOLVED!! i was not reseted flag!!! :-( This is the right code: branch_route[2] { if (is_method("INVITE") && is_audio_on_hold()) { set_dlg_flag("7"); } else { if (is_method("INVITE")){ reset_dlg_flag("

Re: [OpenSIPS-Users] Drouting and loadbalancing questions

2012-10-10 Thread Bogdan-Andrei Iancu
Hi Kevin, Yes you can use FQDN in gw definition. In this case the DNS lookup will be done each time the gw is used. For your second issue, after do_routing() simply do:        $du = "ip_asterisk". This will force routing to asterisk while you still have in RURI the gw address. Regards, Bogdan

[OpenSIPS-Users] Drouting and loadbalancing questions

2012-10-10 Thread Kevin Mathy
Hi list, I've got some questions, about DRouting module. First, is it possible to set, in database, as a gateway address, a sip domain name ? For example : gwidtypeaddressstrippri_prefixprobe_modedescription110* alpha.omega.voipservice.com:5060* 00Gateway 121010.10.10.1022Gateway 2 * Then

Re: [OpenSIPS-Users] Need Hint for Opensips as UDP/TCP Proxy

2012-10-10 Thread spady
Hi Binan, seems your idea does not work. I post ngrep traces. Look at last 200OK from IP 172.16.55.100 (opensips) to IP 10.9.101.163 (lync). SDP still have "a=inactive". Snippet of code: branch_route[2] { if (is_method("INVITE") && is_audio_on_hold()) { xlog( "L_ERR", "#

[OpenSIPS-Users] Opensips upgrade

2012-10-10 Thread dpa
Hello! Sorry if it were but anyway. I am using opensips 1.6.4-2 and have a wish to upgrade to 1.8 I have directory /usr/local/opensips1.6.4-2/ where opensips 1.6.4-2 has been installed at one time. If I will make tar archive of this directory and install to this directory opensips 1.8?

Re: [OpenSIPS-Users] attack from friendly-scanner

2012-10-10 Thread SamyGo
Hi, Funny thing, I just used sipvicious and in less that 10 minutes I changed the user-agent field from "friendly-scanner" to "Google-Chrome" .. Where is our "friendly-scanner" condition now ? So a 10,000 extensions scan All went directly to my DB and put everyone in trouble, had there been a pik

Re: [OpenSIPS-Users] attack from friendly-scanner

2012-10-10 Thread Engineer voip
Hi, Thank you all for the reply. 2012/10/9 Adam Raszynski > I use the following code on all my production OpenSIPS servers. > It's CPU friendly and avoids being spotted by bots searching for > open-relay VoIP servers. > > route{ > # put it at the very beginning of route section > if($u