/ fixed bug w/regards to playing dtmf's on native bridges
authorBen Kramer <bkramer@voicetronix.com.au>
Tue, 30 Nov 2004 20:55:23 +0000 (20:55 +0000)
committerBen Kramer <bkramer@voicetronix.com.au>
Tue, 30 Nov 2004 20:55:23 +0000 (20:55 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4359 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_vpb.c

index c52afda..1cb4191 100755 (executable)
@@ -2003,7 +2003,7 @@ static void *do_chanreads(void *pvt)
                        // This DTMF is played by asterisk and leads to an annoying trailing beep on CISCO phones
                        if( !ignore_dtmf) 
                                vpb_set_event_mask(p->handle, VPB_EVENTS_NODTMF );
-                       if (strcmp(p->owner->type,"vpb")){
+                       if (strcmp(p->owner->type,"vpb")==0){
                                vpb_dial_sync(p->handle,p->play_dtmf);
                                if(option_verbose>1) 
                                        ast_verbose( VERBOSE_PREFIX_2 "%s: chanreads: Played DTMF %s\n",p->dev,p->play_dtmf);