Hello Daniel,

I have tried without append_branch(); and it just don't create the new branch and it sends back the 486 message to the UAC that originated the call:

if (t_check_status("486|408")) {
               
        revert_uri();       
        prefix("voicemail");       
        remove_hf("P-App-Name");
        append_hf("P-App-Name: voicemail\r\n");
        append_hf("P-App-Param: mod=box;usr= $rU;dom=sipproxy.a.com;uid=$rU;did=sipproxy.a.com;\r\n");        
        rewritehostport("192.168.0.197:5080");
        $du = $null;
        #$du = "sip:192.168.0.197";
        #append_branch();
        t_relay();
       
    }
}

|Time     | 192.168.3.20                          | 192.168.0.167                         |
|         |                   | 192.168.0.197     |                  
|3,415    |         INVITE SDP ( telephone-event)          |                   |SIP From: sip:4095@192.168.0.197 To:sip:4440@192.168.0.197
|         |(5060)   ------------------>  (5060)   |                   |
|3,420    |         407 Proxy Authentication Required          |                   |SIP Status
|         |(5060)   <------------------  (5060)   |                   |
|3,422    |         ACK       |                   |                   |SIP Request
|         |(5060)   ------------------>  (5060)   |                   |
|3,422    |         INVITE SDP ( telephone-event)          |                   |SIP From: sip:4095@192.168.0.197 To:sip:4440@192.168.0.197
|         |(5060)   ------------------>  (5060)   |                   |
|3,435    |         100 trying -- your call is important to us          |                   |SIP Status
|         |(5060)   <------------------  (5060)   |                   |
|3,436    |                   |         INVITE SDP ( telephone-event)          |SIP Request
|         |                   |(5060)   ------------------>  (5060)   |
|3,437    |                   |         100 Trying|                   |SIP Status
|         |                   |(5060)   <------------------  (5060)   |
|3,437    |                   |         486 Busy Here                 |SIP Status
|         |                   |(5060)   <------------------  (5060)   |
|3,441    |                   |         ACK       |                   |SIP Request
|         |                   |(5060)   ------------------>  (5060)   |
|3,459    |         486 Busy Here                 |                   |SIP Status
|         |(5060)   <------------------  (5060)   |                   |
|3,461    |         ACK       |                   |                   |SIP Request
|         |(5060)   ------------------>  (5060)   |                   |

Regards

Luis


2013/7/25 Daniel Tryba <daniel@pocos.nl>
On Wednesday 24 July 2013 20:41:04 LAA wrote:
> May be I'm loosing something. I have changed my config as you
> suggested (I thing so...):
>
> if (t_check_status("486|408")) {
...
>         $du = $null;
>         #$du = "sip:192.168.0.197";
>         append_branch();
>         t_relay();


Did you try without the append_branch()?

--

POCOS B.V. - Croy 9c - 5653 LC Eindhoven
Telefoon: 040 293 8661 - Fax: 040 293 8658
http://www.pocos.nl/   - http://www.sipo.nl/
K.v.K. Eindhoven 17097024