Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to use sip registration with String text Number Password server and Port
i am using twilio twilio using web registration i don't need it
C#
  public async void OnInitialized ()
    {
        Console.WriteLine ("Twilio SDK is ready.");

        try {
            var client = new HttpClient ();
            var token = await client.GetStringAsync(");

            Device = Twilio.CreateDevice(token, null);

            var intent  = new Intent(context, typeof(MainActivity));
            var pendingIntent = PendingIntent.GetActivity(context, 0, intent, PendingIntentFlags.UpdateCurrent);

            Device.SetIncomingIntent(pendingIntent);

            Device.SetDeviceListener(this);

        } catch (Exception ex) {
            Console.WriteLine ("Error: " + ex.Message);
        }
    }
here is folowing code how it is registering but i wan tto register likee I ahve Pone number Number : 255 Password:15gfg2 ServerLoc:192.168.0.5 SIPPOrts:5060 
anyone help plz


What I have tried:

var client = new HttpClient ();
var token = await client.GetStringAsync("i treid here to take some stringed infos but not working again :/");
Posted
Updated 6-Apr-16 1:05am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900