Menu

How-to connect to simple sip:chat without conference

Help
Bru Four
2020-02-10
2020-02-12
  • Bru Four

    Bru Four - 2020-02-10

    Hi.

    I would like to connect by commandline to a simple sip chat without conference.

    For conference I found the script sipe-join-conference-with-uri.pl

    It works well for sip full conference.

    The command line is

    /usr/local/contrib/dbus/sipe-join-conference-with-uri.pl 'sip:first.last@company.com;gruu;opaque=app:conf:focus:id:36KJD34R?required-media=audio'
    

    I tried to do the same with a shorter 'sip:first.last@company.com' URL but it fails.

    I opened the SIPE scripts located in /usr/local/contrib/dbus and I found two calls to SIPE plugin

    For conference
    $purple->SipeJoinConferenceWithUri($accountId, $uri);

    For voice call
    $purple->SipeCallPhoneNumber($accountId, $number);

    But nothing for to join/initiate a simple chat

    Is there a solution with SIPE plugin ? I searched the doc without success, I didn't find the name of SIPE functions I may call by scripts, like the two above one

    I built a workaround with a dirty patch in /usr/bin/purple-url-handler , replacing prpl-simple by prpl-sipe in protocol search script source.

    This workaround works without the full chat features, no presence management by example.

    So I guess it should be done through proper call to SIPE plugin, but how?

    Thks.

    Bru

     

    Last edit: Bru Four 2020-02-10
  • Stefan Becker

    Stefan Becker - 2020-02-12

    The functionality you are looking for isn't SIPE specific. Hence you need to look up the correct libpurple DBus interface and call that in your script.

     

Log in to post a comment.