Hi All,
This is my first post to this list. I've been using OpenSER at my new
job for only two months. I've been having a bit of a problem with the
snmpstats module, though.
I've configured openser 1.2.1 to load the snmpstats module and I can
pull info like so:
$ snmpwalk -v 1 -c gl_tor_151_globser2 204.11.120.77 enterprises.27483
SNMPv2-SMI::enterprises.27483.3.1.1.1.1.1.0 = STRING: "SIP/2.0"
SNMPv2-SMI::enterprises.27483.3.1.1.1.1.2.0 = Timeticks: (0) 0:00:00.00
SNMPv2-SMI::enterprises.27483.3.1.1.1.1.4.0 = STRING: "("
SNMPv2-SMI::enterprises.27483.3.1.1.1.1.5.1.4.1.4.204.11.120.77.5060 =
STRING: "`"
[snip]
$ snmpget -v 1 -c gl_tor_151_globser2 204.11.120.77
enterprises.27483.3.1.1.1.1.7.1.2.14
SNMPv2-SMI::enterprises.27483.3.1.1.1.1.7.1.2.14 = STRING:
"METHOD_PUBLISH"
But, when I try to use one of the example commands given in the
snmpstats documentation, I always get an error:
$ snmpwalk -v 2c -c gl_tor_151_globser2 204.11.120.77
openserSIPEntityType.0
openserSIPEntityType.0: Unknown Object Identifier (Sub-id not found:
(top) -> openserSIPEntityType)
$snmptranslate -TBd openserSIPEntityType
Unable to find a matching object identifier for "openserSIPEntityType"
Why is that happening? Why can't I use the names? I've found one other
message in the archives from someone having the same problem, but the
thread didn't go anywhere.
Any tips/suggestions would be appreciated.
Regards,
Ranbir
--
Kanwar Ranbir Sandhu
Linux 2.6.22.1-41.fc7 i686 GNU/Linux
11:54:21 up 2:04, 2 users, load average: 1.56, 1.04, 0.57
Hello Dan and hello everybody!
OpenSER & Freeradius & CDRTool are perfectly working together now!
I just don't understand one thing.
Tickets are made but don't decrease the prepaid acounts...
For example, when 101(a)sd-7501.dedibox.fr is calling,
here is the Rating information, but is prepaid account don't goes down...
Any idea?
Signalling information
Session: 1973928040(a)192.168.95.118
Start time: 2007-08-20 11:17:32 Europe/Paris
Stop time: 2007-08-20 11:19:51 Europe/Paris
Method: INVITE from :
From:
Dialed URI:
Canonical URI: 0033677832974(a)sd-7501.dedibox.fr
Next hop URI:
Destination: France - Portable (336)
Billing Party: sip:101@sd-7501.dedibox.fr
Rating information
App: audio
Destination: 336 (France - Portable)
Customer: domain=sd-7501.dedibox.fr
Connect fee: 0.2346
--
Span: 1
Duration: 139 s
StartTime: 2007-08-20 11:17:32 (Europe/Paris)
ProfileId: 1 for weekday
RateId: 10 for 0-24h
Rate: 0.5634 / 60 s
Price: 1.3052
Hi All,
is it possible to add prefix after load_gw similar to prefix before
rewritehostport? my provider requires it to identify that calls came
from me.
TIA
Regards,
Nhadie
Hi Martin,
In OpenSER 1.1, the lcr module would not work with oracle through
unixodbc when used in the non-caching mode. That was because the query
was using functions CHAR_LENGTH and RAND that are unknown to oracle.
In OpenSER 1.2 the lcr module is only working in caching mode. So there
should be no problem.
Probably what you need is .* or the appropriate regexp in the from_uri.
Check the lcr document for more info.
Best regards
George
> -----Original Message-----
> From: Martin.Gruber1(a)infineon.com
> [mailto:Martin.Gruber1@infineon.com]
> Sent: Wednesday, August 22, 2007 3:39 PM
> To: Papadopoulos Georgios
> Cc: users(a)openser.org
> Subject: RE: OpenSER Oracle Connection
>
> Hi Georgios,
>
> I only want to ask you, if you also use the LCR-Tool.
> With mysql it was running well, but now I have problems with
> it. I do not know, if it is a problem of Unixodbc (I do not think so).
>
> I use the following table structure:
> Lcr:
>
>
> PREFIX | FROM_URI | GRP_ID
> |
> PRIORITY |
> --------------------------------------------------------------
> ----------
> -------------------------------------------------------------
> | | 1 |
> 1 |
>
> Gw:
>
> GW_NAME | GRP_ID | IP_ADDR | PORT |
> URI_SCHEME | TRANSPORT | STRIP | PREFIX
> --------------------------------------------------------------
> ----------
> --------------------------------------------------------------
> ----------
> --------------------------------------------------------------
> ----------
> -------------
> Gw 1 xxx.xx.xxx.xx
> 5060
>
>
> Gw_grp:
>
> GRP_ID GRP_NAME
> ----------
> ----------------------------------------------------------------
> 1 VIH
>
>
>
> I always get the following error:
> CALL: Call to international number
> <sip:0004312345586@server.com> from <sip:1004@server.com>
> 0(23072) LCR: no gateways found m=INVITE
> ruri=sip:0004312345586@server.com f=sip:1004@server.com
> t=sip:0004312345586@server.com ip=xxx.xx.xxx.xxx
>
> My openser.cfg looks like this:
>
> if (uri=~"sip:0[0-9]+@.*")
> {
> #authorize if a call is going to PSTN
> if(!proxy_authorize("", "subscriber"))
> {
> proxy_challenge("", "0");
> return;
> };
> xlog("L_INFO", "CALL: Call to international number <$ru>
> from <$fu>\n");
>
> perl_exec("dialnr");
>
> if(!load_gws())
> {
> sl_send_reply("500", "Internal server error, unable to
> load phone gateways");
> xlog("L_Info", "LCR: unable to load gateways\n");
> exit;
> }
>
> if(!next_gw())
> {
> sl_send_reply("503", "Service not available, no
> gateways found");
> xlog("L_Info", "LCR: no gateways found m=$rm ruri=$ru
> f=$fu t=$tu ip=$si id=$ci\n");
> exit;
> };
>
>
> Can you help me?
>
> Thanks and regards
>
> Martin
>
Disclaimer
The information in this e-mail and any attachments is confidential. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are the intended recipient or his/her representative you are not authorized to, and must not, read, copy, distribute, use or retain this message or any part of it. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
Hello,
can somebody send me an functional openser.cfg with NAT support? I am
unable to find and working example on the web. May be it will be good to add
one to openser web or voip-info.org. I have this situation:
NATed clients
|
NAT router
|
OpenSER
|
internet (or another clients, alternative provider, ...)
OpenSER has an real IP (not private), but NAT clients have internet IP,
masqueraded to another real IP. Is it possible to make a configuration
which can use nathelper to fix these packets? For example an asterisk
client on internet is still sending RTP packets to my openser
and it is not accepting them (what is right).
Do I require "rtpproxy" on my OpenSER? I do not want RTP traffic on my openser
router, only SIP and client-to-client RTP stream, if it is possible.
How to make it working without sip connection tracking on NAT routers?
Is it possible?
Can anybody tell me more how RTP NAT masquerade is working without SIP
connection tracking support?
Thank you.
SAL
Hi all.
MySql password for root:
Domain (realm) for the default user 'admin': 10.200.19.34
http://10.200.19.34>
creating database openser ...
ERROR 1071 (42000) at line 131: Specified key was too long; max key
length is 1000 bytes
Install SERWEB tables ?(y/n):
Is there anyway to solve this issue...?Have tried Latin character set too
but still the same probelm.
Best Regards,
Arshad Mehrab Memon
Hi Martin,
I ran into the same issue (among many others) when I was trying to
connect OpenSER to Oracle.
I ended up changing code in the unixodbc module. Here is a patch you can
try, at your own risk of course... This will work if you use unixodbc
only with Oracle.
--- /usr/src/openser-1.2.x/modules/unixodbc/utils.c 2007-06-05
17:12:58.000000000 +0300
+++ utils.c 2007-06-07 14:18:36.000000000 +0300
@@ -46,7 +46,7 @@
struct tm* t;
t = localtime(&_time);
- return strftime(_result, _res_len, "%Y-%m-%d %H:%M:%S", t);
+ return strftime(_result, _res_len, "to_date(\'%Y-%m-%d
%H:%M:%S\',\'YYYY-MM-DD HH24:MI:SS\')", t);
}
--- /usr/src/openser-1.2.x/modules/unixodbc/val.c 2007-06-05
17:12:58.000000000 +0300
+++ val.c 2007-06-07 15:07:00.000000000 +0300
@@ -157,10 +181,8 @@
return -1;
}
- *_s++ = '\'';
l = time2odbc(_v, _s, *_l - 1);
- *(_s + l) = '\'';
- *_l = l + 2;
+ *_l = l;
return 0;
}
Regards,
George
> Date: Wed, 8 Aug 2007 09:01:10 +0200
> From: <Martin.Gruber1(a)infineon.com>
> Subject: [OpenSER-Users] OpenSER Oracle Connection
> To: <users(a)openser.org>
> Message-ID:
>
> <2934B34075D2164BB8F95C3EB2C813D90205DDC6(a)mucse341.eu.infineon.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi @all,
>
> I want to run OpenSER with ORACLE Database. I use unixODBC and
> libsqora.so.10.1 to connect to the DB.
> But now I have problems with inserting Data in the DB.
> When OpenSER wants to add Data in the "location" table I
> always get an error because of the timeformat (expires, last_modified)
>
> I use SQL*Plus Client in Windows and when I write the
> Connection String from OpenSER usrloc here, everything is
> running well, Because I did alter session set nls_date_format
> = 'YYYY-MM-DD HH24:MM:SS'; Is it a Driver problem?
>
> Does anybody have a solution or experience with it?
>
> Thanks
>
> Martin
>
>
>
Disclaimer
The information in this e-mail and any attachments is confidential. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are the intended recipient or his/her representative you are not authorized to, and must not, read, copy, distribute, use or retain this message or any part of it. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
Thanks both of you. You helped me clarify two issues.
First issue is that the eyeBeam in the version I am currently using is
not compliant to the RFC. I will try to do an update, hope it is fixed
in a newer version.
Second thing I got clear about is that not the XCAP-Lite server
performes the changes in the watchers table, but the OpenSER _according
to_ the XML data, which is simply just written by the XCAP-Lite client.
Good to know.
Best regards
Sebastian
-----Original Message-----
From: Anca-Maria Vamanu [mailto:anca@voice-system.ro]
Sent: Wednesday, August 22, 2007 10:16 AM
To: Klaus Fleischmann
Cc: Schumann Sebastian; users(a)openser.org
Subject: Re: [OpenSER-Users] Presence/XCAP Problem
Hello,
In fact the problem with the xcap document sent by the eyebeam client is
not with that it does not comply with the draft, but with RFC 4745. The
syntax of the 'identity' element is not as described in section 7.1.
Klaus Fleischmann wrote:
> Sebastian,
> as far as I see, the authorization XML data of openser 1.3 is based on
> the latest draft (draft-ietf-simple-presence-rules-10.txt), your
> xcap.xml looks elder. I attach a xml that works with openser 1.3.
>
> /Klaus
>
> Schumann Sebastian wrote:
>> Hi Anca
>>
>> The authorization XML data is attached. The normal generated by
eyeBeam
>> which was successful in the past.
>>
>> In the meantime, I figured out, that the subs_state changed from
"words"
>> to "numbers".
>>
>> Is there a documentation about the mapping or are the changes noticed
>> somewhere? Maybe I didn't check a previous annoucement, but I think
this
>> will most likely cause the error, as the XCAP-Lite uses "activated"
>> "terminated" etc. instead of just "1" or "2", which my OpenSER uses
>> right now. The XCAP-Lite changes the state according to the XML data,
am
>> I right?
>>
The change in status syntax does not affect in any way the document
interpretation. The XCAP-Lite server only writes the whole document in
xcap_xml table without interpretation so it does not have to know about
the changes.
regards,
Anca
>> Best regards
>> Sebastian
>> -----Original Message-----
>> From: Anca-Maria Vamanu [mailto:anca@voice-system.ro] Sent: Tuesday,
>> August 21, 2007 6:33 PM
>> To: Schumann Sebastian
>> Cc: users(a)openser.org
>> Subject: Re: [OpenSER-Users] Presence/XCAP Problem
>>
>> Hello,
>>
>> The problem is with the xcap document with authorization rules, and
>> of its interpretation made by the server and the client. There might
>> be either a bug or lack of synchronization. The document defining the
>> syntax for this document is still a draft so changes might have
occurred
>>
>> in the gap between the client and OpenSer implementation(presence_xml
>> hasn't been updated to the new draft version). Could you send in the
>> xcap document sent by the client that generates these messages?
>>
>> regards,
>> Anca Vamanu
>>
>> Schumann Sebastian wrote:
>>> Dear all
>>>
>>>
>>>
>>> I changed the used Software for my Presence Agent after couple of
time
>>
>>> and have problems to use presence with XCAP authorization.
>>>
>>>
>>>
>>> The debug messages
>>>
>>>
>>>
>>> PRESENCE_XML:get_rule_node:ERROR didn't found identity tag
>>>
>>> PRESENCE_XML:get_rule_node:ERROR didn't found identity tag
>>>
>>> PRESENCE: build_str_hdr: ERROR bad status flag= 136681324
>>>
>>> PRESENCE:send_notify_request:ERROR while building headers
>>>
>>> PRESENCE:notify: ERROR send Notify not successful
>>>
>>> PRESENCE:update_subscribtion: Could not send notify for presence
>>>
>>>
>>>
>>> appear.
>>>
>>>
>>>
>>> I have no idea what I did wrong. I am still using my XCAP-Lite
>>> server version 1.0.0 and adjusted the config to using with the
>>> presence_xml module, not only presence. Furthermore I did a complete
>>> database update, so all tables are in the current version.
>>>
>>>
>>>
>>> One client requests authorization which is granted by the other. The
>>> accordant XCAP data is right in the xcap_xml table. But still, no
>>> NOTIFY is sent :(
>>>
>>>
>>>
>>> Does anyone experience similar problems? Where can be the issue for
>>> the posted error messages?
>>>
>>>
>>>
>>> Thanks as always for your help!
>>>
>>>
>>>
>>> Best regards
>>>
>>> Sebastian
>>>
>>>
>>>
>>> *Sebastian Schumann*
>>> Diploma Student Architecture and Design Department
>>>
>>> Slovak Telekom, a. s.
>>> T-Com, Operations Unit
>>> Production and Service Division
>>> Innovations and Enterprise Solution Subunit
>>>
>>> Address: Namestie Slobody 6, 817 62 Bratislava, Slovakia
>>> Office: Room 449, Jarabinkova 1, 821 09 Bratislava, Slovakia
>>>
>>> +421 2 588 13332 (tel)
>>> +421 910 643010 (mobile)
>>> +49 175 1925928 (mobile)
>>>
>>> sebastian.schumann(a)t-com.sk <mailto:sebastian.schumann@t-com.sk>
>>> _http://www.t-com.sk_ <http://www.t-com.sk/>
>>>
>>>
>>>
>>
------------------------------------------------------------------------
>>> _______________________________________________
>>> Users mailing list
>>> Users(a)openser.org
>>> http://openser.org/cgi-bin/mailman/listinfo/users
>>>
>>
>>
>>
------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users(a)openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
Hi Anca
The authorization XML data is attached. The normal generated by eyeBeam
which was successful in the past.
In the meantime, I figured out, that the subs_state changed from "words"
to "numbers".
Is there a documentation about the mapping or are the changes noticed
somewhere? Maybe I didn't check a previous annoucement, but I think this
will most likely cause the error, as the XCAP-Lite uses "activated"
"terminated" etc. instead of just "1" or "2", which my OpenSER uses
right now. The XCAP-Lite changes the state according to the XML data, am
I right?
Best regards
Sebastian
-----Original Message-----
From: Anca-Maria Vamanu [mailto:anca@voice-system.ro]
Sent: Tuesday, August 21, 2007 6:33 PM
To: Schumann Sebastian
Cc: users(a)openser.org
Subject: Re: [OpenSER-Users] Presence/XCAP Problem
Hello,
The problem is with the xcap document with authorization rules, and of
its interpretation made by the server and the client. There might be
either a bug or lack of synchronization. The document defining the
syntax for this document is still a draft so changes might have occurred
in the gap between the client and OpenSer implementation(presence_xml
hasn't been updated to the new draft version). Could you send in the
xcap document sent by the client that generates these messages?
regards,
Anca Vamanu
Schumann Sebastian wrote:
>
> Dear all
>
>
>
> I changed the used Software for my Presence Agent after couple of time
> and have problems to use presence with XCAP authorization.
>
>
>
> The debug messages
>
>
>
> PRESENCE_XML:get_rule_node:ERROR didn't found identity tag
>
> PRESENCE_XML:get_rule_node:ERROR didn't found identity tag
>
> PRESENCE: build_str_hdr: ERROR bad status flag= 136681324
>
> PRESENCE:send_notify_request:ERROR while building headers
>
> PRESENCE:notify: ERROR send Notify not successful
>
> PRESENCE:update_subscribtion: Could not send notify for presence
>
>
>
> appear.
>
>
>
> I have no idea what I did wrong. I am still using my XCAP-Lite server
> version 1.0.0 and adjusted the config to using with the presence_xml
> module, not only presence. Furthermore I did a complete database
> update, so all tables are in the current version.
>
>
>
> One client requests authorization which is granted by the other. The
> accordant XCAP data is right in the xcap_xml table. But still, no
> NOTIFY is sent :(
>
>
>
> Does anyone experience similar problems? Where can be the issue for
> the posted error messages?
>
>
>
> Thanks as always for your help!
>
>
>
> Best regards
>
> Sebastian
>
>
>
> *Sebastian Schumann*
> Diploma Student Architecture and Design Department
>
> Slovak Telekom, a. s.
> T-Com, Operations Unit
> Production and Service Division
> Innovations and Enterprise Solution Subunit
>
> Address: Namestie Slobody 6, 817 62 Bratislava, Slovakia
> Office: Room 449, Jarabinkova 1, 821 09 Bratislava, Slovakia
>
> +421 2 588 13332 (tel)
> +421 910 643010 (mobile)
> +49 175 1925928 (mobile)
>
> sebastian.schumann(a)t-com.sk <mailto:sebastian.schumann@t-com.sk>
> _http://www.t-com.sk_ <http://www.t-com.sk/>
>
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users(a)openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
Hello,
On 08/20/07 22:09, Borislav Ivandic wrote:
> Hi Daniel,
>
> Apologize me for the delay, but it wasn't easy setting-up the lab
> environment. Anyway, downloaded the devel version, and, after
> installing, found a "Segmentation fault (core dumped)" log message.
> Maybe it's my short experience working with devel versions, but wasn't
> able to run openser. Please see below the last part of log:
please send the backtrace, you got a coredump.
gdb /path/to/openser /path/to/corefile
bt
Thanks,
Daniel
>
> Thanks in advance,
>
> Borislav Ivandic
>
> Log:
>
>
> DEBUG:db_free_rows: Freeing 0 rows
> DEBUG:init_mod_child: CHILD , rank=1, module=registrar
> DEBUG:init_mod_child: CHILD , rank=1, module=nathelper
> DEBUG:init_mod_child: CHILD , rank=1, module=uri_db
> db_init: Connection 'mysql://root:.acantoflextel@localhost/openser'
> found in pool
> DEBUG:init_mod_child: CHILD , rank=1, module=dispatcher
> Aug 20 17:40:11 [3897] DBG:dispatcher:child_init: #1 / pid <3897>
> Segmentation fault (core dumped)
>
>
>
>
> 2007/8/15, Daniel-Constantin Mierla <daniel(a)voice-system.ro
> <mailto:daniel@voice-system.ro>>:
>
> Hello,
>
> can you get latest devel version (trunk) and give it a try? I did some
> fix, hopefully. Please report the results.
>
> Cheers,
> Daniel
>
>
> On 08/14/07 23:32, Francisco Ivandic wrote:
> > Hi All,
> >
> > I'm using dispatcher succesfully, with round robin alg (option
> 4), and
> > also use ds_mark_dst and ds_next_dst to select other proxy in
> case of
> > failure. It balances great when all servers are active, but when
> there
> > are inactive servers, round robin alg selects the next in the round,
> > even if it's marked as inactive. This results in going through
> > ds_next_dst, and overloads the first active server in the
> dispatcher
> > file until completing the round. Then, other active servers are
> > called, and when passing to a group of inactive servers, starts
> going
> > through the first active (as much times as inactive servers there
> > are), and again completing the round.
> >
> > Does anyone know a way to implement a round robin aware of inactive
> > servers?
> >
> >
> > Thanks in advance,
> >
> > Borislav Ivandic
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users(a)openser.org <mailto:Users@openser.org>
> > http://openser.org/cgi-bin/mailman/listinfo/users
> >
>
>