diff options
-rwxr-xr-x | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 412dac3f2..d71c0f538 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1490,7 +1490,7 @@ static int create_addr(struct sip_pvt *r, char *opeer) ast_copy_string(r->fullcontact, p->fullcontact, sizeof(r->fullcontact)); if (!r->initreq.headers && !ast_strlen_zero(p->fromdomain)) { if ((callhost = strchr(r->callid, '@'))) { - ast_copy_string(callhost + 1, p->fromdomain, sizeof(r->callid) - (callhost - r->callid) - 2); + ast_copy_string(callhost + 1, p->fromdomain, sizeof(r->callid) - (callhost - r->callid) - 1); } } if (ast_strlen_zero(r->tohost)) { |