예제 #1
0
        public MySipStack(SipCallback callback, String realmUri, String impiUri, String impuUri)
        {
#if WINDOWS_PHONE
            mSipStack = org.doubango.WindowsPhone.BackgroundProcessController.Instance.rtSipStackNew(callback, realmUri, impiUri, impuUri);
#else
            mSipStack = new SipStack(callback, realmUri, impiUri, impuUri);
#endif
            // Sip headers
            mSipStack.addHeader("Allow", "INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER");
            mSipStack.addHeader("Privacy", "none");
            mSipStack.addHeader("P-Access-Network-Info", "ADSL;utran-cell-id-3gpp=00000000");
            mSipStack.addHeader("User-Agent", String.Format("IM-client/OMA1.0 Boghe-{0}/v{1}",
#if WINRT
                                                            "WinRT"
#else
                                                            "Win32"
#endif
                                                            , System.Reflection.Assembly.GetExecutingAssembly().GetName().Version));
        }
예제 #2
0
 public MySipStack(SipCallback callback, String realmUri, String impiUri, String impuUri)
 {
     #if WINDOWS_PHONE
     mSipStack = org.doubango.WindowsPhone.BackgroundProcessController.Instance.rtSipStackNew(callback, realmUri, impiUri, impuUri);
     #else
     mSipStack = new SipStack(callback, realmUri, impiUri, impuUri);
     #endif
      // Sip headers
     mSipStack.addHeader("Allow", "INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER");
     mSipStack.addHeader("Privacy", "none");
     mSipStack.addHeader("P-Access-Network-Info", "ADSL;utran-cell-id-3gpp=00000000");
     mSipStack.addHeader("User-Agent", String.Format("IM-client/OMA1.0 Boghe-{0}/v{1}",
     #if WINRT
         "WinRT"
     #else
         "Win32"
     #endif
             ,System.Reflection.Assembly.GetExecutingAssembly().GetName().Version));
 }