refresh presence

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

 



On 1/24/08, Andreas Backman <andreas.backman at sesca.com> wrote:
>
> It's an OpenSER server, but they have for some reason set a restriction

Aha! So the question has backfired, Klaus? ;-)

> to only allow a certain program (an OpenWengo clone) to publish its
> presence. I've set the UA field to the specific one and it works fine
> except the refresh where it's leaved out and the server complains.
>
> As I said it's not that big problem, because the PUBLISH is resent as a
> new one, which works, but it would be great to add it to the refresh
> message also.

It shouldn't be too difficult to change, but I'm kinda occupied with
something else now. So if anybody wants to do anything about this,
here's the direction that I would do:
  - add new API in <pjsip-simple/publish.h>:
       pjsip_publishc_add_headers(pjsip_publishc *pubc,
                                                const pjsip_hdr *hdr_list);
     The purpose of the function is to register additional headers to
be send with PUBLISH. The "pubc" will make a copy of these headers
internally.

  - In pjsua-lib's pjsua_pres.c:824, function pjsua_pres_init_publish_acc():
      - add call to pjsip_publishc_add_headers() after calling
pjsip_publishc_init() to add the User-Agent header.

 - In pjsua-lib's pjsua_pres.c:783, in function send_publish():
     - remove the call to pjsua_process_msg_data(tdata, NULL);

Be wary when updating to SVN now, it's still a bit unstable (it may
crash your computer, erase all your data, blow up your house, etc.
(just kiddin :) )).

cheers,
 -benny



> Best regards,
> Andreas Backman
> SESCA ISW
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux