2015-08-21 2 views
0

Я получаю исходный код git для Windows Phone (linphone-wp). Я передаю все шаги из файла readme и успешно скомпилировал проект. Я использую Visual Studio 2013. Я развертываю приложение. Я могу получить доступ к любому экрану, но после того, как я ввожу правильные данные соединения для реального счета SIP и после успеха реестра с учетной записью SIP я получаю эту ошибку и приложение аварии:Linphone для Windows Phone Crash - System.Exception: сервер RPC недоступен. (Исключение из HRESULT: 0x800706BA)

{System.Exception: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) 
    at Linphone.Core.OutOfProcess.Server.get_LinphoneCore() 
    at Linphone.Model.LinphoneManager.get_LinphoneCore() 
    at Linphone.Dialer.IsAccountConfigured() 
    at Linphone.Dialer.BuildLocalizedApplicationBar() 
    at Linphone.Dialer.OnNavigatedTo(NavigationEventArgs e) 
    at Microsoft.Phone.Controls.PhoneApplicationPage.InternalOnNavigatedTo(NavigationEventArgs e) 
    at Microsoft.Phone.Controls.PhoneApplicationPage.Microsoft.Phone.Controls.IPhoneApplicationPage.InternalOnNavigatedToX(NavigationEventArgs e) 
    at System.Windows.Navigation.NavigationService.RaiseNavigated(Object content, Uri uri, NavigationMode mode, Boolean isNavigationInitiator, IPhoneApplicationPage existingContentPage, IPhoneApplicationPage newContentPage) 
    at System.Windows.Navigation.NavigationService.CompleteNavigation(DependencyObject content, NavigationMode mode) 
    at System.Windows.Navigation.NavigationService.<>c__DisplayClass7.<NavigateCore_StartNavigation>b__4()} 

После включения режима Native кода отладки:

First-chance exception at 0x6B319D91 (libantlr3c.dll) in HeadlessHost.exe: 0xC0000005: Access violation reading location 0x00000034. 
Unhandled exception at 0x6B319D91 (libantlr3c.dll) in HeadlessHost.exe: 0xC0000005: Access violation reading location 0x00000034. 

стек вызовов:

libantlr3c.dll!toStringSS(ANTLR3_TOKEN_STREAM_struct * ts, unsigned int start, unsigned int stop) Line 569 C 
libantlr3c.dll!toStringTT(ANTLR3_TOKEN_STREAM_struct * ts, ANTLR3_COMMON_TOKEN_struct * start, ANTLR3_COMMON_TOKEN_struct * stop) Line 584 C 
belle-sip_no_tunnel.dll!synpred1_belle_sip_message_fragment(belle_sip_messageParser_Ctx_struct * ctx) Line 202429 C 
belle-sip_no_tunnel.dll!synpred1_belle_sip_message(belle_sip_messageParser_Ctx_struct * ctx) Line 203391 C 
belle-sip_no_tunnel.dll!dfa2_sst(belle_sip_messageParser_Ctx_struct * ctx, ANTLR3_BASE_RECOGNIZER_struct * recognizer, ANTLR3_INT_STREAM_struct * is, ANTLR3_CYCLIC_DFA_struct * dfa, int s) Line 58555 C 
libantlr3c.dll!antlr3dfapredict(void * ctx, ANTLR3_BASE_RECOGNIZER_struct * rec, ANTLR3_INT_STREAM_struct * is, ANTLR3_CYCLIC_DFA_struct * cdfa) Line 99 C 
belle-sip_no_tunnel.dll!common_request(belle_sip_messageParser_Ctx_struct * ctx) Line 165724 C 
belle-sip_no_tunnel.dll!message_raw(belle_sip_messageParser_Ctx_struct * ctx, unsigned int * length) Line 165540 C 
belle-sip_no_tunnel.dll!belle_sip_message_parse_raw(const char * buff, unsigned int buff_length, unsigned int * message_length) Line 133 C 
belle-sip_no_tunnel.dll!belle_sip_channel_parse_stream(belle_sip_channel * obj, int end_of_stream) Line 509 C 
belle-sip_no_tunnel.dll!belle_sip_channel_process_stream(belle_sip_channel * obj, int eos) Line 543 C 
belle-sip_no_tunnel.dll!belle_sip_channel_process_read_data(belle_sip_channel * obj) Line 576 C 
belle-sip_no_tunnel.dll!belle_sip_channel_process_data(belle_sip_channel * obj, unsigned int revents) Line 598 C 
belle-sip_no_tunnel.dll!on_udp_data(belle_sip_udp_listening_point * lp, unsigned int events) Line 190 C 
belle-sip_no_tunnel.dll!belle_sip_main_loop_iterate(belle_sip_main_loop * ml) Line 448 C 
belle-sip_no_tunnel.dll!belle_sip_main_loop_run(belle_sip_main_loop * ml) Line 478 C 
belle-sip_no_tunnel.dll!belle_sip_main_loop_sleep(belle_sip_main_loop * ml, int milliseconds) Line 490 C 
belle-sip_no_tunnel.dll!belle_sip_stack_sleep(belle_sip_stack * stack, unsigned int milliseconds) Line 200 C 
LibLinphone_no_tunnel.dll!sal_iterate(Sal * sal) Line 745 C 
LibLinphone_no_tunnel.dll!linphone_core_iterate(_LinphoneCore * lc) Line 2608 C 
Linphone.Core.dll!Linphone::Core::LinphoneCore::IterateEnabled::set::__l12::<lambda>(Windows::Foundation::IAsyncAction^action) Line 1533 C++ 
Linphone.Core.dll!Platform::Details::__abi_FunctorCapture1<void <lambda>(Windows::Foundation::IAsyncAction ^),void,Windows::Foundation::IAsyncAction ^>::Invoke(Windows::Foundation::IAsyncAction^__arg0) Line 857 C++ 
[External Code] 
[Frames below may be incorrect and/or missing, no symbols loaded for THREADPOOLWINRT.DLL] 

Я попробовал на эмуляторах, а также на реальном устройстве (Lumia 640 XL WP8.1 Update 2), и я получаю ту же ошибку.

В журнале не содержится сообщений об ошибке.

Если я вхожу, допустим неверный пароль, будет получено сообщение «bad credentials». Авария происходит только после регистрации успеха на сервере SIP.

Пожалуйста, помогите мне исправить эту проблему. Любые советы приветствуются.

ответ

0

После некоторой длительной отладки я нашел причину проблемы. Этот вопрос связан с функциональностью толчка уведомления, настроенная в

Linphone-в.ч. \ Linphone \ App.xaml.cs

// Initialize the push channel 
InitPushChannel(); 

// Initialize the task to listen to incoming call notifications on the push channel 
InitHttpNotificationTask(); 

Я не использую услугу уведомления толчка, так Я прокомментировал приведенный выше код и решил проблему.