mirror of https://github.com/sipwise/sems.git
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.
54 lines
2.2 KiB
54 lines
2.2 KiB
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.
|