Top | ![]() |
![]() |
![]() |
![]() |
#define | ROUTER_ENABLE_TELNET |
#define | ROUTER_ENABLE_CAPI |
enum | RmPhoneNumberType |
#define | ROUTER_DIAL_PORT_AUTO |
RmPhoneInfo | |
RmPhoneNumber | |
RmRouter |
Router related function to interact in an easy way. As it uses router plugins it can be used with different router vendors.
gboolean
rm_router_present (RmRouterInfo *router_info
);
Check if router is present.
gboolean
rm_router_get_settings (RmProfile *profile
);
Get router settings (and setup devices)
const gchar *
rm_router_get_version (RmProfile *profile
);
Get router version
gchar *
rm_router_get_login_password (RmProfile *profile
);
Get login password.
void rm_router_set_login_password (RmProfile *profile
,char *password
);
gchar *
rm_router_get_ftp_password (RmProfile *profile
);
Get router FTP password.
void rm_router_load_journal_async (RmProfile *profile
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gpointer rm_router_load_journal_finish (GObject *source
,GAsyncResult *result
,GError **error
);
gboolean
rm_router_clear_journal (RmProfile *profile
);
Clear router journal
gboolean rm_router_dial_number (RmProfile *profile
,gint port
,const gchar *number
);
Dial number
gboolean rm_router_hangup (RmProfile *profile
,gint port
,const gchar *number
);
Hangup call
gboolean
rm_router_reconnect (RmProfile *profile
);
Reconnect network connection
gboolean rm_router_delete_fax (RmProfile *profile
,const gchar *filename
);
Delete fax file on router
gboolean rm_router_delete_voice (RmProfile *profile
,const gchar *filename
);
Delete voice file on router
gchar *
rm_router_get_area_code (RmProfile *profile
);
Get router area code
gchar *
rm_router_get_country_code (RmProfile *profile
);
Get router country code
gchar *
rm_router_get_international_access_code
(RmProfile *profile
);
Get international access code
gchar *
rm_router_get_national_prefix (RmProfile *profile
);
Get national call prefix
gboolean
rm_router_init (void
);
Initialize router (if available set internal router structure)
gchar **
rm_router_get_numbers (RmProfile *profile
);
Get array of phone numbers.
void
rm_router_process_journal (GList *journal
);
Router needs to process a new loaded journal (emit journal-process signal and journal-loaded)
gchar * rm_router_load_fax (RmProfile *profile
,const gchar *name
,gsize *len
);
Load fax file
gchar * rm_router_load_voice (RmProfile *profile
,const gchar *name
,gsize *len
);
Load voice file
void rm_router_load_voice_mail_async (RmProfile *profile
,const char *name
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
GBytes * rm_router_load_voice_mail_finish (GObject *source_object
,GAsyncResult *result
,GError **error
);
gboolean
rm_router_info_free (RmRouterInfo *info
);
Free router info structure
gboolean
rm_router_is_cable (RmProfile *profile
);
Check if router is using cable as annex
GList * rm_router_load_fax_reports (RmProfile *profile
,GList *journal
);
Load fax reports and add them to the journal
GList * rm_router_load_voice_records (RmProfile *profile
,GList *journal
);
Load voice records and add them to the journal
void
rm_router_free_phone_list (GList *phone_list
);
Free full phone list.
gboolean
rm_router_get_suppress_state (RmProfile *profile
);
Get number suppress state
typedef struct { } RmPhoneInfo;
The RmPhoneInfo contains only private fileds and should not be directly accessed.
typedef struct { } RmPhoneNumber;
The RmPhoneNumber contains only private fileds and should not be directly accessed.