SCPY(e_dialinginfo.id, e_extdialing);
e_extdialing = e_dialinginfo.id;
}
+ /* add prefix */
+ if ((rparam = routeparam(e_action, PARAM_PREFIX))) {
+ char extdialing[256];
+ SCPY(extdialing, e_extdialing);
+ SPRINT(e_dialinginfo.id, "%s%s", rparam->string_value, extdialing);
+ e_extdialing = e_dialinginfo.id;
+ }
+
}
/* play sample */
end_trace();
break;
+ case MESSAGE_ENABLEKEYPAD:
+ trace_header("ENABLEKEYPAD", dir);
+ end_trace();
+ break;
+
default:
PERROR("EPOINT(%d) message not of correct type (%d)\n", ea_endpoint->ep_serial, message_type);
}
case MESSAGE_CONNECT:
memcpy(&p_connectinfo, ¶m->connectinfo, sizeof(p_connectinfo));
new_state(PORT_STATE_CONNECT);
+ {
+ union parameter newparam;
+ memset(&newparam, 0, sizeof(union parameter));
+ param->traffic.len = 160;
+ admin_message_from_lcr(p_r_remote_id, p_r_ref, MESSAGE_TRAFFIC, param);
+ }
break;
case MESSAGE_DISCONNECT:
case MESSAGE_CONNECT:
memcpy(&p_connectinfo, ¶m->connectinfo, sizeof(p_connectinfo));
new_state(PORT_STATE_CONNECT);
+ {
+ union parameter newparam;
+ memset(&newparam, 0, sizeof(union parameter));
+ param->traffic.len = 160;
+ admin_message_from_lcr(p_r_remote_id, p_r_ref, MESSAGE_TRAFFIC, param);
+ }
break;
case MESSAGE_DISCONNECT:
// "Caller calls the timer."},
{ ACTION_GOTO,
"goto", NULL, &EndpointAppPBX::action_dialing_goto, NULL,
- PARAM_PROCEEDING | PARAM_ALERTING | PARAM_CONNECT | PARAM_RULESET | PARAM_STRIP | PARAM_SAMPLE,
+ PARAM_PROCEEDING | PARAM_ALERTING | PARAM_CONNECT | PARAM_RULESET | PARAM_STRIP | PARAM_PREFIX | PARAM_SAMPLE,
"Jump to given ruleset and optionally play sample. Dialed digits are not flushed."},
{ ACTION_MENU,
"menu", NULL, &EndpointAppPBX::action_dialing_menu, NULL,