diff options
author | Richard Mudgett <rmudgett@digium.com> | 2011-05-17 20:13:27 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2011-05-17 20:13:27 +0000 |
commit | 5257a915a8b579112243d7fda067e153aa9aafad (patch) | |
tree | d2071136ac28dea79f2a09eddec0b381f0fa2e6f /channels/sig_pri.c | |
parent | 380e0e3e2db352ba1009433dd131c686bfc44fca (diff) |
Option needed for Q931_IE_TIME_DATE to be optional in CONNECT message.
The NEC SV8300 rejects the Q931_IE_TIME_DATE for Q.SIG.
Add option to specify if and how much of the current time is put in
Q931_IE_TIME_DATE.
* Send date/time ie never.
* Send date/time ie date only.
* Send date/time ie date and hour.
* Send date/time ie date, hour, and minute.
* Send date/time ie date, hour, minute, and second.
* Send date/time ie default: Libpri will send date and hhmm only when in
NT PTMP mode to support ISDN phones.
(closes issue #19221)
Reported by: kenner
JIRA SWP-3396
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@319427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sig_pri.c')
-rw-r--r-- | channels/sig_pri.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/sig_pri.c b/channels/sig_pri.c index 6790ec08e..0204f054a 100644 --- a/channels/sig_pri.c +++ b/channels/sig_pri.c @@ -8580,6 +8580,9 @@ int sig_pri_start_pri(struct sig_pri_span *pri) pri_display_options_send(pri->pri, pri->display_flags_send); pri_display_options_receive(pri->pri, pri->display_flags_receive); #endif /* defined(HAVE_PRI_DISPLAY_TEXT) */ +#if defined(HAVE_PRI_DATETIME_SEND) + pri_date_time_send_option(pri->pri, pri->datetime_send); +#endif /* defined(HAVE_PRI_DATETIME_SEND) */ pri->resetpos = -1; if (ast_pthread_create_background(&pri->master, NULL, pri_dchannel, pri)) { |