[Serusers] jabber help!
Daniel-Constantin Mierla
daniel at iptel.org
Thu May 20 12:44:06 CEST 2004
Hello,
that is just an example. You can use whatever logic you want to trigger
jab_go_online(). The search() function returns true if the given
parameter is found in the messages. Most of the SIP UACs add the 'Event:
registration' header when registering. You can also look at Expire
header for REGISTER requests, you can use a MESSAGE with a special body,
etc...
I think you have already read the documentation from
http://www.iptel.org/ser/doc/jabgw/xjab-manual.html. It might need some
review, but I have no time to spare for that right now.
.Daniel
On 5/20/2004 8:29 AM, lihongbin wrote:
>hi
> at ser.cfg and jabbergateway ,how do a action of the search("egistration") exec?what message includes "egistration" section?
> I am configuring a ser server with a jabber gataway,jabber server is a public server :jabber.com.cn ,but when starting ser ,how to jump
> this code exec jab_go_online() and register to jabber server.I capture the package with a ethereal tool,but I did not find any packeges including
>a egistration part.l please help me!!
>
>.......................
> if (method=="REGISTER")
> {
> if (t_newtran())
> {
> save("location");
> log("REGISTER received -> reply okay\n");
> };
> if(search("egistration"))
> {
> log("XJAB: Going ONline in Jabber
>network!!!\n");
> if(jab_go_online())
> {
> sl_send_reply("200", "Accepted");
> }
> else
> {
> sl_send_reply("404","Not found");
> };
> }
> else
> {
> log("XJAB: Going OFFline in Jabber
>network!!!\n");
> if(jab_go_offline())
> {
> sl_send_reply("200", "Accepted");
> }
> else
> {
> sl_send_reply("404","Not found");
> };
> };
> break;
> };
> if (method=="SUBSCRIBE")
> {
> if (t_newtran())
> {
> handle_subscription("registrar");
> };
> break;
> };
>.........................................
>
>
>best regards!!
>
>Thanks a lot!!
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>
More information about the sr-users
mailing list