wiki:Python_SIP/IM

Version 1 (modified by bennylp, 16 years ago) (diff)

--

SIP Instant Messaging - pjsua Python Module

Sending IM

There are two ways to send IM, using send_pager() method of Buddy object, or send_pager() method of Call object. The former is probably preferable since it allows you to send pager without having to establish a call, but just to say that sending IM within call is possible.

Typing Indication

In addition to sending instant messages, you can also send typing indication to remote buddy using send_typing_ind().

Pager Status

The transmission status of outgoing instant messages is reported in on_pager_status() method of BuddyCallback class, or on_pager_status() of CallCallback class, depending on how the instant message was sent.