Hi,
o Max Mühlbronner on 02/28/2014 02:12 PM:
> Hi,
>
>
> "Mappings can also loaded into the running server by using the
> setRegexMap DI function or the included sems-sbc-*-regex-* scripts:"
>
> sems-sbc-set-regex-map <name> <file> load a regex map from a file
> sems-sbc-get-regex-map-names list regex map names
>
>
>
> My problem:
>
> xmlrpc2di module is not enabled, also i am not allowed to restart. So i
> can not use sems-sbc-... scripts.
>
>
> But I noticed the syntax in the sems-sbc-set-regex-map script:
>
> p ={ 'name' : sys.argv[1], 'file' : sys.argv[2] }
> print s.di('sbc','setRegexMap',p)
>
>
> What would be the syntax when using sems-stats -c "DI sbc ...." i have
> tried the following and other variations but i did not find the correct
> syntax? ("Exception occured")
>
> sems-stats -c "DI sbc setRegexMap src_ipmap /etc/sems/etc/src_ipmap.conf"
>
>
> Any ideas how i can reload the src_ipmap without xmlrpc2di? Am i missing
> something?
the stats server doesn't unpack parameters to struct (which is
required for that sbc setRegexMap function) - so I'm afraid you're out
of luck there without having xmlrpc2di or jsonrpc modules loaded.
if you are at it, you could add a loadPlugin RPC request to prevent
that in the future... we usually deploy the sbc in pairs so we can
failover to the hot-standby for necessary restarts like these.
Stefan
>
>
> Best Regards
>
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems