BelledonneCommunications / linphone-iphone

Linphone is a free VoIP and video softphone based on the SIP protocol. Mirror of linphone-iphone (git://git.linphone.org/linphone-iphone.git)
http://linphone.org
GNU General Public License v3.0
579 stars 343 forks source link

Linphone registration issue in US #346

Open StarTeleLogic opened 6 years ago

StarTeleLogic commented 6 years ago

There is an issue related to Linphone registration in US when user latched on AT&T network. App working fine in other countries like India very well. Also noted that there is no issue in case of iOS10 even in US. I am getting registration state of linphone using proxy config. Basis on that I am showing a connection indicator that always remains in failed state in above scenario means It always goes to LinphoneRegistrationProgress or LinphoneRegistrationFailed. I am showing below code snippet that gives registration state-

theLinphone.lc = linphone_core_new_with_config(&theLinphone.lct!, lpConfig, nil)

let proxy_cfg = linphone_core_get_default_proxy_config(theLinphone.lc!); / get default proxy config/

if proxy_cfg != nil{ switch linphone_proxy_config_get_state(proxy_cfg) { case LinphoneRegistrationProgress: imgState.image = UIImage(named:"led_inprogress") case LinphoneRegistrationOk: imgState.image = UIImage(named:"led_connected") case LinphoneRegistrationFailed: imgState.image = UIImage(named:"led_inprogress") default: imgState.image = UIImage(named:"led_inprogress") } }

Also sharing code used for registration in Appdelegate.

/create proxy config/ let proxy_cfg = linphone_proxy_config_new();

    /*parse identity*/
    let from = linphone_address_new(identity);

    let info=linphone_auth_info_new(linphone_address_get_username(from), nil, password, nil, nil, nil); /*create authentication structure from identity*/
    linphone_core_add_auth_info(theLinphone.lc!, info); /*add authentication info to LinphoneCore*/

    // configure proxy entries
    linphone_proxy_config_set_identity(proxy_cfg, identity); /*set identity with user name and domain*/
    let server_addr = String(cString: linphone_address_get_domain(from)); /*extract domain address from identity*/
    linphone_address_destroy(from); /*release resource*/
    linphone_proxy_config_set_server_addr(proxy_cfg, server_addr); /* we assume domain = proxy server address*/
    //        linphone_proxy_config_enable_register(proxy_cfg, 0); /* activate registration for this proxy config*/

    linphone_proxy_config_set_expires(proxy_cfg, 60)
    linphone_core_add_proxy_config(theLinphone.lc!, proxy_cfg); /*add proxy config to linphone core*/
    linphone_core_set_default_proxy_config(theLinphone.lc!, proxy_cfg); /*set to default proxy*/

linphone_proxy_config_enable_register(proxy_cfg, 1); / activate registration for this proxy config/

/ hitting each 0.02 sec / if let lc = theLinphone.lc{ linphone_core_iterate(lc); / first iterate initiates registration / }

All is working well, problem seems related to Network latched in case of iOS11.1 in US only. We are getting multiple issues related to above from US/UK region.

ghost commented 6 years ago

Hello,

Could you provide logs of when registration fail ?

Thanks

StarTeleLogic commented 6 years ago

/parse identity/ let from = linphone_address_new(identity);

let info=linphone_auth_info_new(linphone_address_get_username(from), nil, password, nil, nil, nil); /*create authentication structure from identity*/
linphone_core_add_auth_info(theLinphone.lc!, info); /*add authentication info to LinphoneCore*/

// configure proxy entries
linphone_proxy_config_set_identity(proxy_cfg, identity); /*set identity with user name and domain*/
let server_addr = String(cString: linphone_address_get_domain(from)); /*extract domain address from identity*/
linphone_address_destroy(from); /*release resource*/
linphone_proxy_config_set_server_addr(proxy_cfg, server_addr); /* we assume domain = proxy server address*/
//        linphone_proxy_config_enable_register(proxy_cfg, 0); /* activate registration for this proxy config*/

linphone_proxy_config_set_expires(proxy_cfg, 60)
linphone_core_add_proxy_config(theLinphone.lc!, proxy_cfg); /*add proxy config to linphone core*/
linphone_core_set_default_proxy_config(theLinphone.lc!, proxy_cfg); /*set to default proxy*/
ghost commented 6 years ago

Hello,

I need logs, not the source code. Do you use flexisip or another sip service ?

Thanks

StarTeleLogic commented 6 years ago

We are using Freeswitch hosted on AWS for IP to PSTN calls.

ghost commented 6 years ago

Okay, can i have logs ? Or i won't be abble to see what's failing.

Thanks

StarTeleLogic commented 6 years ago

2017-11-16 18:54:32.587 Startele logic[5078:1809796] refreshPreferences: HangTracerEnabled: 0 2017-11-16 18:54:32.587 Startele logic [5078:1809796] refreshPreferences: HangTracerDuration: 500 2017-11-16 18:54:32.587 Startele logic [5078:1809796] refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0 2017-11-16 18:54:32.587 Startele logic [5078:1809796] STATUS - Application did become active 2017-11-16 18:54:33.038 Startele logic [5078:1809796] STATUS - Application did become active 2017-11-16 18:54:33.756 Startele logic [5078:1809796] STATUS - Application did become active 2017-11-16 18:54:35.855 Startele logic [5078:1809796] STATUS - Application did become active 2017-11-16 18:54:37.595 Startele logic [5078:1809796] Can't find keyplane that supports type 5 for keyboard iPhone-PortraitChoco-PhonePad; using 2024220450015396792_PortraitChoco_iPhone-Complex-Pad_Default 2017-11-16 18:54:37.623 Startele logic [5078:1809796] Can't find keyplane that supports type 5 for keyboard iPhone-PortraitChoco-PhonePad; using 2024220450015396792_PortraitChoco_iPhone-Complex-Pad_Default 2017-11-16 18:54:53.802 Startele logic [5078:1809796] Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using 4072550144015629828_PortraitChoco_iPhone-Simple-Pad_Default /var/mobile/Containers/Data/Application/15A56962-1321-4337-AE86-34EC962B8CF4/Documents/console.log Network Status Changed: reachable(Alamofire.NetworkReachabilityManager.ConnectionType.wwan) reachable 9A6BCD13C4A0C6B7F9A1739F1D6B710D7DE6A9FA270AB33989A644A9C46E0E42 finally This is run on the background queue This is run on the main queue, after the previous code in outer block Linphone init 2017-11-16 18:55:04:587 ortp-message-Using (r/w) config information from /var/mobile/Containers/Data/Application/15A56962-1321-4337-AE86-34EC962B8CF4/Documents/linphonerc 2017-11-16 18:55:04:591 ortp-message-Reading config information from /private/var/containers/Bundle/Application/7C21F35D-50C6-4942-9844-4EAB16544E88/Startele logic .app/linphonerc-factory 2017-11-16 18:55:04:599 ortp-message-Initializing LinphoneCore 3.11.1-181-g6979948 2017-11-16 18:55:04:602 ortp-message-Core callbacks [0x1c028e510] registered on core [0x1028eb800] 2017-11-16 18:55:04:602 ortp-message-Core callbacks [0x1c028e380] registered on core [0x1028eb800] 2017-11-16 18:55:04:606 ortp-message-oRTP-1.0.1 initialized. 2017-11-16 18:55:04:610 ortp-message-Mediastreamer2 factory 2.15.1 (git: 2.15.1-54-g81dd23b) initialized. 2017-11-16 18:55:04:610 ortp-message-CPU count set to 2 2017-11-16 18:55:04:612 ortp-message-ms_factory_init() done: platform_tags=apple,ios,x86,embedded 2017-11-16 18:55:04:616 ortp-message-srtp init 2017-11-16 18:55:04:683 ortp-message-Registering VideoToobox H264 codec 2017-11-16 18:55:04:683 ortp-message-Registering all soundcard handlers 2017-11-16 18:55:04:685 ortp-message-Card 'AU: Audio Unit Receiver' added with capabilities [capture, playback] 2017-11-16 18:55:04:685 ortp-message-Card 'AU: Audio Unit Fast Receiver' added with capabilities [capture, playback] 2017-11-16 18:55:04:685 ortp-message-Card 'AU: Audio Unit NoVoiceProc' added with capabilities [capture, playback] 2017-11-16 18:55:04:685 ortp-message-Card 'AU: Audio Unit Tester' added with capabilities [capture, playback] 2017-11-16 18:55:04:686 ortp-message-Card 'AQ: Audio Queue Device' added with capabilities [playback] 2017-11-16 18:55:04:686 ortp-message-Registering all webcam handlers 2017-11-16 18:55:04:708 ortp-message-Webcam AV Capture: com.apple.avfoundation.avcapturedevice.built-in_video:0 added 2017-11-16 18:55:04:708 ortp-message-Webcam AV Capture: com.apple.avfoundation.avcapturedevice.built-in_video:1 added 2017-11-16 18:55:04:711 ortp-message-Webcam StaticImage: Static picture added 2017-11-16 18:55:04:712 ortp-message-ms_factory_init_voip() done 2017-11-16 18:55:04:712 ortp-message-Loading ms plugins from [./lib/mediastreamer/plugins] 2017-11-16 18:55:04:712 ortp-message-Cannot open directory ./lib/mediastreamer/plugins: No such file or directory 2017-11-16 18:55:04:712 ortp-message-Codec opus/48000 fmtp=[useinbandfec=1] number=-1, default enablement: 1) added to the list of possible codecs. 2017-11-16 18:55:04:712 ortp-message-Codec SILK/16000 fmtp=[] number=-1, default enablement: 1) added to the list of possible codecs. 2017-11-16 18:55:04:713 ortp-message-Codec speex/16000 fmtp=[vbr=on] number=-1, default enablement: 1) added to the list of possible codecs. 2017-11-16 18:55:04:713 ortp-message-Codec speex/8000 fmtp=[vbr=on] number=-1, default enablement: 1) added to the list of possible codecs. 2017-11-16 18:55:04:713 ortp-message-Codec PCMU/8000 fmtp=[] number=0, default enablement: 1) added to the list of possible codecs. 2017-11-16 18:55:04:713 ortp-message-Codec PCMA/8000 fmtp=[] number=8, default enablement: 1) added to the list of possible codecs. 2017-11-16 18:55:04:713 ortp-message-Codec red/1000 fmtp=[] number=-1, default enablement: 1) added to the list of possible codecs. 2017-11-16 18:55:04:713 ortp-message-Codec t140/1000 fmtp=[] number=-1, default enablement: 1) added to the list of possible codecs. 2017-11-16 18:55:04:713 ortp-message-Codec GSM/8000 fmtp=[] number=3, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:713 ortp-message-Codec G722/8000 fmtp=[] number=9, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:713 ortp-message-Codec iLBC/8000 fmtp=[mode=30] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:713 ortp-message-Codec AMR/8000 fmtp=[octet-align=1] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:713 ortp-message-Codec AMR-WB/16000 fmtp=[octet-align=1] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:713 ortp-message-Codec G729/8000 fmtp=[annexb=yes] number=18, default enablement: 1) added to the list of possible codecs. 2017-11-16 18:55:04:713 ortp-message-Codec mpeg4-generic/16000 fmtp=[config=F8EE2000; constantDuration=512; indexDeltaLength=3; indexLength=3; mode=AAC-hbr; profile-level-id=76; sizeLength=13; streamType=5] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:714 ortp-message-Codec mpeg4-generic/22050 fmtp=[config=F8EE2000; constantDuration=512; indexDeltaLength=3; indexLength=3; mode=AAC-hbr; profile-level-id=76; sizeLength=13; streamType=5] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:714 ortp-message-Codec mpeg4-generic/32000 fmtp=[config=F8E82000; constantDuration=512; indexDeltaLength=3; indexLength=3; mode=AAC-hbr; profile-level-id=76; sizeLength=13; streamType=5] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:714 ortp-message-Codec mpeg4-generic/44100 fmtp=[config=F8E82000; constantDuration=512; indexDeltaLength=3; indexLength=3; mode=AAC-hbr; profile-level-id=76; sizeLength=13; streamType=5] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:714 ortp-message-Codec mpeg4-generic/48000 fmtp=[config=F8EE2000; constantDuration=512; indexDeltaLength=3; indexLength=3; mode=AAC-hbr; profile-level-id=76; sizeLength=13; streamType=5] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:714 ortp-message-Codec iSAC/16000 fmtp=[] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:714 ortp-message-Codec speex/32000 fmtp=[vbr=on] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:714 ortp-message-Codec SILK/8000 fmtp=[] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:714 ortp-message-Codec SILK/12000 fmtp=[] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:714 ortp-message-Codec SILK/24000 fmtp=[] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:714 ortp-message-Codec G726-16/8000 fmtp=[] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:714 ortp-message-Codec G726-24/8000 fmtp=[] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:715 ortp-message-Codec G726-32/8000 fmtp=[] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:715 ortp-message-Codec G726-40/8000 fmtp=[] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:715 ortp-message-Codec AAL2-G726-16/8000 fmtp=[] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:715 ortp-message-Codec AAL2-G726-24/8000 fmtp=[] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:715 ortp-message-Codec AAL2-G726-32/8000 fmtp=[] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:715 ortp-message-Codec AAL2-G726-40/8000 fmtp=[] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:715 ortp-message-Codec CODEC2/8000 fmtp=[] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:715 ortp-message-Codec BV16/8000 fmtp=[] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:715 ortp-message-Codec VP8/90000 fmtp=[] number=-1, default enablement: 1) added to the list of possible codecs. 2017-11-16 18:55:04:715 ortp-message-Codec H264/90000 fmtp=[profile-level-id=42801F] number=-1, default enablement: 1) added to the list of possible codecs. 2017-11-16 18:55:04:715 ortp-message-Codec MP4V-ES/90000 fmtp=[profile-level-id=3] number=-1, default enablement: 1) added to the list of possible codecs. 2017-11-16 18:55:04:715 ortp-message-Codec H263-1998/90000 fmtp=[CIF=1;QCIF=1] number=-1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:715 ortp-message-Codec H263/90000 fmtp=[] number=34, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:717 ortp-message-Codec 1016/8000 fmtp=[] number=1, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:717 ortp-message-Codec G723/8000 fmtp=[] number=4, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:717 ortp-message-Codec LPC/8000 fmtp=[] number=7, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:717 ortp-message-Codec L16/44100 fmtp=[] number=10, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:717 ortp-message-Codec L16/44100 fmtp=[] number=11, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:717 ortp-message-Codec CN/8000 fmtp=[] number=13, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:717 ortp-message-Codec H261/90000 fmtp=[] number=31, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:717 ortp-message-Codec MPV/90000 fmtp=[] number=32, default enablement: 0) added to the list of possible codecs. 2017-11-16 18:55:04:723 ortp-message-Sal nat helper [enabled] 2017-11-16 18:55:04:727 ortp-message-Root ca path set to /opt/local/share/curl/curl-ca-bundle.crt 2017-11-16 18:55:04:727 ortp-message-Root ca path set to /opt/local/share/curl/curl-ca-bundle.crt 2017-11-16 18:55:04:728 ortp-message-Root ca path disabled 2017-11-16 18:55:05:328 ortp-message-[belr] Succesfully created grammar with 281 rules. 2017-11-16 18:55:05:328 ortp-message-[belr] Grammar is complete. 2017-11-16 18:55:05:428 ortp-message-[belr] Grammar has been optimized. 2017-11-16 18:55:05:563 ortp-message-Cannot open directory ./lib/liblinphone/plugins: No such file or directory 2017-11-16 18:55:05:563 ortp-message-linphone_core_set_playback_gain_db(): no active call. 2017-11-16 18:55:05:563 ortp-message-linphone_core_set_mic_gain_db(): no active call. 2017-11-16 18:55:05:564 ortp-message-Sal nat helper [enabled] 2017-11-16 18:55:05:564 ortp-message-Sal use rport [enabled] 2017-11-16 18:55:05:564 ortp-message-MTU is supposed to be 1300, rtp payload max size will be 1240 2017-11-16 18:55:05:564 ortp-message-Supported codec opus/48000 fmtp=useinbandfec=1 automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for SILK 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for SILK 2017-11-16 18:55:05:564 ortp-message-Supported codec speex/16000 fmtp=vbr=on automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Supported codec speex/8000 fmtp=vbr=on automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Supported codec PCMU/8000 fmtp= automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Supported codec PCMA/8000 fmtp= automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Supported codec GSM/8000 fmtp= automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Supported codec G722/8000 fmtp= automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for iLBC 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for iLBC 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for AMR 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for AMR 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for AMR-WB 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for AMR-WB 2017-11-16 18:55:05:564 ortp-message-Supported codec G729/8000 fmtp=annexb=yes automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Supported codec mpeg4-generic/16000 fmtp=config=F8EE2000; constantDuration=512; indexDeltaLength=3; indexLength=3; mode=AAC-hbr; profile-level-id=76; sizeLength=13; streamType=5 automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Supported codec mpeg4-generic/22050 fmtp=config=F8EE2000; constantDuration=512; indexDeltaLength=3; indexLength=3; mode=AAC-hbr; profile-level-id=76; sizeLength=13; streamType=5 automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Supported codec mpeg4-generic/32000 fmtp=config=F8E82000; constantDuration=512; indexDeltaLength=3; indexLength=3; mode=AAC-hbr; profile-level-id=76; sizeLength=13; streamType=5 automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Supported codec mpeg4-generic/44100 fmtp=config=F8E82000; constantDuration=512; indexDeltaLength=3; indexLength=3; mode=AAC-hbr; profile-level-id=76; sizeLength=13; streamType=5 automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Supported codec mpeg4-generic/48000 fmtp=config=F8EE2000; constantDuration=512; indexDeltaLength=3; indexLength=3; mode=AAC-hbr; profile-level-id=76; sizeLength=13; streamType=5 automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for iSAC 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for iSAC 2017-11-16 18:55:05:564 ortp-message-Supported codec speex/32000 fmtp=vbr=on automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for SILK 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for SILK 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for SILK 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for SILK 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for SILK 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for SILK 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for G726-16 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for G726-16 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for G726-24 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for G726-24 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for G726-32 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for G726-32 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for G726-40 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for G726-40 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for AAL2-G726-16 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for AAL2-G726-16 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for AAL2-G726-24 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for AAL2-G726-24 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for AAL2-G726-32 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for AAL2-G726-32 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for AAL2-G726-40 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for AAL2-G726-40 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for CODEC2 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for CODEC2 2017-11-16 18:55:05:564 ortp-message-Supported codec BV16/8000 fmtp= automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for 1016 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for 1016 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for G723 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for G723 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for LPC 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for LPC 2017-11-16 18:55:05:564 ortp-message-Supported codec L16/44100 fmtp= automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Supported codec L16/44100 fmtp= automatically added to codec list. 2017-11-16 18:55:05:564 ortp-message-Could not find encoder for CN 2017-11-16 18:55:05:564 ortp-message-Could not find decoder for CN 2017-11-16 18:55:05:565 ortp-message-Supported codec VP8/90000 fmtp= automatically added to codec list. 2017-11-16 18:55:05:565 ortp-message-Supported codec H264/90000 fmtp=profile-level-id=42801F automatically added to codec list. 2017-11-16 18:55:05:565 ortp-message-Could not find encoder for MP4V-ES 2017-11-16 18:55:05:565 ortp-message-Could not find decoder for MP4V-ES 2017-11-16 18:55:05:565 ortp-message-Could not find encoder for H263-1998 2017-11-16 18:55:05:565 ortp-message-Could not find decoder for H263-1998 2017-11-16 18:55:05:565 ortp-message-Could not find encoder for H263 2017-11-16 18:55:05:565 ortp-message-Could not find decoder for H263 2017-11-16 18:55:05:565 ortp-message-Could not find encoder for H261 2017-11-16 18:55:05:565 ortp-message-Could not find decoder for H261 2017-11-16 18:55:05:565 ortp-message-Could not find encoder for MPV 2017-11-16 18:55:05:565 ortp-message-Could not find decoder for MPV 2017-11-16 18:55:05:565 ortp-message-Supported codec red/1000 fmtp= automatically added to codec list. 2017-11-16 18:55:05:565 ortp-message-Supported codec t140/1000 fmtp= automatically added to codec list. 2017-11-16 18:55:05:565 ortp-message-Sal use rport [enabled] 2017-11-16 18:55:05:565 ortp-message-Root ca path disabled 2017-11-16 18:55:05:565 ortp-message-sal_unlisten_ports done 2017-11-16 18:55:05:567 ortp-message-Creating listening point [0x1c04e7500] on [sip:[::0]:5060;transport=UDP] 2017-11-16 18:55:05:568 ortp-message-Creating listening point [0x1c04e7580] on [sip:[::0]:5060;transport=TCP] 2017-11-16 18:55:05:568 ortp-error-TCP bind() failed for ::0 port 5060: Address already in use 2017-11-16 18:55:05:568 ortp-message-Listening point [0x1c04e7580] on [sip:[::0]:5060;transport=TCP] destroyed 2017-11-16 18:55:05:568 ortp-warning-Could not start tcp transport on port 5060, maybe this port is already used. 2017-11-16 18:55:05:568 ortp-message-Creating listening point [0x1c04e7580] on [sip:[::0]:-1;transport=TLS] 2017-11-16 18:55:05:568 ortp-message-Random TCP port is 57051 2017-11-16 18:55:05:568 ortp-message-Root ca path set to /opt/local/share/curl/curl-ca-bundle.crt 2017-11-16 18:55:05:568 ortp-message-Root ca path set to /opt/local/share/curl/curl-ca-bundle.crt 2017-11-16 18:55:05:596 ortp-message-linphone_proxy_config_is_server_config_changed : 0 2017-11-16 18:55:05:596 ortp-message-Publish params have changed on proxy config [0x10218d950] 2017-11-16 18:55:05:597 ortp-message-Listening point [0x1c04e7500] on [sip:[::0]:5060;transport=UDP] destroyed 2017-11-16 18:55:05:597 ortp-message-Listening point [0x1c04e7580] on [sip:[::0]:57051;transport=TLS] destroyed 2017-11-16 18:55:05:597 ortp-message-sal_unlisten_ports done 2017-11-16 18:55:05:597 ortp-message-Creating listening point [0x1c04e7500] on [sip:[::0]:5060;transport=TCP] 2017-11-16 18:55:05:597 ortp-error-TCP bind() failed for ::0 port 5060: Address already in use 2017-11-16 18:55:05:597 ortp-message-Listening point [0x1c04e7500] on [sip:[::0]:5060;transport=TCP] destroyed 2017-11-16 18:55:05:597 ortp-warning-Could not start tcp transport on port 5060, maybe this port is already used. 2017-11-16 18:55:05:598 ortp-warning-Refresh register operation not available (network unreachable) 2017-11-16 18:55:05:738 ortp-error-Error in connect: No route to host 2017-11-16 18:55:05:738 ortp-message-New local ip address is 10.109.57.136 2017-11-16 18:55:05:738 ortp-message-SIP network reachability state is now [UP] 2017-11-16 18:55:05:738 ortp-message-Media network reachability state is now [UP] 2017-11-16 18:55:05:739 ortp-message-LinphoneProxyConfig [0x10218d950] about to register (LinphoneCore version: 3.11.1-181-g6979948) 2017-11-16 18:55:05:744 ortp-message-Activity started 2017-11-16 18:55:05:744 ortp-message-transaction [0x1c417c5c0]: starting transaction background task with id=[1]. 2017-11-16 18:55:05:744 ortp-error-No listening point matching for [udp://##.###.##.##:5060] 2017-11-16 18:55:05:744 ortp-error-belle_sip_client_transaction_send_request(): no channel available 2017-11-16 18:55:05:744 ortp-message-Changing [client] [REGISTER] transaction [0x1c417c5c0], from state [INIT] to [TERMINATED] 2017-11-16 18:55:05:744 ortp-message-Client REGISTER transaction [0x1c417c5c0] terminated 2017-11-16 18:55:05:744 ortp-message-Unhandled transaction terminated [0x1c417c5c0] 2017-11-16 18:55:05:744 ortp-message-transaction [0x1c417c5c0]: ending transaction background task with id=[1]. 2017-11-16 18:55:05:744 ortp-message-Activity ended 2017-11-16 18:55:05:744 ortp-message-Proxy config [0x10218d950] for identity [sip:17343986917@##.###.##.##:5060] moving from state [LinphoneRegistrationNone] to [LinphoneRegistrationFailed] on core [0x1028eb800] LinphoneRegistrationFailed 2017-11-16 18:55:05:744 ortp-message-Linphone core [0x1028eb800] notified [registration_state_changed] 2017-11-16 18:55:10:019 ortp-error-Error in connect: No route to host 2017-11-16 18:55:15:019 ortp-error-Error in connect: No route to host 2017-11-16 18:55:20:019 ortp-error-Error in connect: No route to host 2017-11-16 18:55:25:019 ortp-error-Error in connect: No route to host 2017-11-16 18:55:30:019 ortp-error-Error in connect: No route to host 2017-11-16 18:55:35:019 ortp-error-Error in connect: No route to host 2017-11-16 18:55:40:019 ortp-error-Error in connect: No route to host 2017-11-16 18:55:45:019 ortp-error-Error in connect: No route to host 2017-11-16 18:55:50:019 ortp-error-Error in connect: No route to host JSON: { msg = "added sucessfully"; status = Success; "status_code" = 200; } { msg = "added sucessfully"; status = Success; "status_code" = 200; } 2017-11-16 18:55:55:019 ortp-error-Error in connect: No route to host 2017-11-16 18:56:00:034 ortp-error-Error in connect: No route to host 2017-11-16 18:56:05:019 ortp-error-Error in connect: No route to host 2017-11-16 18:56:10:018 ortp-error-Error in connect: No route to host 2017-11-16 18:56:15:019 ortp-error-Error in connect: No route to host 2017-11-16 18:56:54:840 ortp-error-Error in connect: No route to host 2017-11-16 18:56:58.854 Startele logic [5078:1809796] STATUS - Application did become active 2017-11-16 18:56:59:014 ortp-error-Error in connect: No route to host 2017-11-16 18:57:04:014 ortp-error-Error in connect: No route to host 2017-11-16 18:57:09:015 ortp-error-Error in connect: No route to host 2017-11-16 18:57:14:014 ortp-error-Error in connect: No route to host 2017-11-16 18:57:19:015 ortp-error-Error in connect: No route to host 2017-11-16 18:57:24:014 ortp-error-Error in connect: No route to host 2017-11-16 18:57:29:015 ortp-error-Error in connect: No route to host 2017-11-16 18:57:34:015 ortp-error-Error in connect: No route to host 2017-11-16 18:57:39:015 ortp-error-Error in connect: No route to host 2017-11-16 18:57:44:014 ortp-error-Error in connect: No route to host 2017-11-16 18:57:49:015 ortp-error-Error in connect: No route to host 2017-11-16 18:57:54:014 ortp-error-Error in connect: No route to host 2017-11-16 18:57:59:014 ortp-error-Error in connect: No route to host 2017-11-16 18:58:04:015 ortp-error-Error in connect: No route to host

ghost commented 6 years ago

From the logs it seems you give an empty or misconfigured address to your proxy config which is why it doesn't find your server.

StarTeleLogic commented 6 years ago
/*set identity*/
    let identity = "sip:" + "1234567890" + "@" + "34.235.252.78" + ":" + "5060"

    /*create proxy config*/
    let proxy_cfg = linphone_proxy_config_new();

    /*parse identity*/
    let from = linphone_address_new(identity);
    let info=linphone_auth_info_new(linphone_address_get_username(from), nil, password, nil, nil, nil); /*create
    authentication structure from identity*/
    linphone_core_add_auth_info(theLinphone.lc!, info); /*add authentication info to LinphoneCore*/
ghost commented 6 years ago

Try to check with break points if proxy_cfg, from and info are well created.

StarTeleLogic commented 6 years ago

yeah Its instance is already get created. Also let you know that I have tried to set TCP port at 5060 and It says port not available may be already used.

StarTeleLogic commented 6 years ago

Shall I use random ports ? currently we have hard coded for TCP port at 5060

StarTeleLogic commented 6 years ago

Hello ReisBenjamin Awaiting for your response!

OnurVar commented 6 years ago

@StarTeleLogic , Please also check if you are using Random Port on your connection.

You can set random port to listen like this below LinphoneSipTransports transportValue = {-1, -1, -1, -1}; linphone_core_set_sip_transports(lc, &transportValue);

viv578ek commented 5 years ago

You should try : var transport = LinphoneSipTransports() transport.dtls_port = 0 transport.tls_port = 0 transport.udp_port = 0 transport.tcp_port = LC_SIP_TRANSPORT_RANDOM linphone_core_set_sip_transports(theLinphone.lc!, &transport)

JamesHieu559 commented 4 years ago

Help Me! URL Issue: https://github.com/issues