Re: [jdev] Help choosing the right technology

2012-11-13 Thread Abhinav Singh
Most of the questions are already answered and I believe you can achieve all 
that you want with XMPP alone.

Coming back to the question "Help choosing the right technology":
if machine to machine communication and light weight messaging transport 
(especially since you are on mobile) are your top priority, consider investing 
some time in MQTT. 

Drawback: Compared to XMPP you won't find enough open source implementations 
for MQTT, 
(however the specifications are dead-simple and in no time you can pull off 
your own client/server implementations)
Also, if you are looking to take full advantage of roster/presence/messaging 
that comes with XMPP, 
MQTT might not be the right choice for you.

--
Abhinav Singh
http://abhinavsingh.com/

On 13-Nov-2012, at 1:37 PM, Michael Weibel  
wrote:

> 
>> Noting that I'm an expert in neither of these things - APNS is largely
>> going to be sending notifications to the user, which is unlikely to be
>> useful in a machine<>machine client. GCM seems to be duplicating some
>> of the functionality you'd get from the XMPP channel.
> 
> True.
> 
>> It's worth noting that using load testing tools on XMPP servers (at
>> least the higher performance ones) almost always leads to performance
>> testing of the load testing tools, rather than the server itself, as
>> the server will typically process the data faster than the tool will
>> send it.
> 
> Yes, that's my experience as well ;) What tsung provides is that you can 
> relatively easily use multiple machines to do the load testing together which 
> might lead to actually load testing the servers. 
> 
>> They're still useful, though.
>> 
>>>>> Message reliability is very important (as said previously). Also you'll 
>>>>> need an XMPP library which is robust. There's e.g. asmack[3] for Android 
>>>>> and e.g. XMPPFramework[4] for iOS.
>>>> There are more choices than just these (and these may not be the best 
>>>> choices).
>>> Could you please elaborate on this? As I was searching for libraries I 
>>> couldn't find a lot more than those.
>> 
>> Being entirely partisan, I'd use Swiften on iOS. There's also a
>> Swiften branch for Android (for a C++ interface), and I expect Stroke
>> (Java) will support Android pretty soon. I'm sure there are other
>> possible libraries, too.
> 
> Interesting. Thanks for the hints.
> 
>> I'm encouraging people to do a bit of digging and see what the options
>> are, and not pick the first library/server/client/whatever that's
>> mentioned.
> 
> That's indeed important. 
> ___
> JDev mailing list
> Info: http://mail.jabber.org/mailman/listinfo/jdev
> Unsubscribe: jdev-unsubscr...@jabber.org
> ___

___
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


Re: [jdev] XMPP protocol testing libraries/services

2012-10-09 Thread Abhinav Singh
Try escalus: https://github.com/goj/escalus
This is specifically meant for this very purpose.

From it's description:
"Escalus is Erlang library for convenient testing of XMPP servers. 
It's intended to be used with Common Test. 
Escalus is aimed at checking correctness of XMPP server behaviour, in contrast 
to tools such as Tsung which are about stress testing, and don't verify 
correctness."

 
--
Abhinav Singh,
Bangalore, India.
http://abhinavsingh.com




 From: Roberto Ostinelli 
To: Jabber/XMPP software development list  
Sent: Tuesday, October 9, 2012 1:01 AM
Subject: [jdev] XMPP protocol testing libraries/services
 

Dear all,

is there a library/service out there that allows to test for correctness of 
xmpp servers implementations?

Thank you,

r.
___
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
__
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


Re: [jdev] Keeping multiple connected resources in sync with chat conversations

2012-09-25 Thread Abhinav Singh
Thanks Matthew and Lance, this seems like exactly what I am after.

For our use cases, a temporary fix will be achieved with 0280 and 
combining that with 0313 seems like a way towards a stable/permanent solution.

Stable in the sense that we want to handle all cases of syncing up resources in 
active conversations
e.g. a resource going offline due to internet disconnectivity might loose a few 
message with just 0280 in place.
0313 will help syncing back for various use cases we have in mind.

Finally, I would like to ask is there an existing implementation for 0280 
inside ejabberd.
Even though 0280 looks quite straight forward, I will love to use an already 
tested solution.
http://www.process-one.net/en/ejabberd/protocols/ indicates 0280 has already 
been released in open source, 
but where can I find it. ejabberd mainline (git) and ejabberd-modules (svn) 
both doesn't seem to have it.


Thanks again.

Cheers,
--
Abhinav Singh,
Bangalore, India.
http://abhinavsingh.com




 From: Matthew Wild 
To: Abhinav Singh ; Jabber/XMPP software development 
list  
Sent: Tuesday, September 25, 2012 4:30 PM
Subject: Re: [jdev] Keeping multiple connected resources in sync with chat 
conversations
 
On 25 September 2012 08:30, Abhinav Singh  wrote:
> Hello Friends,
>
> I am exploring ideas on how to keep multiple connected resources of a user
> in sync with chat conversations.

> Has anyone worked on a similar use case?

I'm doing exactly this using XEP-0280 and XEP-0313 - they work well together.

Regards,
Matthew___
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


[jdev] Keeping multiple connected resources in sync with chat conversations

2012-09-25 Thread Abhinav Singh
Hello Friends,

I am exploring ideas on how to keep multiple connected resources of a user in 
sync with chat conversations.

Consider this simple example:
1) User-A have two resource connected a.k.a. User-A/Home and User-A/Work
2) User-A is in conversation with User-B and as per standard workflow 
User-A/Work resource has been locked in
3) Now suppose User-A leaves work place and wants to continue conversation with 
User-B from home
4) However, User-A/Home client have no idea about the chat conversations 
happened between User-A/Work and User-B
5) For convenience of  User-A we would like to have a sync up of these chat 
conversations

Some Possible Solutions:
1) With no server side archival policy, one solution is to relay chat messages 
even to non-locked in user resources so that they are always in-sync in 
realtime2) With no server side archival policy, serve 1-2-1 conversations via a 
pubsub node or muc room so that all user resources are always in-sync
3) With server side archival policy, non-locked in resources can do a sync when 
user becomes active on those clients

Has anyone worked on a similar use case?
I will be glad to hear how others have solved such use cases.
What are pros/cons of a different approaches assuming this will 
be implemented for millions of user in our system.

Cheers,
--
Abhinav Singh,
Bangalore, India.
http://abhinavsingh.com
___
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


Re: [jdev] XML Gtalk handshake

2012-08-23 Thread Abhinav Singh
A snippet from Jaxl PHP library:
base64_encode("\x00".$user."\x00".$pass)

You can find exact details of implementation around line no. 155 here
https://github.com/abhinavsingh/JAXL/blob/v3.x/xmpp/xmpp_stream.php#L155
 
--
Abhinav Singh,
Bangalore, India
http://abhinavsingh.com



 From: Yoni Elentok 
To: jdev@jabber.org 
Sent: Thursday, August 23, 2012 4:28 PM
Subject: Re: [jdev] XML Gtalk handshake
 

Then If i what to connect with SASL How i need to encode my user and password?
  what i need to write between the user and password?

in the book " " it say "(The Base64-decoded string is  
<0>alice<0>password—clearly Alice needs some instruc-
tion on best practices for information security.)"
what i need to write instead of <0>?

thanks
___
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
__
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


Re: [jdev] Understanding target SOCKS5 connection flow with streamhost/requester

2010-11-11 Thread Abhinav Singh
For other developer info:
I messed around with http://tools.ietf.org/html/rfc1928#page-5 Section 5 
(Addressing) while sending the request detail packet.
$pkt = pack("C5", 0x05, 0x01, 0x00, 0x03, strlen($dstAddr)).$dstAddr.pack("n", 
0); is the right representation of request detail pkt.

Now both direct and mediated conn. file transfer seems to go smoothly.

--
Abhinav Singh,
Founder, Jaxl Inc.
Bangalore, India
http://abhinavsingh.com/blog




________
From: Abhinav Singh 
To: Jabber/XMPP software development list 
Sent: Wed, November 10, 2010 3:27:57 AM
Subject: Re: [jdev] Understanding target SOCKS5 connection flow with 
streamhost/requester


Thanks Dave, I overlooked for the value of Target JID :(

Further I tried to establish S5B connection between the target and streamhost:
1) Target sends initial version selection message $pkt = pack("C3", 0x05, 0x01, 
0x00); 

2) Upon success, Target tries to send request details $pkt = pack("C4H*n", 
0x05, 
0x01, 0x00, 0x03, $dstAddr, 0);
3) Upon success, Target should notify requester about established S5B stream

However, my client don't get a success response from the proxy server after the 
2nd step.
I am using ejabberd mod_proxy65 module to test this out.

Any pointer/help is greatly appreciated.

--
Abhinav Singh,
Founder, Jaxl Inc.
Bangalore, India
http://abhinavsingh.com/blog





From: Dave Cridland 
To: Jabber/XMPP software development list 
Sent: Wed, November 10, 2010 3:01:31 AM
Subject: Re: [jdev] Understanding target SOCKS5 connection flow with 
streamhost/requester

On Tue Nov  9 21:22:59 2010, Abhinav Singh wrote:
> (01:56:47) jabber:Sending (1...@dev.jaxl.im/2557233831289334472350031):
> http://jabber.org/protocol/bytestreams'>

Note the target jid above.


sha1("purplee6c1c0cbj...@dev.jaxl.im/5859500411289328645518583j...@dev.jaxl.im/5859500411289328645518583")

>  which equates to 59aadec011bdb96cb0f2fea5e6f6596e5a0d6f93 and not
> 50c0abe90692f69b56e49a53334daf8c6ad26f9e as shown in the logs.

It's SHA1(SID + Requester JID + Target JID):

>>> import hashlib
>>> hash =  hahslib.sha1()
>>> hash.update('purplee6c1c0cb')
>>> hash.update('j...@dev.jaxl.im/5859500411289328645518583')
>>> hash.update('1...@dev.jaxl.im/2557233831289334472350031')
>>> hash.hexdigest()
'50c0abe90692f69b56e49a53334daf8c6ad26f9e'

Dave.
--Dave Cridland - mailto:d...@cridland.net - xmpp:d...@dave.cridland.net
- acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
- http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade
___
JDev mailing  list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


  ___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


Re: [jdev] Understanding target SOCKS5 connection flow with streamhost/requester

2010-11-09 Thread Abhinav Singh
Thanks Dave, I overlooked for the value of Target JID :(

Further I tried to establish S5B connection between the target and streamhost:
1) Target sends initial version selection message $pkt = pack("C3", 0x05, 0x01, 
0x00); 

2) Upon success, Target tries to send request details $pkt = pack("C4H*n", 
0x05, 
0x01, 0x00, 0x03, $dstAddr, 0);
3) Upon success, Target should notify requester about established S5B stream

However, my client don't get a success response from the proxy server after the 
2nd step.
I am using ejabberd mod_proxy65 module to test this out.

Any pointer/help is greatly appreciated.

--
Abhinav Singh,
Founder, Jaxl Inc.
Bangalore, India
http://abhinavsingh.com/blog





From: Dave Cridland 
To: Jabber/XMPP software development list 
Sent: Wed, November 10, 2010 3:01:31 AM
Subject: Re: [jdev] Understanding target SOCKS5 connection flow with 
streamhost/requester

On Tue Nov  9 21:22:59 2010, Abhinav Singh wrote:
> (01:56:47) jabber:Sending (1...@dev.jaxl.im/2557233831289334472350031):
> http://jabber.org/protocol/bytestreams'>

Note the target jid above.


sha1("purplee6c1c0cbj...@dev.jaxl.im/5859500411289328645518583j...@dev.jaxl.im/5859500411289328645518583")

>  which equates to 59aadec011bdb96cb0f2fea5e6f6596e5a0d6f93 and not
> 50c0abe90692f69b56e49a53334daf8c6ad26f9e as shown in the logs.

It's SHA1(SID + Requester JID + Target JID):

>>> import hashlib
>>> hash = hahslib.sha1()
>>> hash.update('purplee6c1c0cb')
>>> hash.update('j...@dev.jaxl.im/5859500411289328645518583')
>>> hash.update('1...@dev.jaxl.im/2557233831289334472350031')
>>> hash.hexdigest()
'50c0abe90692f69b56e49a53334daf8c6ad26f9e'

Dave.
--Dave Cridland - mailto:d...@cridland.net - xmpp:d...@dave.cridland.net
- acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
- http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade
___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___



  ___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


[jdev] Understanding target SOCKS5 connection flow with streamhost/requester

2010-11-09 Thread Abhinav Singh
Hi,

While going through XEP-0065 and related RFC's i decided to play around with 
the 
debug window of Pidgin. Here is what I found when a connected account tries to 
accept a file:

(01:56:47) jabber:Recv (572): http://jabber.org/protocol/bytestreams' 
sid='purplee6c1c0cb'>
(01:56:47) dnsquery: Performing DNS lookup for 192.168.2.103
(01:56:47) dnsquery: IP resolved for 192.168.2.103
(01:56:47) proxy: Attempting connection to 192.168.2.103
(01:56:47) proxy: Connecting to 50c0abe90692f69b56e49a53334daf8c6ad26f9e:0 via 
192.168.2.103:58919 using SOCKS5
(01:56:47) socks5 proxy: Connection in progress
(01:56:47) jabber: in jabber_si_xfer_bytestreams_send_connected_cb
(01:56:47) socks5 proxy: Connected.
(01:56:47) jabber: in jabber_si_xfer_bytestreams_send_read_cb
(01:56:47) jabber: reading those first two bytes
(01:56:47) jabber: in jabber_si_xfer_bytestreams_send_read_cb
(01:56:47) jabber: reading 1 bytes for auth methods (trying to read 1 now)
(01:56:47) jabber: checking to make sure we're socks FIVE
(01:56:47) jabber: going to test 1 different methods
(01:56:47) jabber: testing 0
(01:56:47) socks5 proxy: Able to read.
(01:56:47) jabber: in jabber_si_xfer_bytestreams_send_read_again_cb
(01:56:47) jabber: reading the first 5 bytes
(01:56:47) jabber: in jabber_si_xfer_bytestreams_send_read_again_cb
(01:56:47) jabber: reading 42 bytes for DST.ADDR + port num (trying to read 42 
now)
(01:56:47) stun: using server 
(01:56:47) jabber: SOCKS5 connection negotiation completed. Waiting for IQ 
result to start file transfer.
(01:56:47) s5: reallocing from 5 to 18
(01:56:47) s5: reallocing from 18 to 20
(01:56:47) proxy: Connected to 50c0abe90692f69b56e49a53334daf8c6ad26f9e:0.
(01:56:47) jabber:Sending (1...@dev.jaxl.im/2557233831289334472350031): 
http://jabber.org/protocol/bytestreams'>

 
Now as per section 5.3.2. of XEP-0065 here is how Pidgin should have calculated 
hash for DST.ADDR:
sha1("purplee6c1c0cbj...@dev.jaxl.im/5859500411289328645518583j...@dev.jaxl.im/5859500411289328645518583")
 which equates to 59aadec011bdb96cb0f2fea5e6f6596e5a0d6f93 and not 
50c0abe90692f69b56e49a53334daf8c6ad26f9e as shown in the logs.

Am i missing something from the XEP doc?

--
Abhinav Singh,
Founder, Jaxl Inc.
Bangalore, India
http://abhinavsingh.com/blog



  ___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


[jdev] Releasing Jaxl 2.1.1 - Real time web (XMPP over Bosh) development support, performance fix, monitoring and other options

2010-09-13 Thread Abhinav Singh
Jaxl 2.1.1 is out! Jaxl 2.1.1 adds a lot of performance enhancements 
to the library core. Also adds new options for monitoring, usage stats 
collection, rate limiting, running background cron job, log rotation 
and other utilities. This version also provides a stable framework for 
real time web application development using XMPP over Bosh.


Download: http://code.google.com/p/jaxl/downloads/list 
Changelog: http://bit.ly/jaxl211 

Thanks to the folks at Movim project (http://www.movim.eu/) whose 
regular feedback has helped Jaxl library in providing a stable real 
time web application development support. 
Questions, feature request, insights, bugs, commit patches are 
welcomed! 

 --
Abhinav Singh,
Founder, Jaxl Inc.
Bangalore, India
http://abhinavsingh.com/blog



  ___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


Re: [jdev] Fw: Unexpected 503 error code returned by MUC (ejabberd), help required

2010-08-23 Thread Abhinav Singh
Hi,

I think i got the clue. This problem disappears when i restart ejabberd server 
and destroy existing rooms.
However problem starts to re-appear after some time.

I get a hint that max_user_conferences which defaults to 10 is the problem here.
As user imjaxlim tries to enter 11th room, it starts getting 503 error code, 
while other users do not.

Though now it is out of jdev list probably, can I set custom 
max_user_conferences for specific users?
Thanks for the help.

--
Abhinav Singh,
Founder, Jaxl Inc.
Bangalore, India
http://abhinavsingh.com/blog





From: Abhinav Singh 
To: ke...@kismith.co.uk; Jabber/XMPP software development list 
Sent: Mon, August 23, 2010 6:57:30 PM
Subject: Re: [jdev] Fw: Unexpected 503 error code returned by MUC (ejabberd), 
help required


Hi,

Probably these will help explain my misery. As I wrote before sending 
http://jabber.org/protocol/muc qualified namespace presence stanza makes no 
difference to the output.

Below are the logs from my XMPP client library:
[10339] 2010-08-23 03:18:42 - [[XMPPSend]] 153




[10339] 2010-08-23 03:18:43 - [[XMPPSend]] 171




[10339] 2010-08-23 03:18:44 - [[XMPPGet]]

http://jabber.org/protocol/muc'/>





http://jabber.org/protocol/muc#user'>





Below is the corresponding ejabberd log:
=INFO REPORT 2010-08-23 03:18:42 ===
D(<0.5744.0>:ejabberd_receiver:320) : Received XML on stream = " 
http://jabber.org/protocol/muc\";> "

=INFO REPORT 2010-08-23 03:18:42 ===
D(<0.5745.0>:ejabberd_router:313)  : route
from {jid,"imjaxlim","im.jaxl.im","jaxl.1282558721","imjaxlim",
  "im.jaxl.im","jaxl.1282558721"}
to {jid,"jaxl.im-b-global","muc.jaxl.im","imjaxlim",
"jaxl.im-b-global","muc.jaxl.im","imjaxlim"}
packet {xmlelement,"presence",
   [{"from","imjax...@im.jaxl.im/jaxl.1282558721"},
 {"to","jaxl.im-b-glo...@muc.jaxl.im/imjaxlim"}],
   [{xmlelement,"x",
[{"xmlns","http://jabber.org/protocol/muc"}],
[]}]}

=INFO REPORT 2010-08-23 03:18:42 ===
D(<0.3771.0>:mod_muc:557) : MUC: open new room 'jaxl.im-b-global'

=INFO REPORT 2010-08-23 03:18:42 ===
I(<0.5758.0>:mod_muc_room:126) : Created MUC room jaxl.im-b-glo...@muc.jaxl.im 
by imjax...@im.jaxl.im/jaxl.1282558721

=INFO REPORT 2010-08-23  03:18:42 ===
D(<0.5758.0>:ejabberd_router:313) : route
from {jid,"jaxl.im-b-global","muc.jaxl.im","imjaxlim",
  "jaxl.im-b-global","muc.jaxl.im","imjaxlim"}
to {jid,"imjaxlim","im.jaxl.im","jaxl.1282558721","imjaxlim",
"im.jaxl.im","jaxl.1282558721"}
packet {xmlelement,"presence",
   [{"type","error"},
 {"to","imjax...@im.jaxl.im/jaxl.1282558721"},
{"from","jaxl.im-b-glo...@muc.jaxl.im/imjaxlim"}],
   [{xmlelement,"x",
[{"xmlns","http://jabber.org/protocol/muc"}],
[]},
 {xmlelement,"error",
[{"code","503"},{"type","cancel"}],
[{xmlelement,"service-unavailable",
 [{"xmlns","urn:ietf:params:xml:ns:xmpp-stanzas"}],
 []}]}]}

=INFO REPORT 2010-08-23 03:18:43 ===
D(<0.5744.0>:ejabberd_receiver:320) : Received XML on stream = " 
http://jabber.org/protocol/muc\";> "

=INFO REPORT 2010-08-23 03:18:43 ===
D(<0.5745.0>:ejabberd_router:313) : route
from {jid,"jaxl","im.jaxl.im","jaxl.1282558719","jaxl","im.jaxl.im",
  "jaxl.1282558719"}
to {jid,"jaxl.im-b-global","muc.jaxl.im","jaxl","jaxl.im-b-global",
"muc.jaxl.im","jaxl"}
packet  {xmlelement,"presence",
   [{"from","j...@im.jaxl.im/jaxl.1282558719"},
{"to","jaxl.im-b-glo...@muc.jaxl.im/jaxl"}],
   [{xmlelement,"x",
[{"xmlns","http://jabber.org/protocol/muc"}],
[{xmlelement,"history",[{"maxstanzas

Re: [jdev] Fw: Unexpected 503 error code returned by MUC (ejabberd), help required

2010-08-23 Thread Abhinav Singh
Hi,

Probably these will help explain my misery. As I wrote before sending 
http://jabber.org/protocol/muc qualified namespace presence stanza makes no 
difference to the output.

Below are the logs from my XMPP client library:
[10339] 2010-08-23 03:18:42 - [[XMPPSend]] 153




[10339] 2010-08-23 03:18:43 - [[XMPPSend]] 171




[10339] 2010-08-23 03:18:44 - [[XMPPGet]]

http://jabber.org/protocol/muc'/>





http://jabber.org/protocol/muc#user'>





Below is the corresponding ejabberd log:
=INFO REPORT 2010-08-23 03:18:42 ===
D(<0.5744.0>:ejabberd_receiver:320) : Received XML on stream = 
"http://jabber.org/protocol/muc\";>"

=INFO REPORT 2010-08-23 03:18:42 ===
D(<0.5745.0>:ejabberd_router:313) : route
from {jid,"imjaxlim","im.jaxl.im","jaxl.1282558721","imjaxlim",
  "im.jaxl.im","jaxl.1282558721"}
to {jid,"jaxl.im-b-global","muc.jaxl.im","imjaxlim",
"jaxl.im-b-global","muc.jaxl.im","imjaxlim"}
packet {xmlelement,"presence",
   [{"from","imjax...@im.jaxl.im/jaxl.1282558721"},
{"to","jaxl.im-b-glo...@muc.jaxl.im/imjaxlim"}],
   [{xmlelement,"x",
[{"xmlns","http://jabber.org/protocol/muc"}],
[]}]}

=INFO REPORT 2010-08-23 03:18:42 ===
D(<0.3771.0>:mod_muc:557) : MUC: open new room 'jaxl.im-b-global'

=INFO REPORT 2010-08-23 03:18:42 ===
I(<0.5758.0>:mod_muc_room:126) : Created MUC room jaxl.im-b-glo...@muc.jaxl.im 
by imjax...@im.jaxl.im/jaxl.1282558721

=INFO REPORT 2010-08-23 03:18:42 ===
D(<0.5758.0>:ejabberd_router:313) : route
from {jid,"jaxl.im-b-global","muc.jaxl.im","imjaxlim",
  "jaxl.im-b-global","muc.jaxl.im","imjaxlim"}
to {jid,"imjaxlim","im.jaxl.im","jaxl.1282558721","imjaxlim",
"im.jaxl.im","jaxl.1282558721"}
packet {xmlelement,"presence",
   [{"type","error"},
{"to","imjax...@im.jaxl.im/jaxl.1282558721"},
{"from","jaxl.im-b-glo...@muc.jaxl.im/imjaxlim"}],
   [{xmlelement,"x",
[{"xmlns","http://jabber.org/protocol/muc"}],
[]},
{xmlelement,"error",
[{"code","503"},{"type","cancel"}],
[{xmlelement,"service-unavailable",
 [{"xmlns","urn:ietf:params:xml:ns:xmpp-stanzas"}],
 []}]}]}

=INFO REPORT 2010-08-23 03:18:43 ===
D(<0.5744.0>:ejabberd_receiver:320) : Received XML on stream = 
"http://jabber.org/protocol/muc\";>"

=INFO REPORT 2010-08-23 03:18:43 ===
D(<0.5745.0>:ejabberd_router:313) : route
from {jid,"jaxl","im.jaxl.im","jaxl.1282558719","jaxl","im.jaxl.im",
  "jaxl.1282558719"}
to {jid,"jaxl.im-b-global","muc.jaxl.im","jaxl","jaxl.im-b-global",
"muc.jaxl.im","jaxl"}
packet {xmlelement,"presence",
   [{"from","j...@im.jaxl.im/jaxl.1282558719"},
{"to","jaxl.im-b-glo...@muc.jaxl.im/jaxl"}],
   [{xmlelement,"x",
[{"xmlns","http://jabber.org/protocol/muc"}],
[{xmlelement,"history",[{"maxstanzas","10"}],[]}]}]}

=INFO REPORT 2010-08-23 03:18:43 ===
D(<0.3710.0>:mod_muc:507) : MUC: send to process <0.5758.0> 

=INFO REPORT 2010-08-23 03:18:43 ===
D(<0.5758.0>:ejabberd_router:313) : route
from {jid,"jaxl.im-b-global","muc.jaxl.im","jaxl","jaxl.im-b-global",
  "muc.jaxl.im","jaxl"}
to {jid,"jaxl","im.jaxl.im","jaxl.1282558719","jaxl","im.jaxl.im",
"jaxl.1282558719"}
packet {xmlelement,"presence",
       [{"from","j...@im.jaxl.im/jaxl.1282558719"},
{"to","jaxl.im-b-glo...@muc.jaxl.im/jaxl"}],
   [{xmleleme

[jdev] Fw: Unexpected 503 error code returned by MUC (ejabberd), help required

2010-08-23 Thread Abhinav Singh
+j...@jabber.org
went missing in my reply



- Forwarded Message 
From: Abhinav Singh 
To: ke...@kismith.co.uk
Sent: Mon, August 23, 2010 4:46:19 PM
Subject: Re: [jdev] Unexpected 503 error code returned by MUC (ejabberd), help 
required


Hi Kevin,

Sorry but I am not clear on your message. Can you expand "sending an empty 
presence before sending the room join presence"?

To be specific, here is what my code does:
- Identify guest.3666062361282549857235...@im.jaxl.im/jaxl.1282549857 wants to 
enter room jaxl.im-b-guest.366606_threadti...@muc.jaxl.im
- Code identifies room doesn't already exists and hence try to create one by 
sending a room join presence from imjax...@im.jaxl.im/jaxl.1282549915 to 
jaxl.im-b-guest.366606_threadti...@muc.jaxl.im/imjaxlim
- Code also sends a room join presence from guest user to the room immediately.

However, jabber server returns a 503 for 1st room join while a success for 2nd 
room join presence.
But ejabberd log shows 1st room join presence actually created the room, but 
still receives a 503 presence.

PS: I don't see sending any empty presence before room join presence


or 

http://jabber.org/protocol/muc";>

both gives me the same result.

Thanks for your help.

--
Abhinav Singh,
Founder, Jaxl Inc.
Bangalore, India
http://abhinavsingh.com/blog





From: Kevin Smith  
To: Jabber/XMPP software development list 
Sent: Mon, August 23, 2010 4:09:59 PM
Subject: Re: [jdev] Unexpected 503 error code returned by MUC (ejabberd), help 
required

On Mon, Aug 23, 2010 at 11:11 AM, Abhinav Singh  wrote:
> I am facing an expected 503 error code returned by MUC (ejabberd)
> implementation. Below XMPP stanza's shall explain what i m trying to do:
> http://pastebin.com/16AJcr7Y

You  seem to be sending an empty presence before sending the room join presence.

/K
___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


  ___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


[jdev] Unexpected 503 error code returned by MUC (ejabberd), help required

2010-08-23 Thread Abhinav Singh
Hi,

I am facing an expected 503 error code returned by MUC (ejabberd) 
implementation. Below XMPP stanza's shall explain what i m trying to do:
http://pastebin.com/16AJcr7Y

I cross checked ejabberd.log and can see following logs:
http://pastebin.com/hsZUAi5i

I see jid "imjaxlim" successfully creates a new MUC room but still ejabberd end 
up sending 503 error code in response.
Unable to understand the reason, or did i missed something in the logs? 

--
Abhinav Singh,
Founder, Jaxl Inc.
Bangalore, India
http://abhinavsingh.com/blog



  ___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


[jdev] Jaxl 2.0.3 is out!

2010-08-19 Thread Abhinav Singh
Hi,

#Jaxl 2.0.3 is out!, Includes working #Bosh #Chat example, X-FACEBOOK-PLATFORM 
auth support.

View Changelog http://bit.ly/9YQvXL for details
Stable release http://code.google.com/p/jaxl/downloads/list

--
Abhinav Singh,
Founder, Jaxl Inc.
Bangalore, India
http://abhinavsingh.com/blog



  ___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


Re: [jdev] Help required regarding XMPP client for Windows Mobile 7

2010-08-18 Thread Abhinav Singh
Here you can find links to existing XMPP libraries written in C#
http://xmpp.org/software/libraries.shtml#csharp

Enjoy!
--
Abhinav Singh,
Founder, Jaxl Inc.
Bangalore, India
http://abhinavsingh.com/blog





From: Jonathan Dickinson 
To: jdev@jabber.org
Sent: Wed, August 18, 2010 7:01:18 PM
Subject: Re: [jdev] Help required regarding XMPP client for Windows Mobile 7


Hi Waqar,
 
>From what I remember newer versions of Silverlight  do support sockets. At any 
rate, if you can't use sockets then BOSH is your  solution 
(http://xmpp.org/extensions/xep-0206.html).
 
Writing an XMPP client API is a big undertaking,  none-the-less here are the 
specs (you will need to read them yourself; and come  back with any questions): 
http://xmpp.org/protocols/#base. To get  started you will be interested in:
* Jabber Client 
* Presence and IM Session Establishment 
* Resource Binding 
* Simple Authentication and Security Layer 
* Stanza Errors 
* Stream Errors 
* Transport Layer Security 
* XML Streams
It's a lot of knowledge to digest; but is a great  way to get started with 
internet protocols.
 
Enjoy! 

From: Waqar Ali Khan 
Sent: Wednesday, August 18, 2010 2:33 AM
To: jdev@jabber.org 
Subject: [jdev] Help required regarding XMPP client for Windows  Mobile 7

Hello,


Actually i have a project of Windows Mobile 7 in which u wud  know better than 
me that we have only http protocol available no socks  etc...
Now the problem is that i m very new in XMPP i read complete 3 days  about XMPP 
at their site and different Blogs but didn't found information that i  needed, 
if you guys guide me then i can probably work on it. The scenario is  that I 
have to make a library like thing for C# silverlight (Windows Mobile 7)  which 
can be used to connect to any XMPP server and chat using it. Now i have  
problems understanding that i know we have to send XML data and retrieve the  
response as well in XML but i don't know how to begin means i just have to use  
http, i don't wanna use any type of library i want to make every thing by my  
self, i know the steps/syntax to communicate with server like sending XML 
chunks  
and parsing the response but where do i make request and how do i make request  
which URL i don't understand these things once i know how to connect to any  
server using only http then i'll play around with it but.. :(

I hope u  understand my problem, just guide me how to achieve it, i saw and 
tried Matrix thing its  awesome but can't see its code, actually i don't want 
its code, i won't be able  to understand it i am just beginner and want to 
write 
everything from the  scratch to make a client for XMPP. Please if u help me 
then 
it wud be a great  favor for me, Waiting for your kind reply :(

-- 
Waqar Ali  Khan


 ___
JDev mailing  list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe:  jdev-unsubscr...@jabber.org
___



  ___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


[jdev] PHP Code, Setup and Demo of Jaxl boshchat application

2010-08-17 Thread Abhinav Singh
Hi,

Jaxl 2.0 bosh support allow web developers to write real time web  applications 
within minutes, without having any pre-requisite knowledge  about the XMPP 
protocol itself. 


Here is a sample XMPP based web chat application using Jaxl  library, written 
in 
PHP (and little Javascript)
http://bit.ly/aMozMy

 --
Abhinav Singh,
Founder, Jaxl Inc.
Bangalore, India
http://abhinavsingh.com/blog



  ___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


[jdev] Releasing Jaxl 2.0 – Object oriented X MPP framework in PHP

2010-08-04 Thread Abhinav Singh
Hello friends,

After months of restructuring the Jaxl library, I am pleased to announce  Jaxl 
2.0, an object oriented XMPP framework in PHP for developing real  time 
applications for browsers, desktops and hand held devices.


What’s new in Jaxl 2.0?
* A lot of structural changes has been done from the previous version 
to make 
it more scalable, robust, flexible and easy to use
* Library now provides an event mechanism, allowing developers to  
register 
callbacks for various xmpp events in their application code
* Use integrated BOSH support to write real time web applications in 
minutes
* More than 10 new implemented XMPP extensions (XEP’s) added
* Development hosting moves to github, stable releases available at 
google 
code--
Abhinav Singh,
Founder, Jaxl Inc.
Bangalore, India
http://abhinavsingh.com/blog



  ___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


[jdev] Jaxl IM for the web released (alpha)

2010-07-15 Thread Abhinav Singh
Hi,

I am pleased to announce Jaxl IM, an instant messenger for the web. Currently 
in 
alpha release, it is a hosted service providing connectivity between you and 
your site visitors using XMPP. Expects no software or hardware pre-requisites 
from your site servers.
http://jaxl.im

Wordpress users can get it for their site using WP-Chat plugin:
http://wordpress.org/extend/plugins/wp-chat

Feedback are welcomed :)

--
Abhinav Singh,
Bangalore,
India.
http://abhinavsingh.com/blog



  ___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


Re: [jdev] Facebook now supports XMPP connections

2010-02-10 Thread Abhinav Singh
Works fine for me with Jaxl client library in PHP:

$ sudo php index.php 
OSType: Linux, Registering shutdown for SIGINT and SIGTERM
OpenSSL: Enabled for CLI
Attempting DIGEST-MD5 Authentication...
Starting Session...
Requesting Feature List...
Requesting Roster List...
Setting Status...
Done


 Abhinav Singh,
Bangalore,
India
http://abhinavsingh.com





From: Nathan Fritz 
To: Jabber/XMPP software development list 
Sent: Thu, February 11, 2010 3:15:46 AM
Subject: Re: [jdev] Facebook now supports XMPP connections

On Wed, Feb 10, 2010 at 1:41 PM, Christopher Orr  wrote:

>It seems that Facebook have just opened up their XMPP server for Facebook Chat.
>
>http://wiki.developers.facebook.com/index.php/Integrating_with_Facebook_Chat
>
>>The server is at chat.facebook.com:5222 (sans SRV records) and the only 
>>stream features advertised are DIGEST-MD5 or "X-FACEBOOK-PLATFORM" 
>>authentication.  There's no TLS, no compression, and possibly no access to 
>>people who don't have a Facebook username (i.e. those who only have a user 
>>ID).
>
>>The basics are supposedly all there: rosters, presence, plain text messaging, 
>>vCards.  I could only get a 503 error so far when trying to authenticate, so 
>>can't comment any further..
>
>>Chris
>
It reminds me very much of the early days of GTalk.  There were lots of things 
that just didn't work -- like sending IQs between clients other than namespaces 
that the server knew about.  I'm sure we'll start to see things shape up over 
time.  Works great for me [shortna...@chat.facebook.com FTW.

I'm not going to hold my breath for federation, but who knows?   Would be cool, 
but would totally break their friend/chat paradigm.

-Fritzy



  ___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


Re: [jdev] Hi there

2010-01-14 Thread Abhinav Singh
Hi,

Know the in and out of how to apply/use smack 
library.http://www.igniterealtime.org/projects/smack/
That should give you a good start, combined with various xep docs.

 Abhinav Singh,
Bangalore,
India
http://abhinavsingh.com





From: Virgílio Santos 
To: jdev@jabber.org
Sent: Thu, January 14, 2010 9:10:45 PM
Subject: [jdev] Hi there

Hi,

I´m new on software development with jabber.

I'll be on a java web based project that is about to start and I want
to know if someone has any hints, tutorials, books for dummies to
recommend to me.

Thanks in advance,

Virgílio
-- 
"In July of 2004, Bush told an Amish group in Pennsylvania that "God
speaks through me." He believes that God wanted him to be president,
and that God is working through him, even as tens of thousands of
innocent Iraqi men, women, and children die in a war based on lies."
___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___



  ___
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___