summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/pjsua/winrt/gui/uwp/Voip/MainPage.xaml
blob: 8059085125146945e7bc8c73dda691f26755d537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<Page
    x:Class="VoipUI.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:VoipUI"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
          Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <StackPanel Grid.Row="0">
            <TextBlock FontSize="12" Text="Pjsua Sample App" Margin="5"/>
            <TextBox x:Name="txt_CallerName"  Text="Test Account" Margin="5"/>
            <TextBox x:Name="txt_CallerNumber" Text="sip:192.168.0.103:6000" Margin="5"/>
        </StackPanel>

        <StackPanel Grid.Row="1">
            <Grid HorizontalAlignment="Center">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="165"/>
                    <ColumnDefinition Width="165"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>

                <Button x:Name="btn_NewOutgoingCall" 
                        Grid.Column="0" Grid.Row="0" 
                        Content="Make Call" 
                        HorizontalAlignment="Left"  VerticalAlignment="Top" 
                        Width="150" Height="40" 
                        Margin="5"
                        Click="btn_NewOutgoingCall_Click"/>
                <Button x:Name="btn_EndCall" Grid.Column="1"  Grid.Row="0" Content="End Call" 
                        HorizontalAlignment="Left"  VerticalAlignment="Top" 
                        Width="150" Height="40" 
                        Margin="5" Click="btn_EndCall_Click"/>

                <TextBlock x:Name="label1" Grid.Column="0"  Grid.Row="1" 
                        HorizontalAlignment="Left"  VerticalAlignment="Center" 
                        Width="150" Height="40" 
                        Text="User Id"
                        Margin="10,5,5,5"/>

                <TextBox x:Name="txt_UserId" Grid.Column="1"  Grid.Row="1"
                        HorizontalAlignment="Right"  VerticalAlignment="Center" 
                        Width="150" Height="40" 
                        Margin="5" IsEnabled="True"/>

                <TextBlock x:Name="label2" Grid.Column="0"  Grid.Row="2" 
                        HorizontalAlignment="Left"  VerticalAlignment="Center" 
                        Width="150" Height="40" 
                        Text="Registrar"
                        Margin="10,5,5,5"/>

                <TextBox x:Name="txt_Registrar" Grid.Column="1"  Grid.Row="2"
                        HorizontalAlignment="Right"  VerticalAlignment="Center" 
                        Width="150" Height="40" 
                        Margin="5" IsEnabled="True"/>

                <TextBlock x:Name="label3" Grid.Column="0"  Grid.Row="3" 
                        HorizontalAlignment="Left"  VerticalAlignment="Center" 
                        Width="150" Height="40" 
                        Text="Proxy"
                        Margin="10,5,5,5"/>

                <TextBox x:Name="txt_Proxy" Grid.Column="1"  Grid.Row="3"
                        HorizontalAlignment="Right"  VerticalAlignment="Center" 
                        Width="150" Height="40" 
                        Margin="5" IsEnabled="True"/>

                <TextBlock x:Name="label4" Grid.Column="0"  Grid.Row="4" 
                        HorizontalAlignment="Left"  VerticalAlignment="Center" 
                        Width="150" Height="40" 
                        Text="User Name"
                        Margin="10,5,5,5"/>

                <TextBox x:Name="txt_RegUserName" Grid.Column="1"  Grid.Row="4"
                        HorizontalAlignment="Right"  VerticalAlignment="Center" 
                        Width="150" Height="40" 
                        Margin="5" IsEnabled="True"/>

                <TextBlock x:Name="label5" Grid.Column="0"  Grid.Row="5" 
                        HorizontalAlignment="Left"  VerticalAlignment="Center" 
                        Width="150" Height="40" 
                        Text="Password"
                        Margin="10,5,5,5"/>

                <TextBox x:Name="txt_Password" Grid.Column="1"  Grid.Row="5"
                        HorizontalAlignment="Right"  VerticalAlignment="Center" 
                        Width="150" Height="40" 
                        Margin="5" IsEnabled="True"/>
                <Button x:Name="btn_GetAccountInfo" Grid.Column="0"  Grid.Row="6" Content="Get Account Info" 
                        HorizontalAlignment="Left"  VerticalAlignment="Top" 
                        Width="150" Height="40" 
                        Margin="5" Click="btn_GetAccountInfo_Click"/>

                <Button x:Name="btn_ModifyAccount" Grid.Column="1"  Grid.Row="6" Content="Modify Account" 
                        HorizontalAlignment="Left"  VerticalAlignment="Top" 
                        Width="150" Height="40" 
                        Margin="5" Click="btn_ModifyAccount_Click"/>

                <TextBlock x:Name="txt_RegState" Grid.Column="0" Grid.Row="7"
                    Text="Reg: Not Registered" 
                    Margin="15,20,5,15" 
                    VerticalAlignment="Bottom" 
                    HorizontalAlignment="Center" 
                    TextWrapping="WrapWholeWords"/>

                <TextBlock x:Name="txt_CallStatus" Grid.Column="1" Grid.Row="7"
                    Text="Disconnected" 
                    Margin="15,20,5,15" 
                    VerticalAlignment="Bottom" 
                    HorizontalAlignment="Center" 
                    TextWrapping="WrapWholeWords"/>

            </Grid>
        </StackPanel>

    </Grid>
</Page>