Imsdroid Error in register

782 views
Skip to first unread message

Dev Mhisham

unread,
Jul 2, 2012, 4:32:26 AM7/2/12
to Doubango
Dear Mamadou,
Many times when i register in Android
It's fail with error " Faild to start sip stack"
This error appear till restart the app
Any advice to avoid this issue?

Regards !
Mohamed Hisham
Development Team Leader
Sent from My Lovely iPhone

Abid khan

unread,
Jul 2, 2012, 5:25:44 AM7/2/12
to doub...@googlegroups.com
it might be some configuration issue. check your configuration.
--
Abid khan

Mohamed hisham

unread,
Jul 2, 2012, 2:20:11 PM7/2/12
to doub...@googlegroups.com
it's fail some times not always without change any thing in configurations

this is the Error Log

07-02 20:07:54.179: E/tinyWRAP(26537): ***ERROR: function: "tsip_stack_start()" 
07-02 20:07:54.179: E/tinyWRAP(26537): file: "src/tsip.c" 
07-02 20:07:54.179: E/tinyWRAP(26537): line: "637" 
07-02 20:07:54.179: E/tinyWRAP(26537): MSG: Failed to start timer manager
07-02 20:07:54.179: E/org.doubango.ngn.services.impl.NgnSipService(26537): Failed to start the stack. 
07-02 20:07:54.179: E/org.doubango.ngn.services.impl.NgnSipService(26537): Additional info:
07-02 20:07:54.179: E/org.doubango.ngn.services.impl.NgnSipService(26537): Failed to start timer manager
07-02 20:07:54.189: E/org.doubango.ngn.services.impl.NgnSipService(26537): Failed to start the SIP stack

Mamadou

unread,
Jul 2, 2012, 3:10:03 PM7/2/12
to Doubango
Never seen such error. Should never happen.
Are you using IMSDroid or ngn-stack in your own app?
Have you modified the IMSDroid source code or Doubango binaries?

On Jul 2, 8:20 pm, Mohamed hisham <dev.mhis...@gmail.com> wrote:
> it's fail some times not always without change any thing in configurations
>
> this is the Error Log
>
> 07-02 20:07:54.179: E/tinyWRAP(26537): ***ERROR: function:
> "tsip_stack_start()"
> 07-02 20:07:54.179: E/tinyWRAP(26537): file: "src/tsip.c"
> 07-02 20:07:54.179: E/tinyWRAP(26537): line: "637"
> 07-02 20:07:54.179: E/tinyWRAP(26537): MSG: Failed to start timer manager
> 07-02 20:07:54.179: E/org.doubango.ngn.services.impl.NgnSipService(26537):
> Failed to start the stack.
> 07-02 20:07:54.179: E/org.doubango.ngn.services.impl.NgnSipService(26537):
> Additional info:
> 07-02 20:07:54.179: E/org.doubango.ngn.services.impl.NgnSipService(26537):
> Failed to start timer manager
> 07-02 20:07:54.189: E/org.doubango.ngn.services.impl.NgnSipService(26537):
> Failed to start the SIP stack
>
>
>
>
>
>
>
> On Mon, Jul 2, 2012 at 11:25 AM, Abid khan <abid.k...@seecs.edu.pk> wrote:
> > it might be some configuration issue. check your configuration.
>
> > On Mon, Jul 2, 2012 at 1:32 PM, Dev Mhisham <dev.mhis...@gmail.com> wrote:
>
> >> Dear Mamadou,
> >> Many times when i register in Android
> >> It's fail with error " Faild to start sip stack"
> >> This error appear till restart the app
> >> Any advice to avoid this issue?
>
> >> Regards !
> >> Mohamed Hisham
> >> Development Team Leader
> >> Sent from My Lovely iPhone
>
> > --
> > *Abid khan** *

Dev Mhisham

unread,
Jul 3, 2012, 6:11:04 PM7/3/12
to doub...@googlegroups.com, Doubango
I'm using latest ngn with latest doubango binaries
With my own android app accourding to imsdroid as a refrence

Almost this issue happen with wifi connection

Regards !
Mohamed Hisham
Development Team Leader
Sent from My Lovely iPhone

Dev Mhisham

unread,
Jul 6, 2012, 12:33:26 PM7/6/12
to doub...@googlegroups.com
Hello mamadou,
Almost this error appear when i switch from 3g to wifi or from wifi connection to another
Can u help us on it please??


Regards !
Mohamed Hisham
Development Team Leader
Sent from My Lovely iPhone

On Jul 2, 2012, at 9:10 PM, Mamadou <diopm...@doubango.org> wrote:

Mamadou

unread,
Jul 6, 2012, 12:41:37 PM7/6/12
to Doubango
Looks like it's what I said in my previous comment: the stack is not
stopped.
When the network type change, the event will be reported to the
network service. When reported, you must stop the stack then try to
register only when you get an event saying that the connection is up.

On Jul 6, 6:33 pm, Dev Mhisham <dev.mhis...@gmail.com> wrote:
> Hello mamadou,
> Almost this error appear when i switch from 3g to wifi or from wifi connection to another
> Can u help us on it please??
>
> Regards !
> Mohamed Hisham
> Development Team Leader
> Sent from My Lovely iPhone
>

Mohamed hisham

unread,
Jul 6, 2012, 12:52:29 PM7/6/12
to doub...@googlegroups.com
i made register method like this 

public boolean SipRegister{

if(mSipService.getRegistrationState() == ConnectionState.CONNECTING ||

mSipService.getRegistrationState() == ConnectionState.TERMINATING)

{

     mSipService.stopStack();

}

return mSipService.register(null);

}


addition to stopStack when disconnect 

is it true??

Mohamed hisham

unread,
Jul 7, 2012, 10:38:30 AM7/7/12
to doub...@googlegroups.com
Mamadou,
Please check this Log same issue after added stopStack


07-07 16:33:21.704: D/org.doubango.ngn.services.impl.NgnNetworkService(2893): releaseNetworkLock()
07-07 16:33:21.704: D/org.doubango.ngn.services.impl.NgnSipService(2893): Stack stopped
07-07 16:33:21.724: D/memalloc(2893): /dev/pmem: Mapped buffer base:0x53b56000 size:12390400 offset:12255232 fd:62
07-07 16:33:23.656: D/memalloc(2893): /dev/pmem: Unmapping buffer base:0x53b56000 size:12390400 offset:12255232
07-07 16:33:23.706: D/memalloc(2893): /dev/pmem: Mapped buffer base:0x53b56000 size:12390400 offset:12255232 fd:63
07-07 16:33:25.648: D/memalloc(2893): /dev/pmem: Unmapping buffer base:0x53b56000 size:12390400 offset:12255232
07-07 16:33:30.463: D/registerationService(2893): Connected to Internet
07-07 16:33:30.463: I/registerationService(2893): Trying to register:4
07-07 16:33:30.543: D/SipRegister_(2893): onPreExecute()
07-07 16:33:30.543: D/SipRegister_(2893): doInBackground()
07-07 16:33:30.543: I/SipRegister_(2893): register(SipRegister.class)::Start Registering
07-07 16:33:30.543: D/org.doubango.ngn.services.impl.NgnSipService(2893): register()
07-07 16:33:30.543: D/org.doubango.ngn.services.impl.NgnSipService(2893): realm='sip:sip.gulfsip.com', impu='sip:999...@sip.gulfsip.com', impi='9996411'
07-07 16:33:30.543: D/org.doubango.ngn.services.impl.NgnSipService(2893): STUN=no
07-07 16:33:30.553: D/org.doubango.ngn.services.impl.NgnSipService(2893): pcscf-host='sip.gulfsip.com', pcscf-port='9853', transport='tls', ipversion='ipv4'
07-07 16:33:30.583: D/org.doubango.ngn.services.impl.NgnNetworkService(2893): ::1%1
07-07 16:33:30.583: D/org.doubango.ngn.services.impl.NgnNetworkService(2893): 127.0.0.1
07-07 16:33:30.583: D/org.doubango.ngn.services.impl.NgnNetworkService(2893): 10.229.206.174
07-07 16:33:30.583: D/org.doubango.ngn.services.impl.NgnNetworkService(2893): fe80::66a7:69ff:feee:45d2%wlan0
07-07 16:33:30.583: D/org.doubango.ngn.services.impl.NgnNetworkService(2893): 172.20.10.8
07-07 16:33:30.583: D/org.doubango.ngn.services.impl.NgnSipService(2893): Local IP='10.229.206.174'
07-07 16:33:30.583: D/org.doubango.ngn.services.impl.NgnNetworkService(2893): acquireNetworkLock()
07-07 16:33:30.583: D/org.doubango.ngn.services.impl.NgnNetworkService(2893): netType=1 and netSubType=0
07-07 16:33:32.625: E/tinyWRAP(2893): ***ERROR: function: "tsip_transport_layer_start()" 
07-07 16:33:32.625: E/tinyWRAP(2893): file: "src/transports/tsip_transport_layer.c" 
07-07 16:33:32.625: E/tinyWRAP(2893): line: "848" 
07-07 16:33:32.625: E/tinyWRAP(2893): MSG: 2000 milliseconds elapsed and the socket is still not connected.
07-07 16:33:32.625: E/tinyWRAP(2893): ***ERROR: function: "tsip_stack_start()" 
07-07 16:33:32.625: E/tinyWRAP(2893): file: "src/tsip.c" 
07-07 16:33:32.625: E/tinyWRAP(2893): line: "665" 
07-07 16:33:32.625: E/tinyWRAP(2893): MSG: Failed to start sip transport
07-07 16:33:32.625: E/org.doubango.ngn.services.impl.NgnSipService(2893): Failed to start the stack. 
07-07 16:33:32.625: E/org.doubango.ngn.services.impl.NgnSipService(2893): Additional info:
07-07 16:33:32.625: E/org.doubango.ngn.services.impl.NgnSipService(2893): Failed to start sip transport
07-07 16:33:32.625: E/org.doubango.ngn.services.impl.NgnSipService(2893): Failed to start the SIP stack
07-07 16:33:32.635: D/org.doubango.ngn.services.impl.NgnNetworkService(2893): releaseNetworkLock()
07-07 16:33:32.645: D/SipRegister_(2893): Faild to Register

Mamadou

unread,
Jul 9, 2012, 1:16:07 PM7/9/12
to Doubango
No, this is not the same issue.
"MSG: 2000 milliseconds elapsed and the socket is still not connected.
"
This means that you're using a connected transport (TCP or TLS) and
the proxy is not reachable.
> realm='sip:sip.gulfsip.com', impu='sip:9996...@sip.gulfsip.com',
> On Fri, Jul 6, 2012 at 6:52 PM, Mohamed hisham <dev.mhis...@gmail.com>wrote:
>
>
>
>
>
>
>
> > i made register method like this
>
> > public boolean SipRegister{
>
> > if(mSipService.getRegistrationState() == ConnectionState.CONNECTING ||
>
> >    mSipService.getRegistrationState() == ConnectionState.TERMINATING)
>
> >   {
>
> >          mSipService.stopStack();
>
> >   }
>
> > return mSipService.register(null);
>
> > }
>
> > addition to stopStack when disconnect
>
> > is it true??
>
Reply all
Reply to author
Forward
0 new messages