[Users] failure_route problem
Klaus Darilion
klaus.mailinglists at pernau.at
Fri May 25 11:33:22 CEST 2007
openser uses syslog logging. The destination of the logs is distribution
dependent. E.g. debian based -->/var/log/syslog, redhat based -->
/var/log/messages.
Read
http://openser.org/dokuwiki/doku.php/tutorials:debug-syslog-messages for
details about to configure logging.
regards
klaus
ps: please cc the list
Yago Bargalló wrote:
> Sorry, but I've tried to use xlog but I don't know where logs are printed. In which file does logs saved??
>
> Thanks...!!
>
>
> -----Mensaje original-----
> De: Klaus Darilion [mailto:klaus.mailinglists at pernau.at]
> Enviado el: jueves, 24 de mayo de 2007 14:42
> Para: Yago Bargalló
> CC: users at openser.org
> Asunto: Re: [Users] failure_route problem
>
> Add xlog statements to your config and watch syslog. This is how you can
> trace if the failure route is executed. Further you can set debug=4 to
> see debug messages of openser.
>
> Further watch the SIP traffic using ngrep and dump it here
>
> regards
> klaus
>
>
>
>
> Yago Bargalló wrote:
>> Hello,
>>
>> First of all thaks to Kraus for his quick reply on my last question. However I can't do openser work fine.
>>
>> I'm trying to use failure_route as follows, can anybody tell me which could be the problem??
>>
>>
>>
>> (...)
>>
>> modparam("tm", "fr_inv_timer" , 10)
>>
>>
>>
>> # timer for response to a request
>>
>> modparam("tm","fr_timer", 4)
>>
>>
>>
>>
>>
>> # ------------------------- request routing logic -------------------
>>
>>
>>
>> # main routing logic
>>
>>
>>
>> route{
>>
>> (...)
>>
>> if (uri==myself) {
>>
>> (...)
>>
>> # Redirecciono cap a l'asterisk si marquen una extensió que comença per 3
>>
>>
>>
>> if(uri=~"sip:2[0-9]+@" && method=="INVITE") {
>>
>> t_on_failure("1");
>>
>> }
>>
>> (...)
>>
>> route(1);
>>
>> }
>>
>>
>>
>>
>>
>> route[1] {
>>
>> # send it out now; use stateful forwarding as it works reliably
>>
>> # even for UDP2TCP
>>
>> if (!t_relay()) {
>>
>> sl_reply_error();
>>
>> };
>>
>> exit;
>>
>> }
>>
>>
>>
>> failure_route[1]{
>>
>> rewritehostport("172.16.51.160"); #asterisk
>>
>> rewriteuser("2002");
>>
>> append_branch();
>>
>> t_relay();
>>
>> exit;
>>
>> }
>>
>>
>>
>>
>>
>> With this openser.cfg the call is cancelled after fr_inv_timer and failure_route[1] doesn't work but, however, if I do this:
>>
>>
>>
>> route{
>>
>> (...)
>>
>> if (uri==myself) {
>>
>> (...)
>>
>> # Redirecciono cap a l'asterisk si marquen una extensió que comença per 3
>>
>>
>>
>> if(uri=~"sip:2[0-9]+@" && method=="INVITE") {
>>
>> à rewritehostport("172.16.51.160"); #asterisk
>>
>> à rewriteuser("2002");
>>
>> t_relay();
>>
>> exit;
>>
>> }
>>
>> (...)
>>
>> route(1);
>>
>> }
>>
>>
>>
>> If I use this the call is redirected to my asterisk but using the failure_route as my first openser.cfg it does't work.
>>
>>
>>
>> Which is my problem??
>>
>>
>>
>> Thanks....
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>
>
More information about the Users
mailing list