]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
the power of r
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 27 Mar 2008 17:38:30 +0000 (17:38 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 27 Mar 2008 17:38:30 +0000 (17:38 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7970 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 6ba5d96187789a06523a9d5d2d17179ecab62f81..ded7bfcaaac0cd93743f11a0fae3d26b8495042f 100644 (file)
@@ -940,7 +940,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
 
                rpid_domain = switch_core_session_strdup(session, use_from_str);
                sofia_glue_get_url_from_contact(rpid_domain, 0);
-               if ((rpid_domain = strchr(rpid_domain, '@'))) {
+               if ((rpid_domain = strrchr(rpid_domain, '@'))) {
                        rpid_domain++;
                        if ((p = strchr(rpid_domain, ';'))) {
                                *p = '\0';