mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
we update the name on any first reply of our setup
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2012,7 +2012,7 @@ static int misdn_call(struct ast_channel *ast, char *dest, int timeout)
|
||||
if (newbc->nt) stop_bc_tones(ch);
|
||||
|
||||
ch->state=MISDN_CALLING;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -4174,7 +4174,9 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
|
||||
break;
|
||||
case EVENT_PROCEEDING:
|
||||
{
|
||||
|
||||
if (bc->channel)
|
||||
update_name(ch->ast,bc->port,bc->channel);
|
||||
|
||||
if ( misdn_cap_is_speech(bc->capability) &&
|
||||
misdn_inband_avail(bc) ) {
|
||||
start_bc_tones(ch);
|
||||
@@ -4186,6 +4188,10 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
|
||||
}
|
||||
break;
|
||||
case EVENT_PROGRESS:
|
||||
|
||||
if (bc->channel)
|
||||
update_name(ch->ast,bc->port,bc->channel);
|
||||
|
||||
if (!bc->nt ) {
|
||||
if ( misdn_cap_is_speech(bc->capability) &&
|
||||
misdn_inband_avail(bc)
|
||||
@@ -4202,6 +4208,9 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
|
||||
|
||||
case EVENT_ALERTING:
|
||||
{
|
||||
if (bc->channel)
|
||||
update_name(ch->ast,bc->port,bc->channel);
|
||||
|
||||
ch->state = MISDN_ALERTING;
|
||||
|
||||
ast_queue_control(ch->ast, AST_CONTROL_RINGING);
|
||||
|
Reference in New Issue
Block a user