|
From: | Максим Вечирко |
Subject: | [Linphone-developers] Does not work Subscribe/Notify on IOS |
Date: | Thu, 4 Aug 2022 22:51:59 +0300 |
Please help me i already like 6 month i can’t figure out how to subscribe to any SIP by linphone on Androind everything work perfect on IOS is immediately terminated after completed subscribed my method to create subscribtion for “dialog” event func createSUb(to number: String, delegate: CoreDelegate) { mCore.addDelegate(delegate: delegate) do { let identity = try mCore.createAddress(address: String("sip:" + number + "@" + domain)) let subscription = try mCore.createSubscribe(resource: identity, event: "dialog", expires: 1000) subscription.addCustomHeader(name: "Accept", value: "application/dialog-info+xml") try subscription.sendSubscribe(body: nil) } catch {debugPrint("Transfeing \(error.localizedDescription)")} } here is log: 2022-08-04 22:49:44:182 liblinphone-message-Core callbacks [0x600002908320] registered on core [0x7fce7e80e800] 2022-08-04 22:49:44:185 liblinphone-message-Skipping top route of initial route-set because same as request-uri 2022-08-04 22:49:44:186 bctbx-message-Background task belle-sip transaction(0x600003f79a40) started. Unknown remaining time since application is not fully in background. 2022-08-04 22:49:44:186 belle-sip-message-transaction [0x600003f79a40]: starting transaction background task with id=[41]. 2022-08-04 22:49:44:187 belle-sip-message-Changing [client] [SUBSCRIBE] transaction [0x600003f79a40], from state [INIT] to [TRYING] 2022-08-04 22:49:44:187 belle-sip-message-channel [0x7fce7d65e000]: message sent to [TCP://sip1.njr2.mypbxmanager.net:5060], size: [556] bytes SUBSCRIBE sip:4444105@sip1.njr2.mypbxmanager.net SIP/2.0 Via: SIP/2.0/TCP 192.168.0.6:51026;alias;branch=z9hG4bK.SLqeSfw~R;rport From: <sip:4444101@sip1.njr2.mypbxmanager.net>;tag=gWrp8Rzg9 CSeq: 20 SUBSCRIBE Call-ID: YHckeZAbnL Max-Forwards: 70 Supported: replaces, outbound, gruu Event: dialog Expires: 1000 Accept: application/dialog-info+xml User-Agent: IOS PBX Manager/1.5.0 Content-Length: 0 2022-08-04 22:49:44:191 liblinphone-message-LinphoneEvent [0x600003f7bcc0] moving to subscription state LinphoneSubscriptionOutgoingProgress "Outgoing proggress" "NOTS OutgoingProgress" 2022-08-04 22:49:45:126 bctbx-message-Background task belle-sip recv channel started. Unknown remaining time since application is not fully in background. 2022-08-04 22:49:45:127 belle-sip-message-channel [0x7fce7d65e000]: starting recv background task with id=[46]. 2022-08-04 22:49:45:127 belle-sip-message-channel [0x7fce7d65e000]: received [486] new bytes from [TCP://sip1.njr2.mypbxmanager.net:5060]: SIP/2.0 407 Proxy Authentication Required Via: SIP/2.0/TCP 192.168.0.6:51026;alias;branch=z9hG4bK.SLqeSfw~R;rport=51026;received=192.168.0.6 From: <sip:4444101@sip1.njr2.mypbxmanager.net>;tag=gWrp8Rzg9 CSeq: 20 SUBSCRIBE Call-ID: YHckeZAbnL Proxy-Authenticate: Digest realm="sip1.njr2.mypbxmanager.net", nonce="YuwkBWLsItk9HQwDYMbSnPr/XaNozAW7" Server: Enswitch SIP proxy Content-Length: 0 2022-08-04 22:49:45:130 belle-sip-message-channel [0x7fce7d65e000] [486] bytes parsed 2022-08-04 22:49:45:130 belle-sip-message-Found transaction matching response. 2022-08-04 22:49:45:131 belle-sip-message-Changing [client] [SUBSCRIBE] transaction [0x600003f79a40], from state [TRYING] to [COMPLETED] 2022-08-04 22:49:45:131 liblinphone-message-Op [0x7fce7d097bf0] is terminated, nothing to do with this [407] 2022-08-04 22:49:45:136 belle-sip-message-Changing [client] [SUBSCRIBE] transaction [0x600003f79a40], from state [COMPLETED] to [TERMINATED] 2022-08-04 22:49:45:137 belle-sip-message-Client SUBSCRIBE transaction [0x600003f79a40] terminated 2022-08-04 22:49:45:137 liblinphone-message-Destroying op [0x7fce7d097bf0] of type [SalOpUnknown] 2022-08-04 22:49:45:137 belle-sip-message-transaction [0x600003f79a40]: ending transaction background task with id=[41]. 2022-08-04 22:49:45:138 belle-sip-message-Transaction [0x600003f79a40] deleted 2022-08-04 22:49:45:138 belle-sip-message-channel [0x7fce7d65e000]: ending recv background task with id=[46]. 2022-08-04 22:49:46:327 belle-sip-message-channel [0x7fce7d65e000]: keep alive sent to [TCP://sip1.njr2.mypbxmanager.net:5060] 2022-08-04 22:49:46:487 bctbx-message-Background task belle-sip recv channel started. Unknown remaining time since application is not fully in background. 2022-08-04 22:49:46:487 belle-sip-message-channel [0x7fce7d65e000]: starting recv background task with id=[47]. 2022-08-04 22:49:46:488 belle-sip-message-channel [0x7fce7d65e000]: ending recv background task with id=[47]. |
[Prev in Thread] | Current Thread | [Next in Thread] |