aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_mgcp.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-24 21:46:06 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-24 21:46:06 +0000
commit542a854fe7f3a9a855f60231945adf588454667f (patch)
tree24a17b85a09243254ac88de25a7671c99a9d6fed /channels/chan_mgcp.c
parent187f2241a90eee0c934a4f7506b746026b59e0b3 (diff)
MGCP updates to try to improve CID delivery
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@682 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_mgcp.c')
-rwxr-xr-xchannels/chan_mgcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index 705d87aad..8f4a76150 100755
--- a/channels/chan_mgcp.c
+++ b/channels/chan_mgcp.c
@@ -267,7 +267,7 @@ static int mgcp_call(struct ast_channel *ast, char *dest, int timeout)
res = 0;
p->outgoing = 1;
if (p->type == TYPE_LINE) {
- transmit_notify_request_with_callerid(p, "rg", 0, ast->callerid);
+ transmit_notify_request_with_callerid(p, "L/rg", 0, ast->callerid);
ast_setstate(ast, AST_STATE_RINGING);
ast_queue_control(ast, AST_CONTROL_RINGING, 0);
} else {
@@ -1243,13 +1243,13 @@ static int transmit_notify_request_with_callerid(struct mgcp_endpoint *p, char *
n = "O";
if (!l)
l = "";
- snprintf(tone2, sizeof(tone2), "%s, ci(%02d/%02d/%02d/%02d,%s,%s)", tone,
+ snprintf(tone2, sizeof(tone2), "%s,L/ci(%02d/%02d/%02d/%02d,%s,%s)", tone,
tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, l, n);
strncpy(p->curtone, tone, sizeof(p->curtone) - 1);
reqprep(&resp, p, "RQNT");
add_header(&resp, "X", p->txident);
if (offhook)
- add_header(&resp, "R", "hu(N), hf(N), D/[0-9#*](N)");
+ add_header(&resp, "R", "hu(N),hf(N),D/[0-9#*](N)");
else
add_header(&resp, "R", "hd(N)");
add_header(&resp, "S", tone2);