partysip-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Partysip-dev] Not responding to REGISTER message


From: Aymeric Moizard
Subject: Re: [Partysip-dev] Not responding to REGISTER message
Date: Tue, 28 May 2002 11:14:17 +0200 (CEST)

On Tue, 28 May 2002, Tim Na wrote:

> > Can you try thoses cases: (with authentication = off)
> >
> > 1 You send an INVITE to "somebody" which has not registred: you get a 404.
> > 2 "somebody" register and get a 200 OK
> > 3 You send an INVITE to "somebody"and the transaction is forwarded
> >   statelessly by the "ls_localdb" plugin.
> > 4 You send a deregistration for "somebody" (a REGISTER with contact=*)
> >   and you get a 200 OK with an empty list of contact.
> > 5 You send an INVITE to somebody and get a 480 Temporarily unvailable
> > 6 For possible memory related issue, it is interesting to leave the
> > application using the "q" command (you must give the -i for interactive
> > session of partysip). This may reveal some bugs on releasing memory.
> >
>
> I have tested all and it seems to be working fine. For test 4, I have
> used Linphone which was deregistrating with expires: 0 not with
> contact=*. I wonder if the later would cause an error in partysip. ( I
> will test it with other soft phone later.)

That's all fine.
If you send a contact with expires=0 which remove the contact entry
from the list of entry of user in the proxy.
And a contact=* remove ALL entries as many can be registred.

I think it's much better to use a contact entry with expire=0...

> For test 6, I am not sure
> how to reveal bugs on memory as you mentioned, but it seems nothing
> happens when I quit in interactive mode while partysip is engaged in
> registrations.

You mean you don't quit the application?
You must add the option "-i" for interactive mode to be able to
shutdown partysip manually. Did you use that option?

> I also tested with registration with authorization on, and partysip
> had seg fault. the problem was in the user list with had username as
> "none" and password as "none". The pointers in uinfo to username and
> passwd were set to NULL as it was comparing them. So I put simple if
> statement to avoid comparison with NULL and registration with
> authentication works fine.

This is because you tested 0.4.3, it's already fixed in 0.4.4.
Aymeric

> > That's all you have to test!
> > Let me know if something goes wrong...
> > Thanks for your help
> > Aymeric
> >
>
> Hope this helped.. :-)
> Good luck.
> Tim Na.
>
> > > Regards,
> > > Tim Na
> > >
> > > ----- Original Message -----
> > > From: "Aymeric Moizard" <address@hidden>
> > > To: "Tim Na" <address@hidden>
> > > Cc: <address@hidden>
> > > Sent: Thursday, May 23, 2002 5:28 PM
> > > Subject: Re: [Partysip-dev] Not responding to REGISTER message
> > >
> > >
> > > >
> > > >
> > > > On Thu, 23 May 2002, Tim Na wrote:
> > > >
> > > > > I believe the issue here is not as simple as you said...
> > > > > When I tried it in Linux, partysip responds to the register message.
> > > > > I also asked Ralf for he is using the same platform to run the 
> > > > > partysip.
> > > > > He also mentioned of the same symptom.
> > > > > Somehow partysip is not working properly in Solaris environment.
> > > >
> > > > partysip has only been developped on linux since its beginning.
> > > > I don't have a solaris box, and so can't fix the issue for you...
> > > >
> > > > > I am gdbing the partysip and so far I see that it is "hanging" after 
> > > > > the psp_core_start(),
> > > > > not returning from read() in pspm_tlp_execute() thread.
> > > > > I wonder what the difference it makes in Solaris than Linux.
> > > >
> > > > May be the pipe man page will tell you! Othing special can be
> > > > found in the pipe manpage from linux.
> > > >
> > > > Hope you can fix it.
> > > > Aymeric
> > > >
> > > > >       if (FD_ISSET(s, &tlp_fdset))
> > > > >  { /* time to wake up: we receive "q" to quit and any other char to 
> > > > > read all socket */
> > > > >    char tmp[2];
> > > > >    i = ppl_pipe_read(pspm->module->wakeup, tmp, 1);   <======= thread 
> > > > > is not returning here even after the register message.
> > > > >    if ( i==1 && tmp[0]=='q')
> > > > >      {
> > > > >        TRACE(trace(__FILE__,__LINE__,TRACE_LEVEL1,NULL,"INFO: Exiting 
> > > > > tlp module!\n"));
> > > > >        return 0;
> > > > >      }
> > > > >  }
> > > > >
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Aymeric Moizard" <address@hidden>
> > > > > To: "Tim Na" <address@hidden>
> > > > > Cc: <address@hidden>
> > > > > Sent: Tuesday, May 21, 2002 5:07 PM
> > > > > Subject: Re: [Partysip-dev] Not responding to REGISTER message
> > > > >
> > > > >
> > > > > >
> > > > > > partysip is NOT receiving any message.
> > > > > > Check your linphone configuration.
> > > > > >
> > > > > > Also, I tested the CVS version of linphone...
> > > > > >
> > > > > > Simon? when do you plan to release the *highly
> > > > > > wanted* linphone updates?
> > > > > >
> > > > > > Aymeric
> > > > > >
> > > > > > On Tue, 21 May 2002, Tim Na wrote:
> > > > > >
> > > > > > > The below is all the log info that I got.
> > > > > > > I have already sent a register message from the linphone.
> > > > > > >
> > > > > > > htna_view:htna$ more partysip.log
> > > > > > > L0 -1021942366- <../../partysip-0.4.3/src/psp_utils.c: 171> INFO: 
> > > > > > > registrar plug
> > > > > > > in: Number of auth rules: 0. Number of user entries: 5
> > > > > > > L2 -1021942366- <../../../partysip-0.4.3/plugin/udp/udp_core.c: 
> > > > > > > 61> INFO: udp pl
> > > > > > > ugin: plugin_init()!
> > > > > > > L2 -1021942366- 
> > > > > > > <../../../partysip-0.4.3/plugin/syntax/syntax_core.c: 51> INFO:
> > > > > > > syntax plugin: plugin_init()!
> > > > > > > L2 -1021942366- 
> > > > > > > <../../../partysip-0.4.3/plugin/filter/filter_core.c: 62> INFO:
> > > > > > > filter plugin: plugin_init()!
> > > > > > > L3 -1021942366- 
> > > > > > > <../../../partysip-0.4.3/plugin/filter/filter_core.c: 141> INFO:
> > > > > > >  filter plugin: Authentication is turned off!
> > > > > > > L2 -1021942366- <../../../partysip-0.4.3/plugin/auth/auth_core.c: 
> > > > > > > 64> INFO: auth
> > > > > > >  plugin: plugin_init()!
> > > > > > > L3 -1021942366- <../../../partysip-0.4.3/plugin/auth/auth_core.c: 
> > > > > > > 77> INFO: auth
> > > > > > >  plugin: Authentication is turned off!
> > > > > > > L2 -1021942366- 
> > > > > > > <../../../partysip-0.4.3/plugin/rgstrar/rgstrar_core.c: 63> INFO
> > > > > > > : rgstrar plugin: plugin_init()!
> > > > > > > L2 -1021942366- 
> > > > > > > <../../../partysip-0.4.3/plugin/ls_sless/ls_sless_core.c: 61> IN
> > > > > > > FO: ls_sless plugin: plugin_init()!
> > > > > > > L2 -1021942366- 
> > > > > > > <../../../partysip-0.4.3/plugin/ls_localdb/ls_localdb_core.c: 54
> > > > > > > > INFO: ls_localdb plugin: plugin_init()!
> > > > > > > htna_view:htna$
> > > > > > >
> > > > > > > Since there was no message retrieving info, I doubted about the 
> > > > > > > message reception, but
> > > > > > > when I used libosip-0.7.3's example_mt ua, the ua was returning 
> > > > > > > OK for the same register message
> > > > > > > from linphone. So I assume that the message is reaching to port 
> > > > > > > 5060 for sure, but perhaps the
> > > > > > > partysip is not respoding to the message..??
> > > > > > >
> > > > > > > ----- Original Message -----
> > > > > > > From: "Aymeric Moizard" <address@hidden>
> > > > > > > To: "Tim Na" <address@hidden>
> > > > > > > Cc: <address@hidden>
> > > > > > > Sent: Monday, May 20, 2002 7:50 PM
> > > > > > > Subject: Re: [Partysip-dev] Not responding to REGISTER message
> > > > > > >
> > > > > > >
> > > > > > > >
> > > > > > > > You registrar configuration seems OK.
> > > > > > > > May be old linphone release does not work?
> > > > > > > >
> > > > > > > > Can you run partysip this way
> > > > > > > > partysip -d 6 -l partysip.log
> > > > > > > >
> > > > > > > > and please send the log file?
> > > > > > > > Ay
> > > > > > > >
> > > > > > > > On Mon, 20 May 2002, Tim Na wrote:
> > > > > > > >
> > > > > > > > > Hi,
> > > > > > > > >
> > > > > > > > > I have hard time running partysip as a registrar server.
> > > > > > > > > I am not sure if the partysip.conf file is wrong or not, 
> > > > > > > > > would anyone check the
> > > > > > > > > info below to see what's wrong.
> > > > > > > > > Thanks in advance. :-)
> > > > > > > > >
> > > > > > > > > # global config
> > > > > > > > >
> > > > > > > > > serverip       = 165.213.84.84
> > > > > > > > > servername     = 165.213.84.84
> > > > > > > > > serverport_udp = 5060
> > > > > > > > >
> > > > > > > > > # use this for local test:
> > > > > > > > > #serverip    = 165.213.84.84
> > > > > > > > > #serverip2    = 80.32.24.53    this could be the second 
> > > > > > > > > interface.
> > > > > > > > >
> > > > > > > > > # this is used for generating random string and MUST BE AT 
> > > > > > > > > LEAST 10 characters
> > > > > > > > > magicstring = partysip_a45bc357
> > > > > > > > > # this is used for generating random string and MUST BE AT 
> > > > > > > > > LEAST 10 characters
> > > > > > > > > serverrealm = "partysip.org"
> > > > > > > > >
> > > > > > > > > # ask for authentication  on/off
> > > > > > > > > authentication = off
> > > > > > > > >
> > > > > > > > > # mode for ls_sless plugin
> > > > > > > > > mode = stateless
> > > > > > > > >
> > > > > > > > > # sub configs
> > > > > > > > > #   - ALL GLOBAL CONFIGURATION MUST BE ABOVE -
> > > > > > > > >
> > > > > > > > > <filter>
> > > > > > > > >
> > > > > > > > > # the first rule that match is taken!
> > > > > > > > >
> > > > > > > > > # <rule>  <return code>  <header>  <string>
> > > > > > > > >
> > > > > > > > > # reject request with domain.org in the from header and NOT 
> > > > > > > > > domain.org in the to
> > > > > > > > > #reject 404 from !domain.org  to !domain.org
> > > > > > > > > # reject request with holemail.net in the to header
> > > > > > > > > #reject 403 to   holemail.net
> > > > > > > > > # reject request with holemail.net in the rquri header
> > > > > > > > > #reject 403 to   holemail.net
> > > > > > > > > # reject request with holemail.net in the rquri header
> > > > > > > > >
> > > > > > > > > </filter>
> > > > > > > > >
> > > > > > > > > <userinfo>
> > > > > > > > >
> > > > > > > > > # static user list of known users
> > > > > > > > > #      this would be better to retreive some of this config 
> > > > > > > > > element
> > > > > > > > > #      from /etc/passwd, an LDAP directory...
> > > > > > > > > #
> > > > > > > > > # for "user" type:
> > > > > > > > > #  <user>       <NAME>  <DOMAINNAME>  <auth_login>   
> > > > > > > > > <auth_passwd>    <URI>
> > > > > > > > > #  user  jack   atosc.org   jack secret     
> > > > > > > > > sip:address@hidden<sip:anod
> > > > > > > > > e.atosc.org>;lr
> > > > > > > > >
> > > > > > > > > #user  sip:address@hidden    ua    ua    sip:address@hidden
> > > > > > > > > #user  sip:address@hidden   none  none  
> > > > > > > > > sip:address@hidden:5080
> > > > > > > > > #user  sip:address@hidden    ua    ua    
> > > > > > > > > sip:address@hidden:5070
> > > > > > > > > #user  sip:address@hidden   none  none  
> > > > > > > > > sip:address@hidden:5080
> > > > > > > > >
> > > > > > > > > user  sip:address@hidden    adtech115 adtech115  
> > > > > > > > > sip:address@hidden
> > > > > > > > > user  sip:address@hidden    adtech113 adtech113  
> > > > > > > > > sip:address@hidden
> > > > > > > > > user  sip:address@hidden    siemens  123456      
> > > > > > > > > sip:address@hidden
> > > > > > > > > user  sip:address@hidden    none  none           
> > > > > > > > > sip:address@hidden:5090
> > > > > > > > > user  sip:address@hidden    tim      none        
> > > > > > > > > sip:address@hidden
> > > > > > > > >
> > > > > > > > > </userinfo>
> > > > > > > > >
> > > > > > > > > #who needs authentication
> > > > > > > > >
> > > > > > > > > auth from       sip.wellx.org  INVITE REGISTER
> > > > > > > > > auth    from    127.0.0.1  INVITE REGISTER
> > > > > > > > > auth    to      gateway.org INVITE
> > > > > > > > >
> > > > > > > > > </registrar>
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > And I am using Linphone's register message as below.
> > > > > > > > >
> > > > > > > > > REGISTER sip:165.213.84.84 SIP/2.0
> > > > > > > > > Via: SIP/2.0/UDP 165.213.84.91:5060
> > > > > > > > > From: <sip:address@hidden>
> > > > > > > > > To: <sip:address@hidden>
> > > > > > > > > Call-ID: address@hidden
> > > > > > > > > CSeq: 1 REGISTER
> > > > > > > > > Contact: <sip:address@hidden>
> > > > > > > > > expires: 60
> > > > > > > > > user-agent: oSIP/Linphone-0.7.0
> > > > > > > > > Content-Length: 0
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > Partysip-dev mailing list
> > > > > > > address@hidden
> > > > > > > http://mail.freesoftware.fsf.org/mailman/listinfo/partysip-dev
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Partysip-dev mailing list
> > > > > address@hidden
> > > > > http://mail.freesoftware.fsf.org/mailman/listinfo/partysip-dev
> > > > >
> > > >
> > > >
> > >
> > > _______________________________________________
> > > Partysip-dev mailing list
> > > address@hidden
> > > http://mail.freesoftware.fsf.org/mailman/listinfo/partysip-dev
> > >
> >
> >
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]