diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-02-19 15:37:19 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-02-19 15:37:19 +0000 |
commit | 51f0bc5a46378786d98caf84df2cf31bb169e45b (patch) | |
tree | e17a65e4ebdf98d4f46857f51d26afe7f1fb2aa7 /pjsip/src/pjsua/pjsua_inv.c | |
parent | c1fa8a21eda0357a8c25a63b634615f6785e4d48 (diff) |
SIMPLE test with FWD, and added more info in UI
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@201 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsua/pjsua_inv.c')
-rw-r--r-- | pjsip/src/pjsua/pjsua_inv.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/pjsip/src/pjsua/pjsua_inv.c b/pjsip/src/pjsua/pjsua_inv.c index 6f9607b5..bfd714b1 100644 --- a/pjsip/src/pjsua/pjsua_inv.c +++ b/pjsip/src/pjsua/pjsua_inv.c @@ -53,7 +53,7 @@ pj_status_t pjsua_invite(const char *cstr_dest_uri, &pjsua.contact_uri, &dest_uri, &dest_uri, &dlg); if (status != PJ_SUCCESS) { - pjsua_perror("Dialog creation failed", status); + pjsua_perror(THIS_FILE, "Dialog creation failed", status); return status; } @@ -62,7 +62,7 @@ pj_status_t pjsua_invite(const char *cstr_dest_uri, status = pjmedia_endpt_create_sdp( pjsua.med_endpt, dlg->pool, 1, &pjsua.med_skinfo, &offer); if (status != PJ_SUCCESS) { - pjsua_perror("pjmedia unable to create SDP", status); + pjsua_perror(THIS_FILE, "pjmedia unable to create SDP", status); goto on_error; } @@ -70,7 +70,7 @@ pj_status_t pjsua_invite(const char *cstr_dest_uri, status = pjsip_inv_create_uac( dlg, offer, 0, &inv); if (status != PJ_SUCCESS) { - pjsua_perror("Invite session creation failed", status); + pjsua_perror(THIS_FILE, "Invite session creation failed", status); goto on_error; } @@ -99,7 +99,8 @@ pj_status_t pjsua_invite(const char *cstr_dest_uri, status = pjsip_inv_invite(inv, &tdata); if (status != PJ_SUCCESS) { - pjsua_perror("Unable to create initial INVITE request", status); + pjsua_perror(THIS_FILE, "Unable to create initial INVITE request", + status); goto on_error; } @@ -108,7 +109,8 @@ pj_status_t pjsua_invite(const char *cstr_dest_uri, status = pjsip_inv_send_msg(inv, tdata, NULL); if (status != PJ_SUCCESS) { - pjsua_perror("Unable to send initial INVITE request", status); + pjsua_perror(THIS_FILE, "Unable to send initial INVITE request", + status); goto on_error; } @@ -301,7 +303,7 @@ void pjsua_inv_on_media_update(pjsip_inv_session *inv, pj_status_t status) if (status != PJ_SUCCESS) { - pjsua_perror("SDP negotiation has failed", status); + pjsua_perror(THIS_FILE, "SDP negotiation has failed", status); return; } @@ -318,14 +320,18 @@ void pjsua_inv_on_media_update(pjsip_inv_session *inv, pj_status_t status) status = pjmedia_sdp_neg_get_active_local(inv->neg, &local_sdp); if (status != PJ_SUCCESS) { - pjsua_perror("Unable to retrieve currently active local SDP", status); + pjsua_perror(THIS_FILE, + "Unable to retrieve currently active local SDP", + status); return; } status = pjmedia_sdp_neg_get_active_remote(inv->neg, &remote_sdp); if (status != PJ_SUCCESS) { - pjsua_perror("Unable to retrieve currently active remote SDP", status); + pjsua_perror(THIS_FILE, + "Unable to retrieve currently active remote SDP", + status); return; } @@ -340,7 +346,8 @@ void pjsua_inv_on_media_update(pjsip_inv_session *inv, pj_status_t status) local_sdp, remote_sdp, &inv_data->session ); if (status != PJ_SUCCESS) { - pjsua_perror("Unable to create media session", status); + pjsua_perror(THIS_FILE, "Unable to create media session", + status); return; } |