diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-08-09 13:53:59 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-08-09 13:53:59 +0000 |
commit | e8b11d39cd89a716e3580db2b0dc4fca2412cd22 (patch) | |
tree | 7dc79e5d0b0049904dcd5d954376c6e8fe8d431d /pjsip-apps/src/samples/pjsip-perf.c | |
parent | 5b11a53fd76ef35ac96bf86ed973f53dc342f52c (diff) |
Fixed run-time bug with simple_ua and pjsip-perf sample.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@668 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/samples/pjsip-perf.c')
-rw-r--r-- | pjsip-apps/src/samples/pjsip-perf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pjsip-apps/src/samples/pjsip-perf.c b/pjsip-apps/src/samples/pjsip-perf.c index 791c1c8e..5ec44af7 100644 --- a/pjsip-apps/src/samples/pjsip-perf.c +++ b/pjsip-apps/src/samples/pjsip-perf.c @@ -396,6 +396,8 @@ static void answer_timer_cb(pj_timer_heap_t *h, pj_timer_entry *entry) struct call *call = entry->user_data; pj_bool_t has_initial = PJ_TRUE; + PJ_UNUSED_ARG(h); + entry->id = 0; send_response(call->inv, NULL, 200, &has_initial); } @@ -532,7 +534,7 @@ static pj_bool_t mod_call_on_rx_request(pjsip_rx_data *rdata) } else { /* Send the 200 response immediately . */ - status = pjsip_inv_send_msg(call->inv, tdata); + status = send_response(call->inv, rdata, 200, &has_initial); PJ_ASSERT_ON_FAIL(status == PJ_SUCCESS, return PJ_TRUE); } |