Re: [OpenSIPS-Users] DB-ONLY mode call between two proxies failed.

2010-03-25 Thread osiris123d
My question was referencing this email thread Hi Jiang, the problem is the USRLOC module saves (in the user location record) the socket the REGISTER was received from (to use it when sending the traffic to the users). But if you have multiple servers on the same DB, there will be a kind of

Re: [OpenSIPS-Users] DB-ONLY mode call between two proxies failed.

2010-03-25 Thread osiris123d
Bogdan, Are you saying that its not possible to have two Active/Active SIP Proxies share the same Location table when the clients are NATed? I currently have two OpenSIPS proxies set up and sharing the same database and if NATed Client A registered with Proxy1 and NATed Client B registered with

[OpenSIPS-Users] drouting question

2010-03-25 Thread erik pepermans
Hi, I want to pass an aliased user to the drouting module like : route[8] { uac_replace_from("$avp(s:from_alias)"); do_routing("","1"); uac_restore_from(); This doesn't work; is the module reparsing the from-header or is there another solution ? Brgds Erik -- Th

Re: [OpenSIPS-Users] keepalived for HA OpenSIPS

2010-03-25 Thread Gavin Henry
Thanks. On 14/03/2010, Mario Stocco wrote: > Gavin, > > OpenSIPS works as well as any other service managed by HA (heartbeat). > A typical /etc/ha.d/ha.cnf file may look like this: > > logfile /var/log/ha-log > logfacility local0 > keepalive 2 > warntime 4 > deadtime 8 > initdead 120 > bcast eth0

Re: [OpenSIPS-Users] Call Issues with MySQL Latency

2010-03-25 Thread Bogdan-Andrei Iancu
I have a small guess (why you get the bogus signalling as a side effect of the slow queries): enable in auth module the disable_nonce_check: http://www.opensips.org/html/docs/modules/1.6.x/auth.html#id228317 -> modparam("auth", "disable_nonce_check", 1) and most probably the signalling wi

[OpenSIPS-Users] Call Issues with MySQL Latency

2010-03-25 Thread osiris123d
Wondering if anyone has ran into an issue like this I have a server with a public IP 66.X.X.X that is running OpenSIPSMediaDispatcher and also MySQL. I set up a second OpenSIPS/MediaDispatcher with a public IP of 12.X.X.X and pointed the config to the 66.X.X.X for all database queries. I also h

Re: [OpenSIPS-Users] 302 redirect question

2010-03-25 Thread Bogdan-Andrei Iancu
Hi Brett Brett Nemeroff wrote: > Bogdan / Jeff, > Thanks for the replies. I got it working now with serialize_branches. > Just goes to show that sometimes the magic is "up to you". :) > > Question tho. I know serialize_branches order branches by q-value. > However, does it smartly handle q-values

Re: [OpenSIPS-Users] 302 redirect question

2010-03-25 Thread Brett Nemeroff
Bogdan / Jeff, Thanks for the replies. I got it working now with serialize_branches. Just goes to show that sometimes the magic is "up to you". :) Question tho. I know serialize_branches order branches by q-value. However, does it smartly handle q-values that are the same to be parallel branches?

[OpenSIPS-Users] opensips-cp drouting dynamic groups broken?

2010-03-25 Thread Brett Nemeroff
All, When attempting to add a new rule with drouting dynamic groups, I get the following error: Fatal error: Call to a member function queryAll() on a non-object in/var/www/opensips-cp/web/tools/system/drouting/lib/rules.functions.inc.php on lineĀ 32 Everything else seems to be working fine. The SQL

Re: [OpenSIPS-Users] opensips crash

2010-03-25 Thread Daniel Ribeiro
(gdb) file /usr/local/sbin/opensips (gdb) core-file /var/core/opensips.sig-11.pid-14612.time-1269526223 warning: Can't read pathname for load map: Input/output error. Core was generated by `/usr/local/sbin/opensips -P /var/run/opensips.pid'. Program terminated with signal 11, Segmentation fault. [N

Re: [OpenSIPS-Users] opensips 487 respose

2010-03-25 Thread rajib deka
Yes :), CANCEL message send by asterisk to cancel the INVITE. Thank you. Regards Rajib On Thu, Mar 25, 2010 at 6:55 PM, Bogdan-Andrei Iancu wrote: > you mean the 487 in for INVITE that was cancelled and not for the CANCEL > itself ;). > > if, you can use the onreply_route for the INVITE transac

Re: [OpenSIPS-Users] opensips crash

2010-03-25 Thread Daniel Ribeiro
Where the core files are generated? On Thu, Mar 25, 2010 at 10:13 AM, Anca Vamanu wrote: > Hi Daniel, > > Please investigate the core file with gdb. Print in an email the output > for 'bt full'. > > Regards, > > -- > Anca Vamanu > www.voice-system.ro > > > Daniel Ribeiro wrote: > > Hi guys, > >

Re: [OpenSIPS-Users] Add db_mysql module

2010-03-25 Thread brianpocock
I've fixed it now, instead of using root credentials to connect to the database I made the opensips user and password in the mysql database and tried connecting with those and it worked fine. Thanks for the help! -- View this message in context: http://n2.nabble.com/Add-db-mysql-module-tp479

Re: [OpenSIPS-Users] Add db_mysql module

2010-03-25 Thread Bogdan-Andrei Iancu
maybe there is another module that uses the default db_url -> check all the module you are using to see if they have a db_url param; if so, set it according to your DB setup. (hint: in the logs, after the access error, you may get some following logs about the module that failed to init). Rega

Re: [OpenSIPS-Users] opensips 487 respose

2010-03-25 Thread Bogdan-Andrei Iancu
you mean the 487 in for INVITE that was cancelled and not for the CANCEL itself ;). if, you can use the onreply_route for the INVITE transaction and use "status" keyword to check the code -> append_hf() Regards, Bogdan rajib deka wrote: > Hi Bogdan, > > My situation as follows > > asteris

Re: [OpenSIPS-Users] how to set $var(name) in opensips.cfg?

2010-03-25 Thread Bogdan-Andrei Iancu
t_relay() does not accept variables as parameters. To get the same behaviour, use $du (destination uri): $du = $var(new_uri); t_relay(); Regards, Bogdan CheeWii wrote: > Can I use : > > $var(new_uri)="udp:"+"192:168:0:3"+":5060"; > t_relay("$var(new_uri)") or t_relay($var(new_uri)) >

Re: [OpenSIPS-Users] opensips crash

2010-03-25 Thread Anca Vamanu
Hi Daniel, Please investigate the core file with gdb. Print in an email the output for 'bt full'. Regards, -- Anca Vamanu www.voice-system.ro Daniel Ribeiro wrote: > Hi guys, > > Trying to do call forward no answer with early media enabled crash > opensips. Did you know where I can found te

Re: [OpenSIPS-Users] opensips 487 respose

2010-03-25 Thread rajib deka
Hi Bogdan, My situation as follows asterisk -> opensips -> SIP trunk I am receiving 487 at asterisk from opensips for CANCEL. I want to add a header to 487 from opensips reply or failure route, so that i can parse it in asterisk to get the header. Regards Rajib On Thu, Mar 25, 2010 at 4:15 PM, B

Re: [OpenSIPS-Users] how to set $var(name) in opensips.cfg?

2010-03-25 Thread CheeWii
Can I use : $var(new_uri)="udp:"+"192:168:0:3"+":5060"; t_relay("$var(new_uri)") or t_relay($var(new_uri)) Maybe there is something wrong in use t_relay()~~ 2010/3/25 Bogdan-Andrei Iancu > Hi, > > replace >if (src_ip == "$var(aster_ip)" && src_port== "$var(aster_port)") { > > with >if

[OpenSIPS-Users] opensips crash

2010-03-25 Thread Daniel Ribeiro
Hi guys, Trying to do call forward no answer with early media enabled crash opensips. Did you know where I can found teh core dump file generated? Thanks, Mar 25 09:25:14 danielribeiro /usr/local/sbin/opensips[13515]: forwarded to: sip:1...@192.168.1.200 Mar 25 09:25:14 danielribeiro /usr/local

Re: [OpenSIPS-Users] Add db_mysql module

2010-03-25 Thread brianpocock
Right, I realised I was missing these parameters from the config: modparam("auth_db", "db_url","mysql://root:passw...@localhost/opensips") modparam("auth_db", "load_credentials", "") So I've added those and all the auth_db parameters are: modparam("auth_db", "calculate_ha1", yes) modparam("au

Re: [OpenSIPS-Users] opensips 487 respose

2010-03-25 Thread Bogdan-Andrei Iancu
Hi Rajib, is this 487 reply received? if so, use onreply_route + append_hf("Foo: bar \r\n"); Regards, Bogdan rajib deka wrote: > Hi List, > > is it possible to add a header to '487' response. I tried the same in > on_reply and failure route but I am not getting it at the UAC end. > Regards >

Re: [OpenSIPS-Users] how to set $var(name) in opensips.cfg?

2010-03-25 Thread Bogdan-Andrei Iancu
Hi, replace if (src_ip == "$var(aster_ip)" && src_port== "$var(aster_port)") { with if ( $si == $var(aster_ip) && $sp== $var(aster_port) ) { Regards, Bogdan CheeWii wrote: > Hi, > I have read the Script variables introduction,and I make a test in my > opensips.cfg. But the opensips can

Re: [OpenSIPS-Users] [load_balancer] lb_disable() cannot be used in onreply route block

2010-03-25 Thread Bogdan-Andrei Iancu
Hi, lb_disable() cannot be used in onreply ! - use the failure route to catch the 408 failure event and use lb_disable() there. Regards, Bogdan liuf wrote: > Hell All: > > I tried load_balancer module, when received 408 in onreply route block, I > cannot use lb_disable to mark this unavailble d

Re: [OpenSIPS-Users] Add db_mysql module

2010-03-25 Thread Bogdan-Andrei Iancu
Hi Brain, if you get that message, it means opensips failed to start, so check the log file for the error. In your case, doing a "ps" shows any process running? also try to increase the logging level (set debug=4 in cfg) to get more indications on the failure. Regards, Bogdan brianpocock wrot

Re: [OpenSIPS-Users] 302 redirect question

2010-03-25 Thread Bogdan-Andrei Iancu
Hi Brett, As Jeff already pointed out (and I'm making it official ;) ), the get_redirects() creates parallel branches. If you want to use them in a serial approach, you need to use the serialize_branches() function right after the get_redirects() -> it will order the branches according to q va

Re: [OpenSIPS-Users] Add db_mysql module

2010-03-25 Thread brianpocock
Hi, I got it all install now thanks, Im getting an error when starting up though: ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS start failed I have done some googling and found the opensips Where to check OpenSIPS does not start? page and looked in my /var/log/messages file.

[OpenSIPS-Users] opensips 487 respose

2010-03-25 Thread rajib deka
Hi List, is it possible to add a header to '487' response. I tried the same in on_reply and failure route but I am not getting it at the UAC end. Regards -- Rajib Deka Software Engineer Servion Global Solution Chennai, India Mobile No: + 91 80157 09130 ___

Re: [OpenSIPS-Users] OpenSISP 1.6.2 / Control Panel 1.4 - Installation problems

2010-03-25 Thread Alex Ionescu
Hi Christian, The wrong path has been fixed. Thanks, Alex On 3/24/2010 20:11, Christian Vo wrote: I've just installed the latest version of opensips-cp Here's what I found: 1) Monit link error: [Wed Mar 24 10:41:53 2010] [error] [client 10.31.53.156] PHP Fatal error: require_once(): Faile

[OpenSIPS-Users] how to set $var(name) in opensips.cfg?

2010-03-25 Thread CheeWii
Hi, I have read the Script variables introduction,and I make a test in my opensips.cfg. But the opensips cannot start up. I have added: $var(aster_ip)="192.168.0.176"; $var(aster_port)="5060"; if (src_ip == "$var(aster_ip)" && src_port== "$var(aster_port)") { xlog("L_NOTICE","Incoming Request is f