[OpenSIPS-Users] dialplan/dp_translate not working as expected

Petr Man petr at madnetwork.org
Sun Aug 30 13:22:42 CEST 2009


Hello Bogdan,

I completely missed your answer. The set of rules I am using is to
match all outgoing sip uris starting with asterisk to go to
sipbroker.com. I used the same code Todd Bradley as did. The relevant
part of the log:

Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]: To user is:
sip:*512600 at madnetwork.org
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]: ruri.user is: *512600
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]: avp(s:dest) is: <null>
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]:
DBG:dialplan:dp_get_ivalue: integer value
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]:
DBG:dialplan:dp_translate_f: dpid is 1
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]:
DBG:dialplan:dp_get_svalue: searching 22
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]:
DBG:dialplan:dp_translate_f: input is sip:*512600 at madnetwork.org
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]:
DBG:dialplan:translate: regex operator testing
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]:
DBG:dialplan:test_match: test string sip:*512600 at madnetwork.org agai
nst a pattern (sip:\*[0-9]+)
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]:
DBG:dialplan:test_match: test_match:[0] sip:*512600
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]:
DBG:dialplan:test_match: test_match:[1] sip:*512600
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]:
DBG:dialplan:translate: found a matching rule 0xb599c160: pr 0, matc
h_exp (sip:\*[0-9]+)
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]:
DBG:dialplan:test_match: test string sip:*512600 at madnetwork.org agai
nst a pattern (sip:\*[0-9]+)
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]:
DBG:dialplan:test_match: test_match:[0] sip:*512600
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]:
DBG:dialplan:test_match: test_match:[1] sip:*512600
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]:
DBG:dialplan:dp_translate_f: input sip:*512600 at madnetwork.org with d
pid 1 => output sip:*512600
Aug 30 13:07:57 h1336642 /usr/sbin/opensips[15418]: The variable that
came out was sip:*512600

Thanks for help,

Petr


On Mon, Aug 24, 2009 at 12:31, Bogdan-Andrei
Iancu<bogdan at voice-system.ro> wrote:
> Hi Petr,
>
> Just to be sure you have the same problem, could you post the debug logs
> for the dialplan processing (use debug=8) ?
>
> Regards,
> Bogdan
>
> Petr Man wrote:
>> Hello list,
>>
>> I have been trying to bring my dialplan to life the whole night without
>> success. I am experiencing the same problem as the user in this post:
>> http://lists.opensips.org/pipermail/users/2009-June/006180.html
>> The last message suggests, that opensips should be upgraded to the
>> latest version. However I currently currently cannot do that. Is there
>> any workaround for this problem?
>> I am running opensips 1.4.1-tls (i386/linux) under opensuse 10.3.
>>
>> Petr
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list