[OpenSIPS-Users] my problems getting dialplan to work
Wesley Volcov
wesley at voicetechnology.com.br
Mon Jan 18 16:59:26 CET 2010
Hello Bogdan!
I think you could not see the repl_exp value because the "line break", this
value is my email address (I'm using nabble.com and hiden the email).
About debud level, I'm already using debug = 4, but It's not working anyway.
I tested with debug =9, but the log appears the same.
When I start opensips I can see a strange log:
Jan 15 16:01:07 localhost opensips[23064]: ERROR:dialplan:trex_charnode:
TREX error letter expected
Jan 15 16:01:07 localhost opensips[23064]: ERROR:dialplan:trex_compile:
compilation error [letter expected]!
Jan 15 16:01:07 localhost opensips[23064]: ERROR:dialplan:build_rule: failed
to compile subst expression
Jan 15 16:01:07 localhost opensips[23064]: WARNING:dialplan:dp_load_db:
failed to build rule -> skipping
I've deleted all data in dialplan table, but it's still happening.
Regards,
Wesley
Bogdan-Andrei Iancu wrote:
>
> Hi Wesley,
>
> if you set debug = 4, you will get a all the debug messages from the
> module. It will give you some hints if at least is matching any rule.
>
> But what I found strange is that tat the replt_exp field is empty ->
> that is the part to be returned .
>
> Regards,
> Bogdan
>
> Wesley Volcov wrote:
>> Hello Bogdan,
>>
>> I made the exemple you wrote above.
>>
>> My script:
>> $var(x) = "sip:061111";
>> dp_translate("1", "$var(x)/$var(tmp)");
>> xlog("-------------$var(tmp)\n");
>>
>> My database:
>> mysql> select * from dialplan;
>> +----+------+----+----------+------------+-----------+------------+-------------------------------+-------+
>> | id | dpid | pr | match_op | match_exp | match_len | subst_exp |
>> repl_exp
>> | attrs |
>> +----+------+----+----------+------------+-----------+------------+-------------------------------+-------+
>> | 1 | 1 | 0 | 1 | (sip:06.+) | 0 | (sip:06.+) |
>> wesley at voicetechnology.com.br | 0 |
>> +----+------+----+----------+------------+-----------+------------+-------------------------------+-------+
>> 1 row in set (0.00 sec)
>>
>> My log file:
>> Jan 15 15:30:11 localhost opensips[22981]: -------------0
>>
>> I have no log of dialplan module. Is there some configuration to active
>> this
>> module debug ?
>>
>> Regards,
>>
>> Wesley.
>>
>>
>
>
> --
> Bogdan-Andrei Iancu
> www.voice-system.ro
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
--
View this message in context: http://n2.nabble.com/my-problems-getting-dialplan-to-work-tp3081563p4414342.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
More information about the Users
mailing list