]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
we update the name on any first reply of our setup
authorChristian Richter <christian.richter@beronet.com>
Thu, 1 Feb 2007 13:17:18 +0000 (13:17 +0000)
committerChristian Richter <christian.richter@beronet.com>
Thu, 1 Feb 2007 13:17:18 +0000 (13:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53060 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index cfee1c8922ecca880b7217471f77790ff6197052..80520d7235319faa76ca45ca8d41af298fce2c88 100644 (file)
@@ -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);