137 |
bool first = true; |
bool first = true; |
138 |
NameAddr userAor(argv[1]); |
NameAddr userAor(argv[1]); |
139 |
Data passwd(argv[2]); |
Data passwd(argv[2]); |
|
int port = 25060; |
|
140 |
|
|
141 |
InfoLog(<< "user: " << userAor << ", passwd: " << passwd << "\n"); |
InfoLog(<< "user: " << userAor << ", passwd: " << passwd << "\n"); |
142 |
|
|
156 |
|
|
157 |
SipStack clientStack(security); |
SipStack clientStack(security); |
158 |
DialogUsageManager clientDum(clientStack); |
DialogUsageManager clientDum(clientStack); |
159 |
clientDum.addTransport(UDP, port); |
clientDum.addTransport(UDP, 10000 + rand()&0x7fff); |
160 |
|
|
161 |
MasterProfile clientProfile; |
MasterProfile clientProfile; |
162 |
auto_ptr<ClientAuthManager> clientAuth(new ClientAuthManager()); |
auto_ptr<ClientAuthManager> clientAuth(new ClientAuthManager()); |
185 |
InfoLog( << regMessage << "Generated register: " << endl << regMessage ); |
InfoLog( << regMessage << "Generated register: " << endl << regMessage ); |
186 |
clientDum.send( regMessage ); |
clientDum.send( regMessage ); |
187 |
|
|
|
int n = 0; |
|
|
|
|
188 |
while (!clientHandler.isEnded() || !clientHandler.isRcvd() ) |
while (!clientHandler.isEnded() || !clientHandler.isRcvd() ) |
189 |
{ |
{ |
190 |
FdSet fdset; |
FdSet fdset; |