123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497 |
- PJ_BEGIN_DECL
- typedef struct pjsip_regc pjsip_regc;
- struct pjsip_regc_cbparam
- {
- pjsip_regc *regc;
- void *token;
-
- pj_status_t status;
- int code;
- pj_str_t reason;
- pjsip_rx_data *rdata;
- unsigned expiration;
- int contact_cnt;
- pjsip_contact_hdr *contact[PJSIP_REGC_MAX_CONTACT];
- pj_bool_t is_unreg;
- };
- typedef void pjsip_regc_cb(struct pjsip_regc_cbparam *param);
- struct pjsip_regc_tsx_cb_param
- {
-
- struct pjsip_regc_cbparam cbparam;
-
- int contact_cnt;
-
- pj_str_t contact[PJSIP_REGC_MAX_CONTACT];
- };
- typedef void pjsip_regc_tsx_cb(struct pjsip_regc_tsx_cb_param *param);
- struct pjsip_regc_info
- {
- pj_str_t server_uri;
- pj_str_t client_uri;
- pj_bool_t is_busy;
- pj_bool_t auto_reg;
- unsigned interval;
- unsigned next_reg;
- pjsip_transport *transport;
- };
- typedef struct pjsip_regc_info pjsip_regc_info;
- PJ_DECL(pjsip_module*) pjsip_regc_get_module(void);
- PJ_DECL(pj_status_t) pjsip_regc_create( pjsip_endpoint *endpt, void *token,
- pjsip_regc_cb *cb,
- pjsip_regc **p_regc);
- PJ_DECL(pj_status_t) pjsip_regc_destroy(pjsip_regc *regc);
- PJ_DECL(pj_status_t) pjsip_regc_destroy2(pjsip_regc *regc, pj_bool_t force);
- PJ_DECL(pj_status_t) pjsip_regc_get_info( pjsip_regc *regc,
- pjsip_regc_info *info );
- PJ_DECL(pj_pool_t*) pjsip_regc_get_pool(pjsip_regc *regc);
- PJ_DECL(pj_status_t) pjsip_regc_init(pjsip_regc *regc,
- const pj_str_t *srv_url,
- const pj_str_t *from_url,
- const pj_str_t *to_url,
- int ccnt,
- const pj_str_t contact[],
- pj_uint32_t expires);
- PJ_DECL(void) pjsip_regc_add_ref( pjsip_regc *regc );
- PJ_DECL(pj_status_t) pjsip_regc_dec_ref( pjsip_regc *regc );
- PJ_DECL(pj_status_t) pjsip_regc_set_reg_tsx_cb(pjsip_regc *regc,
- pjsip_regc_tsx_cb *tsx_cb);
- PJ_DECL(pj_status_t) pjsip_regc_set_via_sent_by(pjsip_regc *regc,
- pjsip_host_port *via_addr,
- pjsip_transport *via_tp);
- PJ_DECL(pj_status_t)
- pjsip_regc_set_delay_before_refresh( pjsip_regc *regc,
- pj_uint32_t delay );
- PJ_DECL(pj_status_t) pjsip_regc_set_credentials( pjsip_regc *regc,
- int count,
- const pjsip_cred_info cred[] );
- PJ_DECL(pj_status_t) pjsip_regc_set_prefs( pjsip_regc *regc,
- const pjsip_auth_clt_pref *pref);
- PJ_DECL(pj_status_t) pjsip_regc_set_route_set(pjsip_regc *regc,
- const pjsip_route_hdr*route_set);
- PJ_DECL(pj_status_t) pjsip_regc_set_transport(pjsip_regc *regc,
- const pjsip_tpselector *sel);
- PJ_DECL(pj_status_t) pjsip_regc_release_transport(pjsip_regc *regc);
- PJ_DECL(pj_status_t) pjsip_regc_add_headers(pjsip_regc *regc,
- const pjsip_hdr *hdr_list);
- PJ_DECL(pj_status_t) pjsip_regc_register(pjsip_regc *regc, pj_bool_t autoreg,
- pjsip_tx_data **p_tdata);
- PJ_DECL(pj_status_t) pjsip_regc_unregister(pjsip_regc *regc,
- pjsip_tx_data **p_tdata);
- PJ_DECL(pj_status_t) pjsip_regc_unregister_all(pjsip_regc *regc,
- pjsip_tx_data **p_tdata);
- PJ_DECL(pj_status_t) pjsip_regc_update_contact( pjsip_regc *regc,
- int ccnt,
- const pj_str_t contact[] );
- PJ_DECL(pj_status_t) pjsip_regc_update_expires( pjsip_regc *regc,
- pj_uint32_t expires );
- PJ_DECL(pj_status_t) pjsip_regc_send(pjsip_regc *regc, pjsip_tx_data *tdata);
- PJ_END_DECL
|