Changeset 385:65e748226c91 in verona for phcpp/phapipp.h
- Timestamp:
- Dec 12, 2011 5:18:17 PM (18 months ago)
- Branch:
- default
- rebase_source:
- 910d56ee2616aabe41b046a9cc2ea1afa0845cde
- File:
-
- 1 edited
-
phcpp/phapipp.h (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
phcpp/phapipp.h
r331 r385 65 65 const char *realm, const char* ha1 = 0); 66 66 67 virtual int listenAddr(int local_sip_port); 67 68 68 69 virtual int addVline(const char* displayname, const char* username, const char* host, … … 256 257 const string& ha1) 257 258 { 258 return phapi::addAuthInfo(cstr(username), cstr(userid), cstr(passwd), realm, cstr(ha1)); 259 } 260 259 return phapi::addAuthInfo(cstr(username), cstr(userid), cstr(passwd), realm, cstr(ha1)); 260 } 261 int listenAddr(int local_sip_port) 262 { 263 return phapi::listenAddr(local_sip_port); 264 } 261 265 262 266 int addVline(const string& displayname, const string& username, const string& host, 263 267 const string& proxy, int regTimeout, int mobility = PH_LINE_MOBILITY_DEFAULT) 264 268 { 265 return phapi::addVline(cstr(displayname), cstr(username), cstr(host), cstr(proxy), regTimeout, mobility);269 return phapi::addVline(cstr(displayname), cstr(username), cstr(host), cstr(proxy), regTimeout, mobility); 266 270 } 267 271 … … 280 284 const char* adev = 0, const char* audio_addr = 0, const char* video_addr = 0) 281 285 { 282 return phapi::placeCall(vlid, cstr(uri), userdata, rcid, streams, adev, audio_addr, video_addr);286 return phapi::placeCall(vlid, cstr(uri), userdata, rcid, streams, adev, audio_addr, video_addr); 283 287 } 284 288 … … 287 291 int rejectCall(int cid, int reason, const string& uri) 288 292 { 289 return phapi::rejectCall(cid, reason, cstr(uri));293 return phapi::rejectCall(cid, reason, cstr(uri)); 290 294 } 291 295 … … 294 298 int messageInCall(int cid, const string& mime, const string& buf) 295 299 { 296 return phapi::messageInCall(cid, cstr(mime), cstr(buf));300 return phapi::messageInCall(cid, cstr(mime), cstr(buf)); 297 301 } 298 302 … … 302 306 int setFollowMe(int vlid, const string& uri) 303 307 { 304 return phapi::setFollowMe(vlid, cstr(uri));308 return phapi::setFollowMe(vlid, cstr(uri)); 305 309 } 306 310 … … 339 343 const string& mime, const string& target) 340 344 { 341 return phapi::sendMessage(vlid, cstr(to), cstr(buff), cstr(mime), cstr(target), 0);345 return phapi::sendMessage(vlid, cstr(to), cstr(buff), cstr(mime), cstr(target), 0); 342 346 } 343 347 … … 346 350 int sendMessage(int vlid, const string& to, const string& buff, const string& mime) 347 351 { 348 return phapi::sendMessage(vlid, cstr(to), cstr(buff), cstr(mime), 0, 0);352 return phapi::sendMessage(vlid, cstr(to), cstr(buff), cstr(mime), 0, 0); 349 353 } 350 354 … … 353 357 int subscribe(int vlid, const string& to, int winfo, char *data = 0, int use_proxy = 1, int expire = 600) 354 358 { 355 return phapi::subscribe(vlid, cstr(to), winfo, data, use_proxy, expire);359 return phapi::subscribe(vlid, cstr(to), winfo, data, use_proxy, expire); 356 360 } 357 361 358 362 int unsubscribe(int sid, int winfo) 359 363 { 360 return phapi::unsubscribe(sid, winfo);364 return phapi::unsubscribe(sid, winfo); 361 365 } 362 366 … … 364 368 const string& content, int expires = -1) 365 369 { 366 return phapi::publish(vlid, cstr(to), cstr(evt), cstr(ctt), cstr(content), expires);370 return phapi::publish(vlid, cstr(to), cstr(evt), cstr(ctt), cstr(content), expires); 367 371 } 368 372 369 373 int unpublish(int vlid, const string& to, const string& evt) 370 374 { 371 return phapi::unpublish(vlid, cstr(to), cstr(evt));375 return phapi::unpublish(vlid, cstr(to), cstr(evt)); 372 376 } 373 377
Note: See TracChangeset
for help on using the changeset viewer.
