[SR-Users] Redirection fails
Pepe
pepenai at gmail.com
Wed Apr 25 13:12:33 CEST 2012
The problem was the NAT, now works.
I'll try to force the rtp proxy.
Thanks a lot
Regards
2012/4/25 Daniel-Constantin Mierla <miconda at gmail.com>
> Hello,
>
> perhaps you don't force the rtp proxy properly for the branches. Try to
> force rtp proxy always just to see if it works, then look to see when you
> don't do it.
>
> If you can paste the ngrep output for such call here, we can see if the
> rtpproxy is not engaged properly and for which branch.
>
> Cheers,
> Daniel
>
>
> On 4/25/12 10:55 AM, Pepe wrote:
>
> Hi, since few days ago I have many problems with the redirections in
> kamailio (3.1.1).
>
> The blind forwarding works fine, but the redirection don't.
>
> Here's my code:
>
> failure_route[FAIL_ONE] {
> xlog("L_INFO", "entering failure_route for reply code $T_reply_code\n");
>
> if (is_method("INVITE") && (isbflagset(FLB_NATB) ||
> isflagset(FLT_NATS))) {
> unforce_rtp_proxy();
> }
>
> if (t_is_canceled()) {
> exit;
> }
>
> if (t_check_status("486|408|302"))
> {
> xlog("L_NOTICE", "r[FAIL] / &ru TimeOut or Busy\n");
>
> if(avp_db_load("$ru/username","$avp(s:callbusy)"))
> {
> xlog("L_NOTICE", "Callbusy activado!\n");
> avp_pushto ("$ru","$avp(s:callbusy)");
> xlog("Redireccionando a $ru");
> km_append_branch();
> route(CONSISTENCIA);
> }
> t_relay();
> }
> }
>
> route[CONSISTENCIA]
> {
> xlog("L_NOTICE", "KAM-INFO: r[CONSISTENCIA] / - CONSISTENCY FOR
> FORWARDINGS \n");
> route(NAT);
> route(ALIAS);
> }
>
> When I make a call to a contact that is using the phone in this moment, i
> receive a 302 status code, instead of 486.
>
> The big problem is this, I make the call, the forwarding works well and
> call rings in the right destination but i can't hear anything until the
> primary destination terminates the call.
>
> Any help will be apreciated.
>
> Best regards.
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120425/af359817/attachment.htm>
More information about the sr-users
mailing list