[OpenSIPS-Users] Dialplan problem ?

Marcio Veloso Antunes mveloso at tecnologiaip.com.br
Sat Oct 23 01:31:01 CEST 2010


Hi Bogdan,

  The problem persists with the latest svn:
root at perseu:/var/log/opensips# opensips -V
version: opensips 1.6.3-notls (i386/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-
ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
svnrevision: 2:7318M
@(#) $Id: main.c 6169 2009-09-22 12:48:37Z bogdan_iancu $
main.c compiled on 20:48:32 Oct 22 2010 with gcc 4.2.4

root at perseu:/var/log/opensips# opensipsctl dialplan show
dialplan tables
 id | dpid | pr | match_op |       match_exp       | match_len |        subst_exp        | repl_exp | attrs 
----+------+----+----------+-----------------------+-----------+-------------------------+----------+-------
 22 |    1 |  1 |        1 | ^00[1-9][0-9]+        |         0 | ^0(0[1-9][0-9]+)        |         | 
 23 |    1 |  2 |        1 | ^00[1-9][1-9][0-9]{8} |         0 | ^0(0[1-9][1-9][0-9]{8}) |         | 
(2 rows)

The dialplan table is populated as you can see... but it still this way:
Oct 22 21:25:09 perseu /sbin/opensips[7530]: ----> TESTE
Oct 22 21:25:09 perseu /sbin/opensips[7530]: DBG:dialplan:dp_get_ivalue: integer value 
Oct 22 21:25:09 perseu /sbin/opensips[7530]: DBG:dialplan:dp_translate_f: dpid is 1 
Oct 22 21:25:09 perseu /sbin/opensips[7530]: DBG:dialplan:dp_get_svalue: searching 4  
Oct 22 21:25:09 perseu /sbin/opensips[7530]: DBG:dialplan:dp_translate_f: input is 002185392949 
Oct 22 21:25:09 perseu /sbin/opensips[7530]: DBG:dialplan:dp_translate_f: no information available for dpid 1 
Oct 22 21:25:09 perseu /sbin/opensips[7530]: ----> RESULTADO: <null>

Thanks again,
Marcio


Em Sex 22 Out 2010, às 14:01:46, Marcio Veloso Antunes escreveu:
> Hi Bogdan,
> 
> Em Sex 22 Out 2010, às 13:49:35, Bogdan-Andrei Iancu escreveu:
> > Hi Marcio,
> > 
> > first of all be sure you are using the latest SVN check out from 1.6
> > branch.
> 
> Ok, i'll do it and test again.
> 
> > What is really interesting in your case I do not see any err / warning
> > message...and the code is generating err/warn messages before destroying
> > the rule.
> > 
> > What is happening is that during the DB load, when a new rule is
> > processed, it is discarded due some issue, but this issue is not logged
> > .....
> 
> Is there a way to increase debug log level ?
> 
> > Don't you see any warning as:
> >     "failed to build rule -> skipping"
> 
> No, there is no such message.
> 
> 
> Thanks again,
> Marcio
> 
> > Marcio Veloso Antunes wrote:
> > > Hi,
> > > 
> > >   The dialplan still not working...
> > >   
> > >    Should i change for other version than OpenSIPS 1.6.3 ?
> > >   
> > >   Thanks in advance,
> > >   
> > >   Marcio
> > > 
> > > Em Qua 13 Out 2010, às 18:01:48, Marcio Veloso Antunes escreveu:
> > >> Hi Bogdan,
> > >> 
> > >>   Thanks for your fast reply...
> > >>   
> > >>   The version is 1.6.3. The strange thing is that it was working, but
> > >>   after
> > >> 
> > >> i entered new rules it stopped, and even after emptying the table and
> > >> reinserting just that 2 routes it still not working.
> > >> 
> > >>   I've tryed 'opensipsctl dialplan reload' but still not working.
> > >>   
> > >>   Silly question: Could this problem be related with 'id' column? I'am
> > >> 
> > >> asking based on the fact that initially it was working...
> > >> 
> > >>   Thanks again,
> > >>   Marcio
> > >> 
> > >> Em Qua 13 Out 2010, às 17:52:26, Bogdan-Andrei Iancu escreveu:
> > >>> Hi Marcio,
> > >>> 
> > >>> The answer is:
> > >>> 
> > >>> Oct 13 17:05:47 perseu /sbin/opensips[13077]:
> > >>> DBG:dialplan:build_rule: references:1 , max:1
> > >>> 
> > >>> Oct 13 17:05:47 perseu /sbin/opensips[13077]:
> > >>> DBG:dialplan:destroy_rule: destroying rule with priority 1
> > >>> 
> > >>> 
> > >>> It looks like opensips rejects the rules while loading them at
> > >>> startup, so basically you end up with no rule at runtime.
> > >>> 
> > >>> what opensips version are you using ?
> > >>> 
> > >>> Regards,
> > >>> Bogdan
> > >>> 
> > >>> Marcio Veloso Antunes wrote:
> > >>>> Hi guys,
> > >>>> 
> > >>>> Sorry to bother you, but i can't find the problem why this is not
> > >>>> working:
> > >>>> 
> > >>>> Actual dialplan:
> > >>>> 
> > >>>> root at perseu:/etc/opensips# opensipsctl dialplan show
> > >>>> 
> > >>>> dialplan tables
> > >>>> 
> > >>>> id | dpid | pr | match_op | match_exp | match_len | subst_exp |
> > >>>> repl_exp | attrs
> > >>>> 
> > >>>> ----+------+----+----------+-----------------------+-----------+----
> > >>>> -- - -- ----------------+----------+-------
> > >>>> 
> > >>>> 18 | 1 | 0 | 1 | ^00[1-9][0-9]+ | 0 | ^0(0[1-9][0-9]+) | \1 |
> > >>>> 
> > >>>> 19 | 1 | 1 | 1 | ^00[1-9][1-9][0-9]{8} | 0 | ^0(0[1-9][1-9][0-9]{8})
> > >>>> | \1 |
> > >>>> 
> > >>>> (2 rows)
> > >>>> 
> > >>>> String being tested: '002185392949'
> > >>>> 
> > >>>> 
> > >>>> --------------------------------------------------------------------
> > >>>> -- - -
> > >>>> 
> > >>>> _______________________________________________
> > >>>> Users mailing list
> > >>>> Users at lists.opensips.org
> > >>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-- 
Marcio Veloso Antunes
Tecnologia IP Ltda
+55.21.3005.3004 ext. 106
+55.11.3588.0802 ext. 106
+55.21.8539.2949 (mobile)



More information about the Users mailing list