oRTP Reference Manual
<<< Previous Page | Home | Up |

# Telephony events (RFC2833)

## Name

Telephony events (RFC2833) --

## Synopsis

    #include <telephonyevents.h>

    gint        rtp_session_send_dtmf           (RtpSession *session,
                                                 gchar dtmf,
                                                 guint32 userts);

## Description

## Details

### rtp_session_send_dtmf ()

    gint        rtp_session_send_dtmf           (RtpSession *session,
                                                 gchar dtmf,
                                                 guint32 userts);

This functions creates telephony events packets for `dtmf` and sends them. It uses rtp_session_create_telephone_event_packet() and rtp_session_add_telephone_event() to create them and finally rtp_session_sendm_with_ts() to send them.

`session` : | a rtp session
`dtmf` : | a character meaning the dtmf (ex: '1', '#' , '9' ...)
`userts` : | the timestamp
Returns : | 0 if successfull, -1 if the session cannot support telephony events or if the dtmf given as argument is not valid.

<<< Previous Page | Home | Up |
Multiplexing sessions (in a one thread design) |