Module: sip-router Branch: admorten/sca Commit: c0f347623f92756c6a5261589fdbf54328a6d3ac URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c0f34762...
Author: Andrew Mortensen admorten@isc.upenn.edu Committer: Andrew Mortensen admorten@isc.upenn.edu Date: Tue Apr 30 23:31:12 2013 -0400
modules/sca: space-separate dialog tags in sca.all_appearances output
---
modules/sca/sca_rpc.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/modules/sca/sca_rpc.c b/modules/sca/sca_rpc.c index 8bc5ac9..79ac7d0 100644 --- a/modules/sca/sca_rpc.c +++ b/modules/sca/sca_rpc.c @@ -358,14 +358,18 @@ sca_rpc_show_all_appearances( rpc_t *rpc, void *ctx ) app_list = (sca_appearance_list *)ent->value; for ( app = app_list->appearances; app != NULL; app = app->next ) { sca_appearance_state_to_str( app->state, &state_str ); - rc = rpc->printf( ctx, "%.*s %d %.*s %ld %.*s %.*s %.*s", + rc = rpc->printf( ctx, "%.*s %d %.*s %ld %.*s %.*s " + "%.*s %.*s %.*s", STR_FMT( &app_list->aor ), app->index, STR_FMT( &state_str ), (long)app->times.mtime, STR_FMT( &app->owner ), STR_FMT( &app->callee ), - STR_FMT( &app->dialog.id )); + STR_FMT( &app->dialog.call_id ), + STR_FMT( &app->dialog.from_tag ), + STR_FMT( &app->dialog.to_tag )); + if ( rc < 0 ) { /* make sure we unlock below */ goto error;