don't put @ in from string if there is no user part.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5029 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-04-27 20:36:34 +00:00
parent 2925ed8ac8
commit e90d03805d
1 changed files with 4 additions and 2 deletions

View File

@ -474,9 +474,11 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
sofia_glue_tech_prepare_codecs(tech_pvt);
if (!tech_pvt->from_str) {
tech_pvt->from_str = switch_core_session_sprintf(tech_pvt->session, "\"%s\" <sip:%s@%s>",
tech_pvt->from_str = switch_core_session_sprintf(tech_pvt->session, "\"%s\" <sip:%s%s%s>",
cid_name,
cid_num, tech_pvt->profile->extsipip ? tech_pvt->profile->extsipip : tech_pvt->profile->sipip);
cid_num,
!switch_strlen_zero(cid_num) ? "@" : "",
tech_pvt->profile->extsipip ? tech_pvt->profile->extsipip : tech_pvt->profile->sipip);
}