KolliPraneeth / idoubs

Automatically exported from code.google.com/p/idoubs
0 stars 0 forks source link

incoming call not working after restarting the device #103

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?

1. Configure idoubs account in iPhone and Check the application for  
   incoming and outgoing calls.
2. Then Switch off your iPhone and switch it ON. Now you can see that 
   app is working in background by double tabbing home button
3. Make a call from another idoubs application

What is the expected output? What do you see instead?
 Now the application should receive incoming call. But receiving 
 incoming call is not working

What version of the product or source code revision are you using? On what 
operating system?

 Latest revision , ios 4.2, iphone 4, xcode 4.2

Please provide any additional information below.

  The socket connection for receiving incoming call in background mode is not connected with server.I am using following function in applicationDidEnterBackground method to re-initiate the socket connection.But still it is not working.

 [[UIApplication sharedApplication] setKeepAliveTimeout:600 handler: ^{

     [[NgnEngine sharedInstance] startKeepAwake];

  }];

Original issue reported on code.google.com by mail4kar...@gmail.com on 27 Mar 2012 at 6:41

GoogleCodeExporter commented 8 years ago

Original comment by boss...@yahoo.fr on 18 May 2012 at 3:47

GoogleCodeExporter commented 8 years ago
Mine is still not working. My version: r221 from subversion.

After switching the Ipod On, idoubs running on backgound but It seems not to 
complete the registration process successfully. The work arround is to open the 
application, wait for a while then the app automatically register sucessfully 
and can receive incomming calls.

Here are the sip traces at on server when turn on the phone.

recv 901 bytes from udp/[118.69.37.57]:42913 at 06:16:57.670879:
   ------------------------------------------------------------------------
   REGISTER sip:nguyennp.com SIP/2.0
   Via: SIP/2.0/UDP 118.69.37.57:42913;branch=z9hG4bK1658898338;rport
   From: <sip:1006@nguyennp.com>;tag=994912818
   To: <sip:1006@nguyennp.com>
   Contact: <sip:1006@10.1.1.2:42913;transport=udp>;expires=3200;+g.oma.sip-im;language="en,fr";+g.3gpp.smsip;+g.oma.sip-im.large-message;audio;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-application.ims.iari.gsma-vs";+g.3gpp.cs-voice
   Call-ID: 8bf03102-41f5-fb78-9c98-ebbf9aa2958e
   CSeq: 1812050009 REGISTER
   Content-Length: 0
   Max-Forwards: 70
   Authorization: Digest username="1006",realm="nguyennp.com",nonce="",uri="sip:nguyennp.com",response=""
   Allow: INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER
   Privacy: none
   P-Access-Network-Info: ADSL;utran-cell-id-3gpp=00000000
   User-Agent: IM-client/OMA1.0 ios-ngn-stack/v00 (doubango r000)
   P-Preferred-Identity: <sip:1006@nguyennp.com>
   Supported: path

   ------------------------------------------------------------------------
send 649 bytes to udp/[118.69.37.57]:42913 at 06:16:57.672226:
   ------------------------------------------------------------------------
   SIP/2.0 401 Unauthorized
   Via: SIP/2.0/UDP 118.69.37.57:42913;branch=z9hG4bK1658898338;rport=42913
   From: <sip:1006@nguyennp.com>;tag=994912818
   To: <sip:1006@nguyennp.com>;tag=gr567a42X05er
   Call-ID: 8bf03102-41f5-fb78-9c98-ebbf9aa2958e
   CSeq: 1812050009 REGISTER
   User-Agent: FreeSWITCH-mod_sofia/1.3.0+git~20121003T191934Z~61033f420b
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
   Supported: timer, precondition, path, replaces
   WWW-Authenticate: Digest realm="nguyennp.com", nonce="94868ace-1e6b-11e2-8fa1-579785576405", stale=true, algorithm=MD5, qop="auth"
   Content-Length: 0

   ------------------------------------------------------------------------

Original comment by nguye...@gmail.com on 25 Oct 2012 at 6:25