aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_h323.c
diff options
context:
space:
mode:
authorpcadach <pcadach@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-29 18:30:34 +0000
committerpcadach <pcadach@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-29 18:30:34 +0000
commitcc345da7535e379e0a1ba1e3a251e804c6c801db (patch)
treeaed770d50d8e195f9d418d1c1c657aadbd283d2b /channels/chan_h323.c
parent7c39094d7b0ff9727ef4d02c2f9c0ad95e9f2b01 (diff)
Pass TON/PRESENTATION information too
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44009 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_h323.c')
-rw-r--r--channels/chan_h323.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c
index f147cfe69..b7cb0a0ea 100644
--- a/channels/chan_h323.c
+++ b/channels/chan_h323.c
@@ -626,6 +626,9 @@ static int oh323_call(struct ast_channel *c, char *dest, int timeout)
strncpy(pvt->options.cid_rdnis, c->cid.cid_rdnis, sizeof(pvt->options.cid_rdnis));
}
+ pvt->options.presentation = c->cid.cid_pres;
+ pvt->options.type_of_number = c->cid.cid_ton;
+
if ((addr = pbx_builtin_getvar_helper(c, "PRIREDIRECTREASON"))) {
if (!strcasecmp(addr, "UNKNOWN"))
pvt->options.redirect_reason = 0;
@@ -1076,6 +1079,8 @@ static struct ast_channel *__oh323_new(struct oh323_pvt *pvt, int state, const c
ch->cid.cid_rdnis = ast_strdup(pvt->cd.redirect_number);
pbx_builtin_setvar_helper(ch, "PRIREDIRECTREASON", redirectingreason2str(pvt->cd.redirect_reason));
}
+ ch->cid.cid_pres = pvt->cd.presentation;
+ ch->cid.cid_ton = pvt->cd.type_of_number;
if (!ast_strlen_zero(pvt->exten) && strcmp(pvt->exten, "s")) {
ch->cid.cid_dnid = strdup(pvt->exten);