-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
I use openser 1.3 latest trunk and try to use presence module.
If presence server receives PUBLISH message the following error occurs on console:
Dec 3 13:24:03 [616] ERROR:presence:handle_publish: Missing or unsupported event header field value Dec 3 13:24:03 [616] ERROR:presence:handle_publish: event=[presence]
My openser config is this:
xlog("Handle $rm\n"); # presence handling if(is_method("PUBLISH")) { handle_publish(); xlog("DONE!\n"); sl_send_reply("200","PUBLISH ok "); t_release(); }
Is this a bug or do I have to define the events somewhere?
regards helmut
openser 1.3 has split presence functionality. Make sure to load the presence_xml module.
regards klaus
Helmut Kuper schrieb:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
I use openser 1.3 latest trunk and try to use presence module.
If presence server receives PUBLISH message the following error occurs on console:
Dec 3 13:24:03 [616] ERROR:presence:handle_publish: Missing or unsupported event header field value Dec 3 13:24:03 [616] ERROR:presence:handle_publish: event=[presence]
My openser config is this:
xlog("Handle $rm\n"); # presence handling if(is_method("PUBLISH")) { handle_publish(); xlog("DONE!\n"); sl_send_reply("200","PUBLISH ok "); t_release(); }
Is this a bug or do I have to define the events somewhere?
regards helmut -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHU/cP4tZeNddg3dwRAujxAKCEG2zdB7nhqychuMcgf6oEurky4gCdHH/v NGJILGEwcG7Xc3mwfQytKFY= =Wwcp -----END PGP SIGNATURE-----
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
ok I added it. But now I get this erroro on console:
Dec 3 13:59:19 [4583] ERROR:presence:handle_publish: No E-Tag and no body found
regards Helmut
Klaus Darilion schrieb:
openser 1.3 has split presence functionality. Make sure to load the presence_xml module.
regards klaus
Helmut Kuper schrieb: Hi,
I use openser 1.3 latest trunk and try to use presence module.
If presence server receives PUBLISH message the following error occurs on console:
Dec 3 13:24:03 [616] ERROR:presence:handle_publish: Missing or unsupported event header field value Dec 3 13:24:03 [616] ERROR:presence:handle_publish: event=[presence]
My openser config is this:
xlog("Handle $rm\n"); # presence handling if(is_method("PUBLISH")) { handle_publish(); xlog("DONE!\n"); sl_send_reply("200","PUBLISH ok "); t_release(); }
Is this a bug or do I have to define the events somewhere?
regards helmut
_______________________________________________ Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The responsible code for this error message is in publish.c:
/* process the body */ if ( get_content_length(msg) == 0 ) { body.s = NULL; if (etag_gen) { LM_ERR("No E-Tag and no body found\n"); reply_code= 400; reply_str= pu_400b_rpl; goto error; } }
So this means that PUBLISH message's bidy is empty, but the correspondig message looks like this:
PUBLISH sip:v111@sip0.en.ewetel.de SIP/2.0 Via: SIP/2.0/UDP 212.6.95.113:52177;branch=z9hG4bK-d87543-a96123757a26245f-1--d87543-;rport Max-Forwards: 70 Contact: sip:v111@212.6.95.113:52177 To: "v111"sip:v111@sip0.en.ewetel.de From: "v111"sip:v111@sip0.en.ewetel.de;tag=89526440 Call-ID: OTZhM2Y5ZjI5Yjk4ZDRlYjJjYzQ2ZmFlMmYwYjg3NWI. CSeq: 2 PUBLISH Expires: 3600 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO Content-Type: application/pidf+xml User-Agent: X-Lite release 1011s stamp 41150 Event: presence Content-Length: 487
<?xml version='1.0' encoding='UTF-8'?><presence xmlns='urn:ietf:params:xml:ns:pidf' xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model' xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid' xmlns:c='urn:ietf:params:xml:ns:pidf:cipid' entity='sip:v111@sip0.en.ewetel.de'><tuple id='tc556547e'><status><basic>open</basic></status>rpid:user-inputidle</rpid:user-input></tuple>dm:person id='pe3123118'rpid:activitiesrpid:unknown/</rpid:activities>dm:noteIdle</dm:note></dm:person></presence>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
dunno y, but now it works ....
regards helmut
Helmut Kuper schrieb:
The responsible code for this error message is in publish.c:
/* process the body */ if ( get_content_length(msg) == 0 ) { body.s = NULL; if (etag_gen) { LM_ERR("No E-Tag and no body found\n"); reply_code= 400; reply_str= pu_400b_rpl; goto error; } }
So this means that PUBLISH message's bidy is empty, but the correspondig message looks like this:
PUBLISH sip:v111@sip0.en.ewetel.de SIP/2.0 Via: SIP/2.0/UDP 212.6.95.113:52177;branch=z9hG4bK-d87543-a96123757a26245f-1--d87543-;rport Max-Forwards: 70 Contact: sip:v111@212.6.95.113:52177 To: "v111"sip:v111@sip0.en.ewetel.de From: "v111"sip:v111@sip0.en.ewetel.de;tag=89526440 Call-ID: OTZhM2Y5ZjI5Yjk4ZDRlYjJjYzQ2ZmFlMmYwYjg3NWI. CSeq: 2 PUBLISH Expires: 3600 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO Content-Type: application/pidf+xml User-Agent: X-Lite release 1011s stamp 41150 Event: presence Content-Length: 487
<?xml version='1.0' encoding='UTF-8'?><presence
xmlns='urn:ietf:params:xml:ns:pidf' xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model' xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid' xmlns:c='urn:ietf:params:xml:ns:pidf:cipid' entity='sip:v111@sip0.en.ewetel.de'><tuple id='tc556547e'><status><basic>open</basic></status>rpid:user-inputidle</rpid:user-input></tuple>dm:person id='pe3123118'rpid:activitiesrpid:unknown/</rpid:activities>dm:noteIdle</dm:note></dm:person></presence>
_______________________________________________ Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
still have little probs with presence and latest openser.
I use latest x-lite phones in Presence-Agent mode. I can send messages and publishes and subscribes. active_watchers, watchers and presentity are filled. if x-lite sends a subscribe, the presence server sends back a Notify with "Subscription-State: pending;expires=60" instead of "Subscription-State: active" as expected, cause other party is online and active.
Status in wathcers and active_watchers is always 2 (dunno what that means)
regards Helmut
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
ok solved that. status 2 is PENDING, I had to clean my watchers table due to changing force_active parameter :/ ....
regards helmut
Helmut Kuper schrieb:
Hi,
still have little probs with presence and latest openser.
I use latest x-lite phones in Presence-Agent mode. I can send messages and publishes and subscribes. active_watchers, watchers and presentity are filled. if x-lite sends a subscribe, the presence server sends back a Notify with "Subscription-State: pending;expires=60" instead of "Subscription-State: active" as expected, cause other party is online and active.
Status in wathcers and active_watchers is always 2 (dunno what that means)
regards Helmut
_______________________________________________ Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users