git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46116
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
return -1;
}
c += 4;
+ if ((a = strchr(c, ';'))) /* Remove arguments */
+ *a = '\0';
+
if ((a = strchr(c, '@'))) { /* Separate Domain */
*a++ = '\0';
ast_copy_string(referdata->refer_to_domain, a, sizeof(referdata->refer_to_domain));
}
- if ((a = strchr(c, ';'))) /* Remove arguments */
- *a = '\0';
-
if (sip_debug_test_pvt(p))
ast_verbose("Looking for %s in %s\n", c, p->context);