Ignore:
Timestamp:
Jun 13, 2013 8:56:51 AM (11 years ago)
Author:
nanang
Message:

Close #1675: Added callback to allow application to specify account to handle incoming message.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r4524 r4534  
    12771277                                                    unsigned flags); 
    12781278 
     1279    /** 
     1280     * This callback can be used by application to override the account 
     1281     * to be used to handle an incoming message. Initially, the account to 
     1282     * be used will be calculated automatically by the library. This initial 
     1283     * account will be used if application does not implement this callback, 
     1284     * or application sets an invalid account upon returning from this 
     1285     * callback. 
     1286     * 
     1287     * Note that currently the incoming messages requiring account assignment 
     1288     * are INVITE, MESSAGE, SUBSCRIBE, and unsolicited NOTIFY. This callback 
     1289     * may be called before the callback of the SIP event itself, i.e: 
     1290     * incoming call, pager, subscription, or unsolicited-event. 
     1291     * 
     1292     * @param rdata     The incoming message. 
     1293     * @param acc_id    On input, initial account ID calculated automatically 
     1294     *                  by the library. On output, the account ID prefered 
     1295     *                  by application to handle the incoming message. 
     1296     */ 
     1297    void (*on_acc_find_for_incoming)(const pjsip_rx_data *rdata, 
     1298                                     pjsua_acc_id* acc_id); 
     1299 
    12791300} pjsua_callback; 
    12801301 
Note: See TracChangeset for help on using the changeset viewer.