Changeset 381:a9cd82f1414e in verona
- Timestamp:
- Dec 6, 2011 2:35:43 PM (18 months ago)
- Branch:
- default
- File:
-
- 1 edited
-
phapi/phapi.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
phapi/phapi.c
r380 r381 4526 4526 } 4527 4527 4528 int phListenAddr(int local_sip_port) 4529 { 4530 int i, cpt = 0; 4531 int secure = 0; 4532 int proto = phcfg.transport; 4533 4534 for (cpt = 0; cpt < 5; cpt++) 4535 { 4536 if (phcfg.local_ip_addr[0] == 0) 4537 i = eXosip_listen_addr(proto, NULL,local_sip_port + cpt, AF_INET, secure); 4538 else 4539 i = eXosip_listen_addr(proto, phcfg.local_ip_addr,local_sip_port + cpt, AF_INET, secure); 4540 4541 if(!i) 4542 break; 4543 } 4544 4545 return i; 4546 } 4547 4528 4548 PHAPI_EXPORT int 4529 4549 phInit(phCallbacks_t *cbk, char * server, int asyncmode) 4530 4550 { 4531 4551 int i; 4532 int proto;4533 int secure;4534 4552 const char *tmp; 4535 4553 int nat_refresh_time = 0; … … 4582 4600 } 4583 4601 4584 4585 proto = phcfg.transport;4586 secure = 0;4587 4588 4589 4602 i = eXosip_init(); 4590 4603 if (i) … … 4601 4614 } 4602 4615 4603 if (phcfg.local_ip_addr[0] == 0) 4604 eXosip_listen_addr(proto, NULL, atoi(phcfg.sipport), AF_INET, secure); 4605 else 4606 eXosip_listen_addr(proto, phcfg.local_ip_addr, atoi(phcfg.sipport), AF_INET, secure); 4616 i = phListenAddr(atoi(phcfg.sipport)); 4617 if(i) 4618 return -1; 4607 4619 4608 4620 {
Note: See TracChangeset
for help on using the changeset viewer.
