I am trying to route to a BroadVoice PSTN gateway using the UAC. In the failure_route the uac_auth command fails with the following errors:

ERROR:uac:parse_authenticate_body: parse error in <DIGEST realm="BroadWorks",algorithm=MD5,nonce="1133904594381"> around 0
ERROR:uac:uac_auth: failed to parse auth hdr body

code:

failure_route[3] {
        if( t_check_status("401|407") ) {
                if( uac_auth() ) {
                        append_branch();
                        route(1);
                }
        }
}


Thanks,