DTMF dialer? (#595)
Unknown opened 2 years ago

I just made a call with BeagleIM and was confused that I couldn't find a touch tone pad to select menu entries on the call. Is this something that is just hidden somewhere or does it not exist? (I'm using jmp.chat to connect xmpp with a regular phone number).

Thanks!

Unknown commented 2 years ago

Currently there is no DTMF dialer in Beagle IM, so it is not possible to do that.

We will look into possibility to add DTMF dialer in the future versions as WebRTC library which we are using contains DTMF sender if I'm correct, so it shouldn't be problematic to add that.

57194 commented 2 months ago

I don't know if the snippet from this answer helps point in the right direction any or not:

-(void)dtmfTonePlayer: (NSString *)dtmfTone {
    RTCRtpSender* m_audioSender = nil ;
    for( RTCRtpSender *rtpSender in m_peerConnection.senders){
     if([[[rtpSender track] kind] isEqualToString:@“audio”]) {
       DLog(@“Assigning audio to rtp sender”);
       m_audioSender = rtpSender;
     }  
    }
     if(m_audioSender){
     NSOperationQueue *queue = [[NSOperationQueue alloc] init];
     [queue addOperationWithBlock:^{
        BOOL istoneplayed = [m_audioSender.dtmfSender insertDtmf :(NSString *)dtmfTone 
        duration:(NSTimeInterval)2 interToneGap:(NSTimeInterval)0.5];
        NSLog(@“DTMF Tone played :: [%s]“, istoneplayed ? “true” : “false”);
     }];
     }
   }
issue 1 of 1
Issue Votes (1)
Watchers (3)
Reference
tigase/_clients/beagle-im#595
Please wait...
Page is in error, reload to recover