You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/apps/examples/jukecall
Stefan Sayer 3497f9e94a
fixed header include due to AmAudio/AmAudioFile split
18 years ago
..
wav an example for the B2ABSession 19 years ago
Jukecall.cpp jukecall example updated to B2ABSession fix from r300/r304 19 years ago
Jukecall.h fixed header include due to AmAudio/AmAudioFile split 18 years ago
Makefile an example for the B2ABSession 19 years ago
Readme.jukecall an example for the B2ABSession 19 years ago

Readme.jukecall

Jukecall

This is an example of how to use the B2ABSession - a kind of 
b2bua where SEMS stays in the media path, or media relay. 

Because SEMS stays in the path, its possible to react e.g. 
on DTMF while in the call - and the jukecall example does 
just this:
First it plays a welcome message to the caller, then it 
connects to the originally dialled number stripped by the
first three digits. When the two parties are connected, 
the first one can play some files into the call by pressing
the keys on the phone.

for example:

123@example.org    SEMS jukecall       456@example.org

|  INVITE sip:500456    |                       |
+---------------------->|                       |
|  200 OK               |                       |
|<----------------------|                       |
|                       |                       |
| play greeting.wav     |                       |
|<======================|                       |
|                       |                       |
|                       |                       |
|                       | INVITE sip:456        |
|                       +---------------------->|
|                       | 200 OK                |
|                       |<----------------------|
|                       |                       |
|                       |                       |
|          connected through relay              |
|<=====================>|<=====================>|
|                       |                       |
|  DTMF 1               |                       |
|-=-=-=-=-=-=-=-=-=-=-=>|                       |
|                       |                       |
|        play 1.wav     |   play 1.wav          |
|<======================|======================>|
|                       |                       |
|          connected through relay              |
|<=====================>|<=====================>|
|                       |                       |
|  DTMF 3               |                       |
|-=-=-=-=-=-=-=-=-=-=-=>|                       |
|                       |                       |
|        play 3.wav     |   play 3.wav          |
|<======================|======================>|
|                       |                       |

aso.