hello to the list and problem with minisip stable

Carlos Oliva telematico at gmail.com
Tue May 22 18:36:33 CEST 2007


Hello Cesc,

I send you the little diff to make stable branch compile with
gcc-4.1.2 (ubuntu 7.04) using aec without problems. If you like you
can merge this to svn. This is for X86, first I have to make minisip
work in my laptop before try in arm.

I'm searching why minisip can't register with a proxy, I've compiled
the code with debug option and I get the following: (runing a show
all)


root at portatil:~# minisip

Starting MiniSIP ... welcome!

Initializing NetUtil
Creating SipSoftPhoneConfiguration
init 1/9: Creating timeout provider
init 2/9: Creating GUI
Creating TextUI
Setting contact db
Thread 2 running - doing initParseConfig
init 3/9: Parsing configuration file ()
Config file version checked ok!
Identities:
        identity=1; username=carlos; domain=portatil.cabocom.net
proxy=[proxyString=portatil.cabocom.net; proxyIp=portatil.cabocom.net;
port=5061; transport=UDP; autodetect=no; user=user; password=password;
expires=1000]; isRegistered=0
init 4/9: Creating IP provider
SimpleIPProvider: localIp =
SimpleIPProvider: checking interface = lo with IP=127.0.0.1
SimpleIPProvider: checking interface = eth0 with IP=192.168.1.9
SimpleIPProvider: checking interface = eth1 with IP=192.168.0.103
SimpleIPProvider: using localIP =  192.168.1.9
init 5/9: Creating MediaHandler
Sound I/O: using Spatial Audio Mixer
Adding audio codec: G.711
Adding audio codec: gsm
init 6/9: Creating MSip SIP stack
init 7/9: Connecting GUI to SIP logic

To auto-complete, press <tab>. For a list of commands, press <tab>.

IDLE$ IDLE$ init 8.2/9: Starting TCP transport worker thread
init 9/9: Registering Identities to registrar server

Registering user carlos at portatil.cabocom.net to proxy
portatil.cabocom.net, requesting domain portatil.cabocom.net


IDLE$ show all
Calls:
    (0) SipDialogRegister[portatil.cabocom.net]   State: s1_tryingnoauth
Transactions for call SipDialogRegister[portatil.cabocom.net]
    (0) transaction_noninviteclient[branch=z9hG4bK644610562,type=]
State: trying  ObjecdId: 135822032
Timeouts:
      Command: timerE  Time: 0.958  Receiver ObjectId: 1
      Command: timerF  Time: 25.446  Receiver ObjectId: 1
The call could not be completed because of a network error.
IDLE$

For this I understand all is ok, but in the logs of the ser (the sip
proxy) i don't see any traffic, but if version 0.6.2 is used I can
register ok with the proxy. The only strange thing I see is:
s1_tryingnoauth

Have you see this problem before?

I know stable version is too old, but I need the lightest software for
the machine (I so affraid because cpu is 333 mhz and have to run
mozilla minimo with lots of javascript, X, minisip and mplayer at same
time) and have only 24 MB ROM do you think is better I use trunk?

Thanks in advance (and excuse my bad english, I know I speak english
like apaches in cow-boy films)

Carlos Oliva (telematico at gmail.com)

2007/5/19, Cesc <cesc.santa at gmail.com>:
> Hi Carlos,
>
> I think people here would agree on not using the minisip "stable"
> version ... it is old, veeery old. We do not really support it anymore
> ...
> If you provide us with details, we may try help you in solving the
> issues you get.
> For example, first you could send a diff with all the changes you had
> to do in order to compile for your platform ... it is cool to be able
> to support one more.
> Second. the 100% thing I had also seen before, but not with the latest
> one. I don't know if it could have something to do with the new GCC
> version ... just a wild guess here. I don't even know how we could
> trace this ... maybe by attaching gdb to the process?? mmm, maybe not
> too helpful ...
> The register problem, it would help setting the code to max debug and
> sending us the log ... and if there is some network traffic, that will
> help too.
>
> Regards,
>
> Cesc
>
> On 5/18/07, Carlos Oliva <telematico at gmail.com> wrote:
> > Hello to the list! Im new here but have a "litle" questions about
> > minisip and the verions in the svn
> >
> > We are triying to use minisip in a Linux embedded device with a Pxa270
> > arm cpu (same as zaurus) with 64 mb ram and 24 mb rom, is a armv5.
> >
> > First we use verision 0.6.2 compiled with openenbedded (same version
> > as familiar use) and everithing is ok, but we have a big problem with
> > echo (the gadgets have microphone and speaker not earphones)
> >
> > We tried with trunk verison of svn, but after a headache to compile
> > this for arm, we saw that the cpu is going to 100 % (is a 333 mhz
> > machine) two process of minisip take all the cpu, and the audio is
> > awfull (we think is for packet loss). We don't undestand why version
> > 0.6.2 is taken about 5 % of cpu while talking and receiving audio, and
> > trunk version takes all the machine... I try trunk version in my
> > desktop computer (centrino code duo 1600 mhz) and after a time (about
> > 1 minute, but isn't exact) minisip takes the 100% of cpu too! somebody
> > can explain this?
> >
> > we tried "stable" version of the svn, and correct some problems in
> > code (the problem with one class in gcc 4 and a bad definition of a
> > function in a header file when using echo canceler) and after this...
> > Minisip can't register to a proxy! (the proxy is ok, minisip 0.6.2 is
> > registering perfectly) and we can't make calls...
> > Any ideas? I'm very disapointed and don't know what to do, i'm
> > thinking in implement the aec in 0.6.2 code, but it isn't easy with my
> > c++ level.
> >
> > Somebody have any ideas?
> >
> > Thank you and excuse for my bad english (I'm spanish)
> >
> > Regards: Carlos Oliva (telematico at gmail.com)
> >
> >
> > --
> > --------------------------------------------------------------
> > "La libertad no se recarga con tarjeta"
> >                        pintada en una tienda de amena
> > _______________________________________________
> > Minisip-users mailing list
> > Minisip-users at minisip.org
> > http://lists.minisip.org/mailman/listinfo/minisip-users
> >
>


-- 
--------------------------------------------------------------
"La libertad no se recarga con tarjeta"
                       pintada en una tienda de amena
-------------- next part --------------
--- /home/carlos/minisip2/minisip/branches/stable/minisip/aec/aec.h.orig	2007-05-22 16:08:10
+++ /home/carlos/minisip2/minisip/branches/stable/minisip/aec/aec.h	2007-05-22 16:18:57
@@ -142,7 +142,7 
  * in   s1: loudspeaker signal
  * return:  echo cancelled microphone signal
  */
-  int AEC::doAEC(int d, int x);
+  int doAEC(int d, int x);
 };
 
 #define _AEC_H



--- /home/carlos/minisip2/minisip/branches/stable/minisip/mediahandler/Media.h.orig	2007-05-22 16:08:14
+++ /home/carlos/minisip2/minisip/branches/stable/minisip/mediahandler/Media.h	2007-05-22 16:22:39
@@ -138,7 +138,7 
 		 * @returns a list of reference to Codec objects, sorted
 		 * according to user preferences (first is preferred)
 		 */
-		std::list< MRef<Codec *> >  Media::getAvailableCodecs();
+		std::list< MRef<Codec *> >  getAvailableCodecs();
 
 		/**
 		 * Used to query media specific attributes to add in the
@@ -175,7 +175,7 
 		 * @returns a reference to the CODEC instance created, or
 		 * NULL if no CODEC with this payload type was available
 		 */
-		MRef<CodecState *> Media::createCodecInstance( uint8_t payloadType );
+		MRef<CodecState *> createCodecInstance( uint8_t payloadType );
 		
--- /home/carlos/minisip2/minisip/branches/stable/minisip/soundcard/SoundRecorderCallback.h.orig	2007-05-22 16:08:10
+++ /home/carlos/minisip2/minisip/branches/stable/minisip/soundcard/SoundRecorderCallback.h	2007-05-22 16:24:29
@@ -43,7 +43,8 
 	 */
 	virtual void srcb_handleSound(void *samplearr, int length)=0;
 	#ifdef AEC_SUPPORT
-	virtual void srcb_handleSound(void *samplearr, void *samplearrR)=0;		//hanning
+	virtual void srcb_handleSound(void *samplearr, int length,void *samplearrR)=0; //carlos
+//	virtual void srcb_handleSound(void *samplearr, void *samplearrR)=0;		//hanning
 	#endif
 //	virtual uint32_t srcb_getSSRC()=0;
 };
                 Media();










More information about the Minisip-users mailing list