Changeset 222 for pjproject/trunk/pjsip/src/pjsua/pjsua_core.c
- Timestamp:
- Feb 23, 2006 2:09:10 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua/pjsua_core.c
r220 r222 76 76 77 77 pjsua.reg_timeout = 55; 78 79 /* Default maximum conference ports: */ 80 81 pjsua.max_ports = 8; 78 82 79 83 /* Init route set list: */ … … 518 522 /* Init conference bridge. */ 519 523 520 status = pjmedia_conf_create(pjsua.pool, 8, 8000, 160, 16, &pjsua.mconf); 524 status = pjmedia_conf_create(pjsua.pool, pjsua.max_ports, 525 8000, 160, 16, &pjsua.mconf); 521 526 if (status != PJ_SUCCESS) { 522 527 pj_caching_pool_destroy(&pjsua.cp); … … 554 559 pjsip_transport *udp_transport; 555 560 pj_status_t status = PJ_SUCCESS; 561 562 /* Create WAV file player if required: */ 563 564 if (pjsua.wav_file) { 565 pjmedia_port *port; 566 pj_str_t port_name; 567 568 /* Create the file player port. */ 569 status = pjmedia_file_player_port_create( pjsua.pool, pjsua.wav_file, 570 0, -1, NULL, &port); 571 if (status != PJ_SUCCESS) { 572 pjsua_perror(THIS_FILE, 573 "Error playing media file", 574 status); 575 return status; 576 } 577 578 /* Add port to conference bridge: */ 579 status = pjmedia_conf_add_port(pjsua.mconf, pjsua.pool, port, 580 pj_cstr(&port_name, pjsua.wav_file), 581 &pjsua.wav_slot); 582 if (status != PJ_SUCCESS) { 583 pjsua_perror(THIS_FILE, 584 "Unable to add file player to conference bridge", 585 status); 586 return status; 587 } 588 } 589 556 590 557 591 /* Init sockets (STUN etc): */
Note: See TracChangeset
for help on using the changeset viewer.