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