[sr-dev] [kamailio/kamailio] [Branch 4.4] Cannot save location after resuming a transaction that has been paused by avapi_async_relay (#621)

Minh PHAN notifications at github.com
Sun May 15 01:44:42 CEST 2016


Console log:
_9(27) INFO: <script>: preparing to resume transaction for processing: 6118 / 1144728330 / resume_auth
9(27) ERROR: <script>: Saving location
9(27) ERROR: <core> [db.c:452]: db_use_table(): invalid parameter value
9(27) ERROR: usrloc [ucontact.c:1137]: db_update_ucontact_ruid(): sql use_table failed
9(27) ERROR: usrloc [ucontact.c:1658]: update_contact_db(): failed to update database
9(27) ERROR: registrar [save.c:776]: update_contacts(): failed to update contact_

Config script snipset:

```
route[authenticate] {
    if (!$aU) {
        xlog("REGISTER without aU = $aU");
        www_challenge("$fd", "0");
        exit;
    }
    evapi_async_relay("{'tindex': $T(id_index), 'tlabel': $T(id_label), 'method': 'authenticate', 'route': 'resume_auth',"
        "'data': { 'si': '$si', 'fU': '$fU', 'fd': '$fd', 'rU': '$rU', 'aU': '$aU', 'rd': '$rd' }"
        "}"
    );
    xlog("L_INFO", "suspended transaction: $T(id_index) / $T(id_label)\n");
    exit;
}

route[resume_auth] {
        xlog("Saving location\n");
        if (!save("location")) {
            sl_reply_error();
        }
        exit;
}

event_route[evapi:message-received] {
    xlog("received [$evapi(msg)] from $evapi(srcaddr):$evapi(srcport)\n");
    jansson_get("tindex", "$evapi(msg)", "$var(tindex)");
    jansson_get("tlabel", "$evapi(msg)", "$var(tlabel)");
    jansson_get("route", "$evapi(msg)", "$var(next_route)");
    xlog("L_INFO", "preparing to resume transaction for processing: $var(tindex) / $var(tlabel) / $var(next_route)\n");
    t_continue("$var(tindex)", "$var(tlabel)", "$var(next_route)");
}
```

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/621
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160514/0b172831/attachment.html>


More information about the sr-dev mailing list