[OpenSIPS-Users] inbounts calls problems

Iñaki Baz Castillo ibc at aliax.net
Thu Jan 22 15:00:14 CET 2009


2009/1/22 pjgonzalez <pgonzalez at dgtec.net.do>:
>
> hi every body, im having problems when in my inbounts calls when i try to
> forward the  calls: for example.
>
> USER A(PSTN USER) calls User B (Behind Nat) then the calls is forwarded to
> User C (ON PSTN).
>
> the problem is that the calls is ringing on user B and User C so when i take
> the call its drop and hangup.
>
> i'm doing that:
>
> avp_pushto("$ru", "$avp(s:callForward)");
> append_branch();
> route(1);
>
> route[1]{
>
>        t_on_failure("1");
>        t_on_reply("1");
>        if (!t_relay()) {
>          sl_reply_error();
>        };
>        exit;
> }

If you do append_branch() then you are creating a new branch (ouh!) so
you are creating parallel forking. It's logic that both B and C ring.

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the Users mailing list