]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Added setting of outgoing number and display name from extension number so H.323...
authorRobert Joly <rjoly@nortel.com>
Thu, 17 Sep 2009 13:48:38 +0000 (13:48 +0000)
committerRobert Joly <rjoly@nortel.com>
Thu, 17 Sep 2009 13:48:38 +0000 (13:48 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14900 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_opal/mod_opal.cpp

index 6003930d106d603213a4c0afc4e66cc3fc6608f1..96d2fb3f7c120ca398d6438a1058d33e213f7de5 100644 (file)
@@ -983,6 +983,25 @@ switch_status_t FSConnection::receive_message(switch_core_session_message_t *msg
     case SWITCH_MESSAGE_INDICATE_AUDIO_SYNC:\r
         switch_channel_set_private_flag(channel, CF_NEED_FLUSH);\r
         break;\r
+\r
+    case SWITCH_MESSAGE_INDICATE_RINGING:\r
+    case SWITCH_MESSAGE_INDICATE_PROGRESS:\r
+    case SWITCH_MESSAGE_INDICATE_ANSWER:\r
+        {\r
+            switch_caller_profile_t * profile = switch_channel_get_caller_profile(channel);\r
+            if (profile != NULL && profile->caller_extension != NULL)\r
+            {\r
+                PSafePtr<OpalConnection> other = GetOtherPartyConnection();\r
+                if (other != NULL) {\r
+                    other->SetLocalPartyName(profile->caller_extension->extension_number);\r
+                    other->SetDisplayName(profile->caller_extension->extension_name);\r
+                }\r
+                SetLocalPartyName(profile->caller_extension->extension_number);\r
+                SetDisplayName(profile->caller_extension->extension_name);\r
+            }\r
+        }\r
+        break;\r
+\r
     default:\r
         break;\r
     }\r