List Info

Thread: Unconditional Call Forward help...




Unconditional Call Forward help...
country flaguser name
Norway
2007-04-24 09:01:00
I need CFU on our systems, however - it seems to work but if
the forwarded
call isn't picked up within a time limit the system just
drops the call.

My script is something like this;

(...)
loadmodule "tm.so"
modparam ("tm", "fr_timer", 30)
modparam ("tm", "fr_inv_timer", 10)

route{
	xlog("L_INFO", "Route - $fu $rm $ru");
	t_on_failure("1");

      (... Some tweaking ...)

      t_relay();
}

failure_route[1] {
      if (!t_was_cancelled()) {
      	xlog("L_INFO","Failure_route[1] -
redirect to callcentre");
            seturi("sip:callcentrelocalhost");
            append_branch();
            t_relay();
      };
      return;
}

So what happens is this;
I call a number... After 10 seconds the call
"fails" and failure_route is
invoked, whereupon the call is "redirected" to the
new uri. It rings for 10
seconds and then the the call is just terminated... (no call
to
failure_route)...

The log looks like this;
15:30:00 Route sip:useralocalhost INVITE
sip:userblocalhost
15:30:10 Failure_route[1] - redirect to callcentre
15:30:20 Route sip:useralocalhost ACK sip:userblocalhost

Any ideas? Typically I would like for the 2dn call to ring
indefinitely...

// sip:gojensenuninett.no | h323: 004710012
   pstn: +47 73 55 79 23   | fax: +47 73 55 79 01 


_______________________________________________
Users mailing list
Usersopenser.org
htt
p://openser.org/cgi-bin/mailman/listinfo/users

Re: Unconditional Call Forward help...
user name
2007-04-24 09:10:05
Hi Geir,

You will  need to play with the fr_inv_timer after the call
is forwarded.
You can achieve this by using avps:

http://openser.org/docs/modules/1.2.x/tm.html#AEN249


Regards,
Ovidiu Sas

On 4/24/07, Geir O. Jensen <geir.o.jensenuninett.no> wrote:
> I need CFU on our systems, however - it seems to work
but if the forwarded
> call isn't picked up within a time limit the system
just drops the call.
>
> My script is something like this;
>
> (...)
> loadmodule "tm.so"
> modparam ("tm", "fr_timer", 30)
> modparam ("tm", "fr_inv_timer",
10)
>
> route{
>         xlog("L_INFO", "Route - $fu $rm
$ru");
>         t_on_failure("1");
>
>       (... Some tweaking ...)
>
>       t_relay();
> }
>
> failure_route[1] {
>       if (!t_was_cancelled()) {
>         xlog("L_INFO","Failure_route[1]
- redirect to callcentre");
>             seturi("sip:callcentrelocalhost");
>             append_branch();
>             t_relay();
>       };
>       return;
> }
>
> So what happens is this;
> I call a number... After 10 seconds the call
"fails" and failure_route is
> invoked, whereupon the call is "redirected"
to the new uri. It rings for 10
> seconds and then the the call is just terminated... (no
call to
> failure_route)...
>
> The log looks like this;
> 15:30:00 Route sip:useralocalhost INVITE
sip:userblocalhost
> 15:30:10 Failure_route[1] - redirect to callcentre
> 15:30:20 Route sip:useralocalhost ACK sip:userblocalhost
>
> Any ideas? Typically I would like for the 2dn call to
ring indefinitely...
>
> // sip:gojensenuninett.no | h323: 004710012
>    pstn: +47 73 55 79 23   | fax: +47 73 55 79 01
>
>
> _______________________________________________
> Users mailing list
> Usersopenser.org
> htt
p://openser.org/cgi-bin/mailman/listinfo/users
>

_______________________________________________
Users mailing list
Usersopenser.org
htt
p://openser.org/cgi-bin/mailman/listinfo/users

RE: Unconditional Call Forward help...
country flaguser name
Norway
2007-04-24 09:36:50
> You will  need to play with the fr_inv_timer after the
call 
> is forwarded.
> You can achieve this by using avps:
> 
http://openser.org/docs/modules/1.2.x/tm.html#AEN249
> 
Ack. I don't like AVPS 
Further, as you all may have realized, I was
trying to do call forward on busy and not CFU  ...

As you see I'm not using fr_inv_timer_avp but I would think
doing something
like

modparam("tm", "fr_inv_timer_avp",
"$avp(i:99)")

And then in the failure route before t_relay()
	$avp(i:99) = 120;

And it did 

My next question of course becomes, what happens when this
timesout?! As I
said initially I only get one call to failure_route, so
apparently when
failure_route fails it just dies?

Regards,
Geir
// sip:gojensenuninett.no | h323: 004710012
   pstn: +47 73 55 79 23   | fax: +47 73 55 79 01 


_______________________________________________
Users mailing list
Usersopenser.org
htt
p://openser.org/cgi-bin/mailman/listinfo/users

RE: Unconditional Call Forward help...
user name
2007-04-24 09:40:15
Geir O. Jensen writes:

 > My next question of course becomes, what happens when
this timesout?! As I
 > said initially I only get one call to failure_route,
so apparently when
 > failure_route fails it just dies?

geir,

if you have not set a new t_on_failure in your failure
route, then the
failure will be passed on to the caller.

-- juha

_______________________________________________
Users mailing list
Usersopenser.org
htt
p://openser.org/cgi-bin/mailman/listinfo/users

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )