- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjsip-apps/src/samples/siprtp.c
r5170 r5513 638 638 639 639 /* Create UAS dialog */ 640 status = pjsip_dlg_create_uas ( pjsip_ua_instance(), rdata,641 640 status = pjsip_dlg_create_uas_and_inc_lock( pjsip_ua_instance(), rdata, 641 &app.local_contact, &dlg); 642 642 if (status != PJ_SUCCESS) { 643 643 const pj_str_t reason = pj_str("Unable to create dialog"); … … 656 656 pjsip_dlg_create_response(dlg, rdata, 500, NULL, &tdata); 657 657 pjsip_dlg_send_response(dlg, pjsip_rdata_get_tsx(rdata), tdata); 658 pjsip_dlg_dec_lock(dlg); 658 659 return; 659 660 } 660 661 662 /* Invite session has been created, decrement & release dialog lock */ 663 pjsip_dlg_dec_lock(dlg); 661 664 662 665 /* Attach call data to invite session */ … … 845 848 static pj_status_t init_options(int argc, char *argv[]) 846 849 { 847 static char ip_addr[ 32];850 static char ip_addr[PJ_INET_ADDRSTRLEN]; 848 851 static char local_uri[64]; 849 852 … … 886 889 const pj_str_t *hostname; 887 890 pj_sockaddr_in tmp_addr; 888 char *addr;889 891 890 892 hostname = pj_gethostname(); 891 893 pj_sockaddr_in_init(&tmp_addr, hostname, 0); 892 addr = pj_inet_ntoa(tmp_addr.sin_addr);893 pj_ansi_strcpy(ip_addr, addr);894 pj_inet_ntop(pj_AF_INET(), &tmp_addr.sin_addr, ip_addr, 895 sizeof(ip_addr)); 894 896 } 895 897 … … 1134 1136 return; 1135 1137 } 1136 tp. __sched_priority = max_prio;1138 tp.sched_priority = max_prio; 1137 1139 1138 1140 rc = sched_setscheduler(0, POLICY, &tp); … … 1143 1145 1144 1146 PJ_LOG(4, (THIS_FILE, "New process policy=%d, priority=%d", 1145 policy, tp. __sched_priority));1147 policy, tp.sched_priority)); 1146 1148 1147 1149 /* … … 1156 1158 1157 1159 PJ_LOG(4, (THIS_FILE, "Old thread policy=%d, priority=%d", 1158 policy, tp. __sched_priority));1160 policy, tp.sched_priority)); 1159 1161 1160 1162 policy = POLICY; 1161 tp. __sched_priority = max_prio;1163 tp.sched_priority = max_prio; 1162 1164 1163 1165 rc = pthread_setschedparam(pthread_self(), policy, &tp); … … 1169 1171 1170 1172 PJ_LOG(4, (THIS_FILE, "New thread policy=%d, priority=%d", 1171 policy, tp. __sched_priority));1173 policy, tp.sched_priority)); 1172 1174 } 1173 1175
Note: See TracChangeset
for help on using the changeset viewer.