[Kamailio-Users] uac_replace_from again

marius zbihlei marius.zbihlei at 1and1.ro
Wed Nov 4 15:06:47 CET 2009


>
>
>    if (is_method("INVITE"))
>    {
>        record_route();
>        uac_replace_from("sip:997321073 at xxxxxx.be");
>        rewritehost("xxxxxx.be");
>    }
>
>
>    if (has_totag()) {
>        if (loose_route()) {
>            if (is_method("BYE")) {
>                xlog("L_NOTICE", "------------------>  LOOSE route");
>                t_relay();
I think there are too many t_relay(). Just one will suffice.
    if(has_totag()){
          if(is_method("BYE")){
                xlog(......);
            }
          t_relay(); #relay all in-dialog messages (also BYEs)
          exit;
    }

Can you try with smth like this?

Cheers
Marius





More information about the sr-users mailing list