[OpenSER-Users] carrierroute seg fault

Helmut Kuper helmut.kuper at ewetel.de
Thu Apr 17 11:18:42 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I have "seg-fault" with carrierroute module:

openser: svnrevision: 2:4013M
on a 64 bit machine running CENTOS5

- --------------------------------------------------
openser-config:

[..]
loadmodule "carrierroute.so"
modparam("carrierroute", "config_file",
"/opt/app/voip/openser/etc/openser/carrierroute.conf2")
[..]

if(!cr_route("default", "0", "$rU", "$rU", "call_id"))
{ ... }

- -----------------------------------------------------
carrierroute.conf2:

domain 0
{
~        prefix +49441
~        {
~                max_targets = 1
~                target y.y.z
~                {
~                        prob = 0.500000
~                        hash_index = 1
~                        status = 1
~                        comment = "GK-Proxy"
~                }
~        }
}

- ----------------------------------------------------

openser console:

[...]
Apr 17 10:54:50 [27937] INFO:carrierroute:add_carrier_tree: carrier
default not found, add it
Apr 17 10:54:50 [27937] INFO:carrierroute:add_tree: tree default has
internal id 0
Apr 17 10:54:50 [27937] INFO:carrierroute:add_carrier_tree: created
carrier tree: default, with id 1 and 1 trees
Apr 17 10:54:50 [27937] INFO:carrierroute:load_config: loading domain 0
Apr 17 10:54:50 [27937] INFO:carrierroute:load_config: loading prefix 49441
Apr 17 10:54:50 [27937] INFO:carrierroute:load_config: loading target y.y.z
Apr 17 10:54:50 [27937] INFO:carrierroute:load_config: adding route for
prefix 49441, to host y.y.z, prob 0.500000, backed up: 0, backup: -1
Apr 17 10:54:50 [27937] INFO:carrierroute:add_route: adding prefix
49441, prob 0.500000
Apr 17 10:54:50 [27937] INFO:carrierroute:get_route_tree: domain 0 not
found, add it
Apr 17 10:54:50 [27937] INFO:carrierroute:add_domain: domain 0 has id 0
Apr 17 10:54:50 [27937] INFO:carrierroute:add_route_tree: tree default
has 1 trees
Apr 17 10:54:50 [27937] INFO:carrierroute:get_route_tree: created route
tree: 0, with id 0
Apr 17 10:54:50 [27937] INFO:carrierroute:add_route: found route, now adding
Apr 17 10:54:50 [27937] INFO:carrierroute:add_route_rule: no backed up rules
Apr 17 10:54:50 [27937] INFO:carrierroute:rule_fixup: fixing tree 0
Apr 17 10:54:50 [27937] INFO:carrierroute:rule_fixup_recursor: rule with
host y.y.z hash has hashindex 1.
Apr 17 10:54:50 [27937] INFO:carrierroute:mod_init: module initialized,
pid [27937]
Apr 17 10:54:50 [27937] ERROR:core:pv_parse_spec: bad parameters
Apr 17 10:54:50 [27937] INFO:carrierroute:carrier_fixup: carrier tree
default has id 1
Apr 17 10:54:50 [27937] ERROR:core:pv_parse_spec: bad parameters
[...]


- ---------------------------------------------


The seg-fault:

Apr 17 10:57:20 [28437] DBG:carrierroute:get_route_tree_by_id: searching
in carrier default, id 1
Apr 17 10:57:20 [28437] DBG:carrierroute:get_route_tree_by_id: tree
default, domain 0 : 0
Segmentation fault (core dumped)


Number in $rU was "+49441234"



Any ideas?

Helmut



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgHFfIACgkQ4tZeNddg3dx90wCfTms/1qSzzJtmGLUQUdUt81hH
KCIAni+f23WQBeJTt5BRMVuJ1YtzEwKM
=CCVU
-----END PGP SIGNATURE-----




More information about the sr-users mailing list