[OpenSIPS-Users] Limit call duration - Timeout in Dialog module?

Bogdan-Andrei Iancu bogdan at voice-system.ro
Sun May 10 12:40:57 CEST 2009


Hi John,

John Quick wrote:
> Hi Bogdan-Andrei
>
> I cannot reproduce the problem with migrate because I have now deleted the
> old 1.4 database and created a new one. However, if you run opensipsdbctl
> with no arguments, the help says:
> migrate <old_db> <new_db> ... (migrates DB from 1.2 to 1.3, not implemented
> yet!)
> So that did not give me much hope that it was going to work before I even
> tried!
>   
Sorry for that, but the help message is bogus - actually the "migrate" 
does migration from 1.4 to 1.5 and it it implemented. Just fixed this 
bogus messages on SVN.

So, the migration should work.
> The other problem with pseudo-variable used in a call to xlog is like this:
> In opensips.cfg:
> xlog("L_WARN", "****Method REGISTER from $fu. Trying\n");
>
> In /var/log/opensips.log:
> May  5 13:08:36 localhost /usr/local/sbin/opensips[26042]:
> INFO:xlog:mod_init: initializing...
> May  5 13:08:36 localhost /usr/local/sbin/opensips[26042]:
> ERROR:core:pv_parse_spec: error searching pvar "fu."
> May  5 13:08:36 localhost /usr/local/sbin/opensips[26042]:
> ERROR:core:pv_parse_spec: wrong char [./46] in [$fu. Trying ] at [3 (0)]
> May  5 13:08:36 localhost /usr/local/sbin/opensips[26042]:
> ERROR:xlog:xdbg_fixup: ERROR: wrong format[****Method REGISTER from $fu.
> Trying ]!
> May  5 13:08:36 localhost /usr/local/sbin/opensips[26042]:
> ERROR:core:fix_actions: fixing failed (code=-1) at cfg line 376
> May  5 13:08:36 localhost /usr/local/sbin/opensips[26042]: ERROR:core:main:
> failed to fix configuration with err code -1
>
> When I change that one line in opensips.cfg to the following, no problem:
> xlog("L_WARN", "****Method REGISTER from ($fu). Trying\n");
>   
yes, the problem is the dot . next after a  pseudovariable - the parse 
thinks it a composed PV, but does not find the second part...placing a 
space or something else between will do the trick.

Regards,
Bogdan

> Regards
> John
>
>
>   
>> -----Original Message-----
>> From: Bogdan-Andrei Iancu [mailto:bogdan at voice-system.ro]
>> Sent: 02 May 2009 08:41
>> To: John.Quick at smartvox.co.uk
>> Cc: 'Brett Nemeroff'; users at lists.opensips.org
>> Subject: Re: [OpenSIPS-Users] Limit call duration - Timeout in Dialog
>> module?
>>
>> HI John,
>>
>> not sure if this were already fixed on not, but
>>
>> John Quick wrote:
>>     
>>> Brett
>>>
>>> Thanks. I have been working on the upgrade for the last 2 hours. I think
>>>       
>> it
>>     
>>> is working now, but it did complain about old versions of tables in the
>>> database so I just dropped the entire DB and created a new one. Lucky
>>>       
>> for me
>>     
>>> these servers are still in the trial/testing phase so there is no real
>>>       
>> data
>>     
>>> yet.
>>> "opensipsdbctl migrate" seems not to work.
>>>
>>>       
>> what you mean? it gives any error? how to you run the command ?
>>     
>>> One strange problem, nothing to do with databases, was 1.5.1 complained
>>> about the syntax for the "format" part of an xlog call where I had put a
>>> full stop after the pseudo-variable $fu. When I changed it to ($fu) it
>>>       
>> had
>>     
>>> no problem. Curious.
>>>
>>>       
>> indeed, could you post the old format and the new format?
>>
>> Regards,
>> Bogdan
>>     
>>> John
>>>
>>>
>>> ________________________________________
>>> From: Brett Nemeroff [mailto:brett at nemeroff.com]
>>> Sent: 01 May 2009 14:45
>>> To: Bogdan-Andrei Iancu
>>> Cc: John.Quick at smartvox.co.uk; users at lists.opensips.org
>>> Subject: Re: [OpenSIPS-Users] Limit call duration - Timeout in Dialog
>>> module?
>>>
>>> On Fri, May 1, 2009 at 7:00 AM, Bogdan-Andrei Iancu <bogdan at voice-
>>>       
>> system.ro>
>>     
>>> wrote:
>>> John Quick wrote:
>>>
>>>       
>>>> So whichever solution I use requires upgrading to version 1.5.x. I
>>>>         
>> thought
>>     
>>>> maybe 1.4.x was more stable so have not yet upgraded to 1.5. Perhaps
>>>>         
>> now
>>     
>>> is
>>>
>>>       
>>>> the time!
>>>>
>>>>         
>>> I know no one's asking, but the upgrades I've done from 1.4 to 1.5 have
>>>       
>> been
>>     
>>> well worth it. There were some DB issues I had for 1.5.0, but have since
>>> been resolved in 1.5.1. Performance is great, and I can't tell you how
>>>       
>> much
>>     
>>> I love the new memcache stuff in 1.5. It's a whole new ballgame now. :)
>>>
>>> -Brett
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>       
>
>
>
>   




More information about the Users mailing list