could it be that acc can't find the dictionary.ser?
is the path to that file in you
/usr/local/etc/radiusclient-ng/dictionary an absolute path?
On Mon, Jun 16, 2008 at 2:24 PM, Ali Jawad <ali.jawad(a)splendor.net> wrote:
> What config files do you need so that I publish those ?
> Thanks
>
>
> -----Original Message-----
> From: David Villasmil [mailto:david.villasmil.work@gmail.com]
> Sent: Monday, June 16, 2008 3:17 PM
> To: Ali Jawad
> Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
>
> For some reason I can't figure out, openser can't either find the file
> or can't read it...
>
> can you post your config?
>
> On Mon, Jun 16, 2008 at 2:14 PM, Ali Jawad <ali.jawad(a)splendor.net> wrote:
>>
>>
>> Hi
>>
>> I have debug 6, I put it debug 9 and I am still getting the same ouput
>>
>> Jun 16 13:12:01 [4977] ERROR:acc:init_acc_rad: failed to read radius dictionary
>> Jun 16 13:12:01 [4977] ERROR:acc:mod_init: failed to init radius
>> Jun 16 13:12:01 [4977] ERROR:core:init_mod: failed to initialize module acc
>> Jun 16 13:12:01 [4977] ERROR:core:main: error while initializing modules
>> Jun 16 13:12:01 [4977] DBG:xlog:destroy: destroy module...
>>
>>
>> -----Original Message-----
>> From: David Villasmil [mailto:david.villasmil.work@gmail.com]
>> Sent: Monday, June 16, 2008 3:10 PM
>> To: Ali Jawad
>> Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
>>
>> make the debug higher, like 5 and re-run
>>
>> On Mon, Jun 16, 2008 at 2:03 PM, Ali Jawad <ali.jawad(a)splendor.net> wrote:
>>> Hi
>>>
>>> I did not reach that far yet, I am still trying to make it run with no errors.
>>>
>>> Thanks
>>>
>>> -----Original Message-----
>>> From: David Villasmil [mailto:david.villasmil.work@gmail.com]
>>> Sent: Monday, June 16, 2008 3:02 PM
>>> To: Ali Jawad
>>> Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
>>>
>>> with
>>> log_flagyou are telling the system to log accounting on syslog... is
>>> that what you want?
>>>
>>> my whole module config is this:
>>>
>>> modparam("acc", "radius_config", "/etc/radiusclient-ng/radiusclient.conf")
>>> modparam("acc", "radius_flag", 2)
>>> modparam("acc", "radius_missed_flag", 3)
>>>
>>> I don't have any log flag, I'm already logging to radius...
>>>
>>> On Mon, Jun 16, 2008 at 2:00 PM, David Villasmil
>>> <david.villasmil.work(a)gmail.com> wrote:
>>>> then take a look at the file's permissions... it all seems ok to me.
>>>>
>>>> On Mon, Jun 16, 2008 at 1:58 PM, Ali Jawad <ali.jawad(a)splendor.net> wrote:
>>>>> Hi
>>>>> Yes I did
>>>>>
>>>>> This is a part of my openser script
>>>>>
>>>>> modparam("acc", "log_flag", 1)
>>>>> modparam("acc", "log_missed_flag", 1)
>>>>>
>>>>> modparam("acc", "radius_config","/usr/local/etc/radiusclient-ng/radiusclient.conf")
>>>>>
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: David Villasmil [mailto:david.villasmil.work@gmail.com]
>>>>> Sent: Monday, June 16, 2008 2:55 PM
>>>>> To: Ali Jawad
>>>>> Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
>>>>>
>>>>> did you tell the module where to find the dictionary?
>>>>>
>>>>> this is mine (I'm using 1.3):
>>>>>
>>>>> modparam("acc", "radius_config", "/etc/radiusclient-ng/radiusclient.conf")
>>>>>
>>>>> On Mon, Jun 16, 2008 at 1:51 PM, Ali Jawad <ali.jawad(a)splendor.net> wrote:
>>>>>>
>>>>>> Hi All
>>>>>>
>>>>>> I did add to in /etc/raddb/dictionary
>>>>>>
>>>>>> $INCLUDE /usr/share/freeradius/dictionary
>>>>>> $INCLUDE /etc/raddb/dictionary.ser
>>>>>>
>>>>>> I did add in /usr/local/etc/radiusclient-ng/dictionary
>>>>>>
>>>>>> $INCLUDE /usr/local/etc/radiusclient-ng/dictionary.ser the the LAST line.
>>>>>>
>>>>>> I did restart radiusd with no problems
>>>>>>
>>>>>> When I restarted Openser I got
>>>>>>
>>>>>> Jun 16 12:48:47 [4923] ERROR:acc:init_acc_rad: failed to read radius dictionary
>>>>>> Jun 16 12:48:47 [4923] ERROR:acc:mod_init: failed to init radius
>>>>>> Jun 16 12:48:47 [4923] ERROR:core:init_mod: failed to initialize module acc
>>>>>> Jun 16 12:48:47 [4923] ERROR:core:main: error while initializing modules
>>>>>> Jun 16 12:48:47 [4923] DBG:xlog:destroy: destroy module...
>>>>>>
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: David Villasmil [mailto:david.villasmil.work@gmail.com]
>>>>>> Sent: Monday, June 16, 2008 2:23 PM
>>>>>> To: Ali Jawad
>>>>>> Cc: users(a)lists.openser.org
>>>>>> Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
>>>>>>
>>>>>> this is my config:
>>>>>>
>>>>>> on the server (radius):
>>>>>>
>>>>>> ls -l /etc/freeradius/dictionary.ser
>>>>>> -rw-r--r-- 1 root freerad 4233 2008-06-11 04:03 /etc/freeradius/dictionary.ser
>>>>>>
>>>>>> my /etc/freeradius/dictionary:
>>>>>>
>>>>>> $INCLUDE /usr/share/freeradius/dictionary
>>>>>> $INCLUDE /etc/freeradius/dictionary.ser
>>>>>>
>>>>>>
>>>>>> on the client (openser):
>>>>>>
>>>>>> ls -l /etc/radiusclient-ng/
>>>>>> total 48
>>>>>> -rw-r--r-- 1 root root 7375 2008-06-11 04:14 dictionary
>>>>>> -rw-r--r-- 1 root root 4233 2008-06-11 04:52 dictionary.ser
>>>>>>
>>>>>> in the file /etc/radiusclient-ng/dictionary AT THE VERY END:
>>>>>>
>>>>>> $INCLUDE /etc/radiusclient-ng/dictionary.ser
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> that's it.
>>>>>>
>>>>>> d
>>>>>> On Mon, Jun 16, 2008 at 1:13 PM, Ali Jawad <ali.jawad(a)splendor.net> wrote:
>>>>>>>
>>>>>>>
>>>>>>> Hi Again
>>>>>>>
>>>>>>> I have re-read the howto and it states that I should comment out the include line for the dictionary.ser file in the dictionary file for radiusclient-ng. Should I do the same for the server ?
>>>>>>> I did it for the client by adding the following line to the radiusclient-ng file
>>>>>>>
>>>>>>> $INCLUDE /usr/local/etc/radiusclient-ng/dictionary.ser
>>>>>>>
>>>>>>> This gave the following errror
>>>>>>>
>>>>>>> Jun 16 12:08:12 [4781] ERROR:acc:init_acc_rad: failed to read radius dictionary
>>>>>>> Jun 16 12:08:12 [4781] ERROR:acc:mod_init: failed to init radius
>>>>>>> Jun 16 12:08:12 [4781] ERROR:core:init_mod: failed to initialize module acc
>>>>>>> Jun 16 12:08:12 [4781] ERROR:core:main: error while initializing modules
>>>>>>>
>>>>>>> However if I do edit the radiusclient.conf file and point the dictionary directly to /usr/local/etc/radiusclient-ng/dictionary.ser openser appears to launch normally. Although nothing is added to the radius db.
>>>>>>>
>>>>>>> In short.
>>>>>>>
>>>>>>> Should I include the server as well ?
>>>>>>>
>>>>>>> Is my include line for the client correct ?
>>>>>>>
>>>>>>> Thanks.
>>>>>>>
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: users-bounces(a)lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of Iñaki Baz Castillo
>>>>>>> Sent: Monday, June 16, 2008 1:01 PM
>>>>>>> To: users(a)lists.openser.org
>>>>>>> Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
>>>>>>>
>>>>>>> El Monday 16 June 2008 11:19:58 Ali Jawad escribió:
>>>>>>>> Hi
>>>>>>>> The server and client are on the same machine.
>>>>>>>>
>>>>>>>> The freeradius server config files are on /etc/raddb/
>>>>>>>>
>>>>>>>> So I did copy it to that dir
>>>>>>>>
>>>>>>>> [root@localhost radiusclient-ng]# cd /etc/raddb/
>>>>>>>> [root@localhost raddb]# pwd
>>>>>>>> /etc/raddb
>>>>>>>> [root@localhost raddb]# ls dictionary.ser
>>>>>>>> dictionary.ser
>>>>>>>> [root@localhost raddb]#
>>>>>>>
>>>>>>> That's not enough. Check that you FreeRadius "dictionary" file has an #INCLUDE
>>>>>>> pointing to that file.
>>>>>>>
>>>>>>> --
>>>>>>> Iñaki Baz Castillo
>>>>>>> ibc(a)in.ilimit.es
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Users mailing list
>>>>>>> Users(a)lists.openser.org
>>>>>>> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>>>>>>>
>>>>>>> --
>>>>>>> This message has been scanned for viruses and
>>>>>>> dangerous content by MailScanner, and is
>>>>>>> believed to be clean.
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Users mailing list
>>>>>>> Users(a)lists.openser.org
>>>>>>> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> This message has been scanned for viruses and
>>>>>> dangerous content by MailScanner, and is
>>>>>> believed to be clean.
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> This message has been scanned for viruses and
>>>>> dangerous content by MailScanner, and is
>>>>> believed to be clean.
>>>>>
>>>>>
>>>>
>>>
>>> --
>>> This message has been scanned for viruses and
>>> dangerous content by MailScanner, and is
>>> believed to be clean.
>>>
>>>
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>>
>>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
Hi All
I have followed this howto
http://cdrtool.ag-projects.com/browser/doc/INSTALL.txt
I did the CDR Tool installation
I installed freeradius and I installed radiusclient-ng
I did comment out the radius modules from the exclude list in the
openser Makefile
I did comment out ENABLE_RADIUS_ACC modules/acc/Makefile
I did enter the following info into openser --> modparam("acc",
"radius_config","/usr/local/etc/radiusclient-ng/radiusclient.conf")
I did edit /usr/local/etc/radiusclient-ng/servers to meet the secret
requirements
I did add dictionary.ser to /usr/local/etc/radiusclient-ng/
I did restart the freeradius server using radiusd -x
Now when I do start openser I do get the following error:
Jun 16 10:02:02 [4488] ERROR:acc:init_acc_rad: acc: can't get code for
the Sip-Response-Code attribute
Jun 16 10:02:02 [4488] ERROR:acc:mod_init: failed to init radius
Jun 16 10:02:02 [4488] ERROR:core:init_mod: failed to initialize module
acc
Jun 16 10:02:02 [4488] ERROR:core:main: error while initializing modules
Jun 16 10:02:02 [4488] DBG:xlog:destroy: destroy module...
And the radius server does not show any incoming requests.
I have been hinted that the error above is related to some dictionary
issue. However as mentioned above I did copy the dictionary.ser file to
/usr/local/etc/radiusclient-ng/
Any hints please?
Thanks.
Hi,
Ok this is what I am planning to do.
I am using Cisco 5350 as SBC after my Openser proxy to relay calls. In cisco there is a good option of matching carrier-ids and relay calls to appropriate carriers.
Cisco looks at the x-route-tag parameter or tsp parameter which is appended to the Via header to match the carrier-id. So basically Cisco searches for it in the Via header.
Thus I need to put this x-route-tag or tsp parameter in the Via header so that Cisco will parse the carrier-id and process calls according to the carrier-id defined.
The x-route-tag= or tsp= values will be fetched from the database which will depend on the called number.
Now I tried the following and it works but it gets messed up somewhere near the rport parameter in the Via header and the return responses goes to improper ports.
subst('/^Via: .*/Via: $(hdr(Via));tsp=1234\r\n/');
The initial INVITE that I get from the UA is similar to the following (i have pasted only the first two lines as the relevant Via headers are present there):
INVITE sip:7050@192.168.2.125 SIP/2.0..Via: SIP/2.0/UDP 192.168.2.21:6221;branch=z9hG4bK-d87543-b9072d1e713a491a-1--d87543-;rport..Max-Forwards: 70..Contact: <sip:1234@192.168.2.21:6221>..To: <sip:7050@192.168.2.125>..
When this INVITE is forwarded to my Cisco it goes as follows:
INVITE sip:7050@192.168.2.252 SIP/2.0..Record-Route: <sip:192.168.2.125;lr=on;ftag=cc40082e>..Via: SIP/2.0/UDP 192.168.2.21:6221;branch=z9hG4bK-d87543-b9072d1e713a491a-1--d87543-;rport;tsp=1111..Via: SIP/2.0/UDP 192.168.2.125;branch=z9hG4bKd909.4996e851.0..;rport=6221.Max-Forwards: 69..Contact: <sip:1234@192.168.2.21:6221>..To: <sip:7050@192.168.2.125>..
Now if you take a look at the rport parameter above it is completely messed up. The rport becomes a new header.
Can someone help me to overcome this problem.
Thanks in advance.
-- Jayesh
----- Original Message ----
From: Henning Westerholt <henning.westerholt(a)1und1.de>
To: Jayesh Nambiar <voip_freak(a)yahoo.co.in>
Cc: users(a)lists.openser.org
Sent: Monday, 16 June, 2008 5:38:23 PM
Subject: Re: [OpenSER-Users] appending into Via header
On Monday 16 June 2008, Jayesh Nambiar wrote:
> I do not want it to add two times. I have explained as to where I want to
> add it in the Via header. I dont want to add it twice in the message. I
> know I can easily add a new header but that does not meet my requirement. I
> want it to be appended to the Via header that Openser creates while sending
> the call to the PSTN gateway. To be precise, the format has to be like:
> Via:
> SIP/2.0/UDP 192.168.2.125;branch=z9hG4bK7e7c.877b4352;x-route-tag="cid:1234
>" where 192.168.2..125 is my openser and x-route-tag is what I want to
> append in the Via header. Thanks again for your help.
Hi Jayesh,
i don't know anything about your configuration, so i can't help you that much
with regards to your requirements, sorry. Please read the documentation for
the textops module. Perhaps the "subst" function is something you could use?
Its possible to alter existing header content with it.
Henning
Bring your gang together. Do your thing. Find your favourite Yahoo! group at http://in.promos.yahoo.com/groups/
Hi Henning,
Thanks for your reply.
I do not want it to add two times. I have explained as to where I want to add it in the Via header. I dont want to add it twice in the message.
I know I can easily add a new header but that does not meet my requirement.
I want it to be appended to the Via header that Openser creates while sending the call to the PSTN gateway.
To be precise, the format has to be like:
Via: SIP/2.0/UDP 192.168.2.125;branch=z9hG4bK7e7c.877b4352;x-route-tag="cid:1234"
where 192.168.2..125 is my openser and x-route-tag is what I want to append in the Via header.
Thanks again for your help.
w/regards,
Jayesh
----- Original Message ----
From: Henning Westerholt <henning.westerholt(a)1und1.de>
To: users(a)lists.openser.org
Cc: Jayesh Nambiar <voip_freak(a)yahoo.co.in>
Sent: Monday, 16 June, 2008 2:57:52 PM
Subject: Re: [OpenSER-Users] appending into Via header
On Monday 16 June 2008, Jayesh Nambiar wrote:
> I had a requirement of appending a text in the VIA header while forwarding
> the request to the PSTN gateway. For eg:
> When the call is forwarded to a PSTN gateway from my Openser server, I
> needed the Via header to be as follows: Via: SIP/2.0/UDP
> 192.168.2.125;branch=z9hG4bK7e7c..877b4352;x-route-tag="cid:1234"
> x-route-tag="cid:1234" is what I want to append to the Via header that is
> going out of my proxy. I do not want to disturb the first Via header that
> has come in from the UA, I only want to append the text in the Via header
> when the message goes out of Openser proxy. Can someone please guide me on
> which module can help me in doing this or what would be the right approach.
> Thanks in advance,
> -- Jayesh
Hi Jayesh,
take a look at the textops modules, there are functions present to add/
manipulate header fields. I don't understand why you need to append the same
parameter "x-route-tag" two times.. Instead of modifiying the VIA perhaps its
possible to just add some new header, e.g. X-Route-Tag, this should be
easier.
Henning
Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
Hi,
I don't known if it's possible but I try to use Openser for caching REGISTER
requests.
I have make a schema with the ideal registration flow :
http://img225.imageshack.us/img225/930/registerlj0.png.
What do you think about it ?
Can I make that with the existing module ?
Best Regards,
--
Julien Mangeard
06.84.39.57.78
Hi All,
I had a requirement of appending a text in the VIA header while forwarding the request to the PSTN gateway.
For eg:
When the call is forwarded to a PSTN gateway from my Openser server, I needed the Via header to be as follows:
Via: SIP/2.0/UDP 192.168.2.125;branch=z9hG4bK7e7c.877b4352;x-route-tag="cid:1234"
x-route-tag="cid:1234" is what I want to append to the Via header that is going out of my proxy.
I do not want to disturb the first Via header that has come in from the UA, I only want to append the text in the Via header when the message goes out of Openser proxy.
Can someone please guide me on which module can help me in doing this or what would be the right approach.
Thanks in advance,
-- Jayesh
Bring your gang together. Do your thing. Find your favourite Yahoo! group at http://in.promos.yahoo.com/groups/
hey all ,
my problem is a bit strange . i have succeeded in compiling ser 0.9.7 on
solaris 10 x86 arch and the compilation process went smoothly without any
troubles ( i mean the last time i compiled ser ) after that i have
configured Ser to work with MySQL 5 and aslo there werent any problems
happened
the problem is :
i have added some users in the subscriber table to check that ser is
preconfigured correctly using x-lite softphone and also there weren't any
problems for the first time i registered with xlite , the problem appears
when i unregistered the account and leave SER running for several hours
without any user'registration ( about 10 hrs SER is idle or more )
So my question is :
is there any pre-determined period that ser shouldnt be idle ? or it there
any configuration responsible for determining the max time that SER can
rest in idle status ?
the error message that appears in the x-lite winow is " Registration error
500 : Server internal Error "
Note : when i do restarting SER all things are fine and i can be able to
registration without any error , the error appear when i do unregistration
and SER is idle
thanks in advance
Hello all,
I'm using Countpath softphones and openser 1.3.0-tls with this
configuration:
disable_tls = 0
listen = tls:xx.xx.xx.xx:5061
tls_verify_server = 0
tls_verify_client = 0
tls_require_client_certificate = 0
tls_method = TLSv1
tls_certificate = "/usr/local/etc/openser/tls/user/user-cert.pem"
tls_private_key = "/usr/local/etc/openser/tls/user/user-privkey.pem"
tls_ca_list = "/usr/local/etc/openser/tls/user/user-calist.pem"
I ran "openserctl tls rootCA" and "openserctl tls user". And, scp'd and
imported cacert.pem into the trusted certificate store on a windows xp
machine.
It's worked last fall when I was experimenting, but now I'm getting:
"registration error: 503 - certificate name mismatch"
I've looked through the mailing list and can't find a thread on this. Am
I the only one? Thoughts?
Thanks for any and all help.
- Jeremy
Hello all,
Question: I know BYE messages aren't gusranteed to be delivered as far
as accounting is concerned. BUT, Could Dialog and TM modules be used in the
following way:
Setting a timeout on the dialog to receive the first message, i.e. 100 or
180.
Instruct the UAC to send a message every 60 senconds to our server, and
reseting that timer when we receive it, so that we know that the call hasn't
ended.
If we don't receive that "keep-alive" message we end the dialog with a BYE
(from an outside script) so that, even if the caller or calle dropped out of
the internet, we have a START and END for this call, maybe loosing a few
senconds.
Is this possible at all?
Thanks a lot!
David