linphone-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-users] DTMF/SIP Info


From: Maris
Subject: [Linphone-users] DTMF/SIP Info
Date: Wed, 03 Jun 2009 19:23:32 +0200
User-agent: Opera Mail/9.64 (Linux)

As of version 3.1.2 received DTMF tones are reported by linphone. Linphonec reports e.g. "Receiving tone 5".


On Mon, 11 May 2009 18:01:19 +0200, <address@hidden> wrote:

Send Linphone-users mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.nongnu.org/mailman/listinfo/linphone-users
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linphone-users digest..."


Today's Topics:

   1.  DTMF / SIP info (Maris)


----------------------------------------------------------------------

Message: 1
Date: Mon, 11 May 2009 12:38:22 +0200
From: Maris <address@hidden>
Subject: [Linphone-users] DTMF / SIP info
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8

Hi,

according to following link from 2006:
http://osdir.com/ml/voip.linphone.user/2006-04/msg00030.html

Linphone does not support relaying received digits to the user. Quote:
"RFC2833 tones are detected but not relayed through the linphonecore api.
You'll need to hack the on_dtmf_received() function in file audiostream.c
in
mediastreamer or mediastreamer2"

Is this hack still required with 3.0.x?

And should I place the hack somewhere else when SIP info messages should
be reported?


I'm using linphonec in a pipe construct from my application. Using
Linphonec I'm already catching messages as follows (example Tcl script):


====================================================
proc linphone_start {} {
       set fid [open |linphonec r+]
       fconfigure $fid -buffering line -blocking 0
       fileevent $fid readable {readfrompipe $fid}
}

set count 0
proc readfrompipe {fid} {
       global count
       incr count
       set response [read $fid]
       puts -nonewline "Response $count: $response   "
       # note each switch action for the sake of this example only
outputting
text to the console
       switch -glob $response {
           Connected* {puts "hi, you are connected now!"}
           "Call terminated*" {puts "the call has been terminated..."}
           "User is busy*" {puts "Busy, please try again later."}
"Could not reach*" {puts "User is probably not registered yet."} Signal=* { --- here a following digit to being processed in the
application ---  }
           Terminating..* {close $fid}
       }
}

====================================================

I'd use the Signal=n text which appears upon linphonec started with -d
start option, while the SIP server is configured as to force SIP info
messages.
Info: Standard dtmf reception is reported by an ortp-message in debug mode
(e.g.
ortp-message-Receiving dtmf 3.).

Rob




------------------------------

_______________________________________________
Linphone-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/linphone-users


End of Linphone-users Digest, Vol 78, Issue 1
*********************************************



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]