[OpenSIPS-Users] 2 dialplan issues: simple strip\prefix cases and execution with drouting use_next_gw function

Ricardo Martins rpoppi77 at gmail.com
Wed Jul 8 18:51:11 CEST 2009


Hi all! I've been working a quite time with dialplan module and need 
some orientation from more experienced users. On one case, I need to 
strip some digits depending on the dial prefix and on the other case I 
need to subst some digits with 0 or 00.

I could make the subst case to work, replacing the starting 55 with 0, 
using the following rule:
match: ^55+
subst: ^(55)(.+)
repl: 0\2

But,

1) I could not make the simple strip or prefix case do work. How can I 
simply strip or add more digits (without replacing anything) from uri 
using dialplan module? I need to do this using dialplan module because 
it's necessary for my design to diferenciate dialplan IDs (depending on 
the provider) and to strip digits based on called prefix (diferenciating 
number of strip digits for long distance and local calls, for example).

2) I had problems using dialplan combined with use_next_gw function from 
drouting module. When a new gateway is used, the digits inserted by 
dialplan are not reseted. I tryied using revert_uri function before 
calling use_next_gw function but had no effect. Do anybody has some 
cases using dialplan and use_next_gw togheter?

Regards!

Ricardo.



More information about the Users mailing list