diff options
author | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-02 17:34:22 +0000 |
---|---|---|
committer | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-02 17:34:22 +0000 |
commit | 225f4a7ea1c36f5ac0bf9ac7eb29122c3655cba2 (patch) | |
tree | d196854b76b89353606f0e429a0bf9b3dbc3474d /channels/sig_pri.h | |
parent | 398f78ff7459d0fb8bbb4db965ca86d3b0fd7e4c (diff) |
DAHDI ISDN channel names will not allow device state to work. (Interim solution.)
Since ISDN works like SIP and not analog ports in regard to devices, the
device state based on the ISDN channel number could not work. This has
not been an issue until the advent of PTMP NT mode. Previously, ISDN
lines were used as trunks and did not have to keep track of specific
devices.
As an interim solution until device states are properly implemented, the
channel name is being changed to the following format to use the generic
device state support:
DAHDI/i<span>/<number>[:<subaddress>]-<sequence-number>
Dialplan hints would thus be:
exten => xxx,hint,DAHDI/i2/5551212
This will work with the following restrictions:
* The number of devices/phones cannot exceed the number of B channels.
(i.e., BRI has 2)
* Each device/phone can only have one number. No shared MSN's.
* The phones/devices probably should not use subaddressing.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@226882 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/sig_pri.h')
-rw-r--r-- | channels/sig_pri.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/sig_pri.h b/channels/sig_pri.h index d04ffeb95..fa2767500 100644 --- a/channels/sig_pri.h +++ b/channels/sig_pri.h @@ -138,6 +138,7 @@ struct sig_pri_chan { int cid_ton; /*!< Type Of Number (TON) */ int callingpres; /*!< The value of calling presentation that we're going to use when placing a PRI call */ char cid_num[AST_MAX_EXTENSION]; + char cid_subaddr[AST_MAX_EXTENSION]; char cid_name[AST_MAX_EXTENSION]; char cid_ani[AST_MAX_EXTENSION]; char exten[AST_MAX_EXTENSION]; @@ -246,6 +247,7 @@ struct sig_pri_pri { struct sig_pri_callback *calls; }; +void sig_pri_extract_called_num_subaddr(struct sig_pri_chan *p, const char *rdest, char *called, size_t called_buff_size); int sig_pri_call(struct sig_pri_chan *p, struct ast_channel *ast, char *rdest, int timeout, int layer1); int sig_pri_hangup(struct sig_pri_chan *p, struct ast_channel *ast); |