Re: [OpenSIPS-Users] User Authentication by IP in INVITE

2009-07-17 Thread Alex Balashov
There is. Try the 'permissions' module and the allow_address() & allow_trusted() functions. Alberto Listas wrote: > Hi, > > Today I test the IP in src_ip against a list in the opensips.cfg but > there must > be a way of doing the test against the database. Could someone please point > me in t

Re: [OpenSIPS-Users] sip_trace in only one way

2009-07-17 Thread Dan Pascu
You need to define a trace flag and set it in the main route when you call sip_trace. Then you do not need to call sip_race in the reply route (or anywhere else for that matter). See below (use a free flag number instead of TRACE_FLAG in my example). On 17 Jul 2009, at 16:17, Geoffroy Raboui

[OpenSIPS-Users] Help with implementing presence

2009-07-17 Thread Srikanth Rajagopalan
Hi Guys,   I need some help here.   I had an opensips server without presence enabled and wanted to enable it. I did the following changes   1) Uncomment the 2 presence related loadmodules 2) Uncomment the modparam lines related to presence and changed the server ip there. 3) From the makefile r

Re: [OpenSIPS-Users] Asterisk reinvite confuses Mediaproxy

2009-07-17 Thread Jeff Pyle
Hi Ruud, Sorry for any confusion. I've attached fresh traces, including a full ngrep and mediaproxy relay and dispatcher logs. This is an inbound call from PSTN gateway to Asterisk (with reinvites) to Opensips with Mediaproxy to the callee endpoint. I have a single engage_media_proxy() at the i

Re: [OpenSIPS-Users] accounting BYE

2009-07-17 Thread Robin Vleij
On Jul 17, 2009, at 12:19 PM, Jan D. wrote: Hi, > if(is_method("BYE")) > { > #setflag(25); # account successful transactions > acc_db_request("200 OK", "acc"); > } Why not set the flag that also accounts unsuccessful transactions in case of a BYE? Then it's just a matter of picking out the BY

[OpenSIPS-Users] User Authentication by IP in INVITE

2009-07-17 Thread Alberto Listas
Hi, Today I test the IP in src_ip against a list in the opensips.cfg but there must be a way of doing the test against the database. Could someone please point me in the right direction? Thanks, Alberto___ Users mailing list Users@lists.opensips.org ht

Re: [OpenSIPS-Users] Opensips Monitoring Current connections and Concurrent calls

2009-07-17 Thread Bogdan-Andrei Iancu
Hi Hugo, As Alex said, the best choice is SNMP (snmpstats module), but you should also consider the statistics - you fetch via MI the stats and do your application for monitoring and trapping. It is more or less what opensips-cp, Stats Monitor tool does - http://opensips-cp.sourceforge.net/html

Re: [OpenSIPS-Users] Can't start in debug mode on Debian 5

2009-07-17 Thread Bogdan-Andrei Iancu
Hi Colin, See http://www.opensips.org/Resources/DocsTsStart Regards, Bogdan Colin Franco wrote: > Hi, > > I have a basic OpenSIPS installation up and running on Debian 5 and > would now like to start it in debug mode. > > This is catered for by three lines to be uncommented in opensips.cfg. >

Re: [OpenSIPS-Users] t_on_failure()

2009-07-17 Thread Patrick
Yep, I'm using 1.5 - once I removed it all was well. On a side note, I confirmed to myself that parallel forking works. Unfortunately , the call was not answered so I don't know the outcome if someone would have actually answered the call :) On Jul 17, 2009, at 8:26 AM, Bogdan-Andrei Ian

[OpenSIPS-Users] sip_trace in only one way

2009-07-17 Thread Geoffroy Rabouin
Hi, I'm confused because in my sip_trace DB, I haven't got the reply message from opensips, I only got the request from the phones and gateway ... I've set the sip_trace parameters : # - siptrace params - modparam("siptrace", "trace_on", 1) modparam("siptrace", "enable_ack_trace", 1) and i

Re: [OpenSIPS-Users] Problem Getting started with Load Balancing

2009-07-17 Thread Bogdan-Andrei Iancu
Hi John, Check if fot the dialog module the db_url parameter is properly set (user and passwd for DB access). Regards, Bogdan John S. Robinson wrote: > Jul 12 09:26:07 [17262] DBG:db_mysql:db_mysql_new_connection: opening > connection: mysql://:x...@localhost/opensips > Jul 12 09:26:07 [17

Re: [OpenSIPS-Users] Dynamic Routing - assigning GroupID to gateway without authentication

2009-07-17 Thread Bogdan-Andrei Iancu
Hi Julien, There are two ways to use the group ID: 1) determine the grp ID from script logic and pass it to the do_routing() function as parameter 2) pass no param to do_routing() function and it will use the dr_group table to detect the group ID based on caller (From hdr). So, you could

Re: [OpenSIPS-Users] ACC Module missing failed transactions

2009-07-17 Thread Bogdan-Andrei Iancu
Brett, note that failed_transaction flag does not need to be re-arm...only db_missed_flag one. Regards, Bogdan Brett Nemeroff wrote: > Sorry all, > I'm not setting db_missed_flag. whoops! > -Brett > > > On Fri, Jul 10, 2009 at 10:25 AM, Brett Nemeroff > wrote: > >

Re: [OpenSIPS-Users] rpid_avp and NULL values

2009-07-17 Thread Bogdan-Andrei Iancu
Hi Carlo, what DB backend are you using? mysql ? Regards, Bogdan Carlo Dimaggio wrote: > Hi all, > > I'm using rpid column in subscriber table in order to set the display- > name of the p-asserted header, but I have some problems with NULL > values. > In detail, I use modparam("auth", "rpid_a

Re: [OpenSIPS-Users] [Webinar] Next webinar is "Routing is SIP"

2009-07-17 Thread Bogdan-Andrei Iancu
Hello, Recording of this webinar is available under: http://www.opensips.org/html/docs/video/webinar002/ Regards, Bogdan Bogdan-Andrei Iancu wrote: > Hi, > > The next free webinar is scheduled for Wednesday 8th of July 2009. The > topic is "Routing in SIP" > > This webinar will help you to

Re: [OpenSIPS-Users] Routing Webinar was a success!

2009-07-17 Thread Bogdan-Andrei Iancu
Hi Pepo, Recording is available under: http://www.opensips.org/html/docs/video/webinar002/ Regards, Bogdan Pepo wrote: > On Miércoles 08 Julio 2009 23:19:37 bay2x1 escribió: > >> I was able to attend the webinar on routing and I was very satisfied by the >> outcome but I can say that it was

Re: [OpenSIPS-Users] t_on_failure()

2009-07-17 Thread Bogdan-Andrei Iancu
Hi Patrick, I guess you are using 1.5 - for the append_branch() issue, see http://www.opensips.org/Resources/DocsMigration14to15#toc4 Regards, Bogdan Patrick wrote: > Ok, I took and comment out append_branch() and I only see one invite > per destination. > > > On Jul 10, 2009, at 4:04 PM, Pa

Re: [OpenSIPS-Users] T_UAC_DLG over XML RPC

2009-07-17 Thread Bogdan-Andrei Iancu
Hi Ricardo, The parameters are listed here: http://www.opensips.org/html/docs/modules/1.5.x/tm.html#id272626 About how the params are going into the message: http://www.opensips.org/html/docs/modules/devel/mi_xmlrpc.html#id228194 You my try a small python script for send xmlrpc stuff: <

Re: [OpenSIPS-Users] Error with message-summary content

2009-07-17 Thread Bogdan-Andrei Iancu
Hi Anurag , In the body, the lines must be separaete by "\r\n" - from your posting this is not clear, but maybe you have a simple \n between the linescould you check this? Regards, Bogdan anurag wrote: > Hi, > > I'm using OpenSIPs (1.5.1) as presence server along with MWI feature > For ge

Re: [OpenSIPS-Users] 2 dialplan issues: simple strip\prefix cases and execution with drouting use_next_gw function

2009-07-17 Thread Bogdan-Andrei Iancu
Hi Ricardo, for stripping some digits, try something like: match: ^55+ subst: ^(55)(.+) repl: \2 This will strip the 55 prefix from the number For item 2) - take care as the do_routing() function is computing all the next branches in advances, based on the current URI...The use_next_gw()

Re: [OpenSIPS-Users] What is the role of t_check_trans at line 253 of opensips.cfg in SVN trunk

2009-07-17 Thread Bogdan-Andrei Iancu
Hi Stan, That is exactly the pointcreating a transaction as soon as possible, helps you in identifying retransmissions as soon as possible and to avoid useless computation (so, reducing the load on your server). With the current implementation, the penalty is (as per warning I put in the T

Re: [OpenSIPS-Users] What is the role of t_check_trans at line 253 of opensips.cfg in SVN trunk

2009-07-17 Thread Bogdan-Andrei Iancu
Hi Alex, To detect a retransmission you need to have the transaction created by the initial request - otherwise you cannot detect a retransmission. So, if you create the transaction very late in the script (t_relay() time), whatever retransmission you might get in the mean while will not be de

Re: [OpenSIPS-Users] accounting BYE

2009-07-17 Thread Jan D.
Alex, I will trie setting an AVP an/or t_check_trans(). The reason is that we use opensips to connect clients to an Cisco endpoint. Is ie. the connection from the client drops the Cisco sents a BYE. The client does not react with an O.K. and the call is not accounted with an endtime (so its seem

Re: [OpenSIPS-Users] accounting BYE

2009-07-17 Thread Alex Balashov
Jan, You could set an AVP or a branch parameter. Those persist for the lifetime of a transaction. Since subsequent BYEs are retransmissions within the same transaction, you should be able to check if an AVP or branch flag indicating that the BYE has already been accounted is set before running

[OpenSIPS-Users] accounting BYE

2009-07-17 Thread Jan D.
I have a problem with accounting the BYE in my mysql database (acc table). Sometimes a BYE is sent more than one time, or sometimes the other site does not respond with an O.K. on the BYE. Here is a peace of my config (example): if(loose_route()) { ... if(is_method("BYE")) { #setflag(25); # ac

[OpenSIPS-Users] unable to find dialog for BYE with route param

2009-07-17 Thread Jan D.
I have compiled opensips 1.5.2 on a Debian system. Everything is working fine except one error. Sometimes I get a warning: WARNING:dialog:dlg_onroute: unable to find dialog for BYE with route param '***' This happens i.e. when a second BYE is sent (the other site did not respond with an O.K. yet