[OpenSIPS-Users] drouting module 1.6.3 with b2b
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Tue Dec 14 14:24:58 CET 2010
Hi Anton,
Why do you say it crashes ? do you have a corefile ?
your logs do not show any t_relay() after do_routing()....could you post
the relevant snip of your cfg?
Regards,
Bogdan
Anton Zagorskiy wrote:
> Hi!
>
> I'm trying to use drouting module, but something says to me that I using it
> wrong because openSIPS goes to crash.
>
> I've inserted following values in the DB:
>
> 1. dr_gateways:
>
> gwid(2)
> type(1)
> address(192.168.0.10)
> strip(0)
> pri_prefix(1000)
> attrs("")
> probe_mode(0)
> description(Gateway1)
>
> 2. dr_groups:
> id(1)
> username(100)
> domain(mydomain.com)
> groupid(1)
> description(All-Test)
>
> 3. dr_gw_lists:
> id(2)
> gwlist(2)
> description(Test)
>
> 4. dr_rules:
> ruleid(1)
> groupid(1)
> prefix(89112599077)
> timerec("")
> priority(1)
> routeid("")
> gwlist(#2)
> description(Test)
> attrs("")
>
>
> So, I'm calling from 100 at mydomain.com to 89112599077.
> I'm expecting that this will be routed to 192.168.0.10 with R-URI
> 100089112599077 at .. Right?
>
> But when I'm calling do_routing() the same INVITE is passed to the main
> route block and I'm again calling do_routing (Nothing changed in the script
> :)) and opensips is crashing...
>
> Log file hasn't helpful messages:
>
> [8031]: *** route[invite]: call do_routing()
> [8031]: DBG:core:db_new_result: allocate 28 bytes for result set at
> 0x81ddb78
> [8031]: DBG:db_mysql:db_mysql_get_columns: 1 columns returned from the query
> [8031]: DBG:core:db_allocate_columns: allocate 16 bytes for result columns
> at 0x81ddba4
> [8031]: DBG:db_mysql:db_mysql_get_columns: RES_NAMES(0x81ddba8)[0]=[groupid]
> [8031]: DBG:db_mysql:db_mysql_get_columns: use DB_INT result type
> [8031]: DBG:core:db_allocate_rows: allocate 28 bytes for result rows and
> values at 0x81ddbd0
> [8031]: DBG:db_mysql:db_mysql_str2val: converting INT [1]
> [8031]: DBG:core:db_free_columns: freeing result columns at 0x81ddba4
> [8031]: DBG:core:db_free_rows: freeing 1 rows
> [8031]: DBG:core:db_free_row: freeing row values at 0x81ddbd8
> [8031]: DBG:core:db_free_rows: freeing rows at 0x81ddbd0
> [8031]: DBG:core:db_free_result: freeing result set at 0x81ddb78
> [8031]: DBG:drouting:do_routing: using dr group 1
> [8031]: DBG:drouting:internal_check_rt: found rgid 1 (rule list 0xb60c0d0c)
> [8034]: DBG:tm:utimer_routine: timer routine:4,tl=0xb60c34b4 next=(nil),
> timeout=11900000
> [8034]: DBG:tm:retransmission_handler: retransmission_handler : request
> resending (t=0xb60c3368, INVITE si ... )
> [8034]: DBG:tm:set_timer: relative timeout is 2000000
> [8034]: DBG:tm:insert_timer_unsafe: [5]: 0xb60c34b4 (13900000)
> [8034]: DBG:tm:retransmission_handler: retransmission_handler : done
> [8032]: DBG:core:parse_msg: SIP Request:
> [8032]: DBG:core:parse_msg: method: <INVITE> (# The same INVITE is
> coming!)
>
> What I'm doing wrong?
>
>
More information about the Users
mailing list