Ignore:
Timestamp:
Oct 26, 2007 5:35:42 AM (17 years ago)
Author:
bennylp
Message:

More ticket #399: pj_sock_close() is called more than once. Also implemented NAT detection callback for Symbian UA

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/symbian_ua/ua.cpp

    r1417 r1526  
    5858// 
    5959// STUN server 
    60 #if 0 
     60#if 1 
    6161        // Use this to have the STUN server resolved normally 
    6262#   define STUN_DOMAIN  NULL 
     
    217217 
    218218 
     219/* NAT detection result */ 
     220static void on_nat_detect(const pj_stun_nat_detect_result *res)  
     221{ 
     222    if (res->status != PJ_SUCCESS) { 
     223        pjsua_perror(THIS_FILE, "NAT detection failed", res->status); 
     224    } else { 
     225        PJ_LOG(3, (THIS_FILE, "NAT detected as %s", res->nat_type_name)); 
     226    }     
     227} 
     228 
    219229/* Notification that call is being replaced. */ 
    220230static void on_call_replaced(pjsua_call_id old_call_id, 
     
    283293    cfg.cb.on_call_transfer_status = &on_call_transfer_status; 
    284294    cfg.cb.on_call_replaced = &on_call_replaced; 
    285  
     295    cfg.cb.on_nat_detect = &on_nat_detect; 
     296     
    286297    if (SIP_PROXY) { 
    287298            cfg.outbound_proxy_cnt = 1; 
Note: See TracChangeset for help on using the changeset viewer.