| 1 | = SIP Instant Messaging - pjsua Python Module = |
| 2 | |
| 3 | [[TracNav(Python_SIP/TOC)]] |
| 4 | |
| 5 | == Sending IM == |
| 6 | |
| 7 | There are two ways to send IM, using [http://www.pjsip.org/python/pjsua.htm#Buddy-send_pager send_pager()] method of [http://www.pjsip.org/python/pjsua.htm#Buddy Buddy] object, or [http://www.pjsip.org/python/pjsua.htm#Call-send_pager send_pager()] method of [http://www.pjsip.org/python/pjsua.htm#Call 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. |
| 8 | |
| 9 | === Typing Indication === |
| 10 | |
| 11 | In addition to sending instant messages, you can also send typing indication to remote buddy using [http://www.pjsip.org/python/pjsua.htm#Buddy-send_typing_ind send_typing_ind()]. |
| 12 | |
| 13 | === Pager Status === |
| 14 | |
| 15 | The transmission status of outgoing instant messages is reported in [http://www.pjsip.org/python/pjsua.htm#BuddyCallback-on_pager_status on_pager_status()] method of [http://www.pjsip.org/python/pjsua.htm#BuddyCallback BuddyCallback] class, or [http://www.pjsip.org/python/pjsua.htm#CallCallback-on_pager_status on_pager_status()] of [http://www.pjsip.org/python/pjsua.htm#CallCallback CallCallback] class, depending on how the instant message was sent. |