[SIP SIMPLE client] sylk is not relaying chat messages

Saúl Ibarra Corretgé saul at ag-projects.com
Fri Apr 29 22:01:48 CEST 2011

On 04/29/2011 07:58 PM, Juha Heinanen wrote:
> saul,
> i added some more debug to dispatch_private_message function:
>      def dispatch_private_message(self, session, message):
>          # Private messages are delivered to all sessions matching the recipient but also to the sender,
>          # for replication in clients
>          recipient = message.recipients[0]
>          log.msg(u'Dispatching private message "%s" to recipient "%s" with remote_identity "%s"' % (message.body, recipient.uri, session.remote_identity.uri))
>          for s in (s for s in self.sessions if s is not session and s.remote_identity.uri in (recipient.uri, session.remote_identity.uri)):
>              try:
>                  log.msg(u'Trying "%s"' % (session.remote_identity))
> 		...
> when user foo at test.fi sends message 'hello', this gets printed to syslog:
> Apr 29 20:54:18 sip sylk-server[10430]: Dispatching private message "hello" to recipient "sip:+35892345671*5393*2075 at cf.test.fi" with remote_identity "sip:foo at test.fi"
> it shows that the for loop is executed zero times meaning that nothing
> is send.

Hum, that message shouldn't be handled there, it should not be private. 
I'll dig into that.

Saúl Ibarra Corretgé
AG Projects

More information about the SIPBeyondVoIP mailing list