How to write O'Reiily sample in new syntax?

I have the following example from O’Reiily book:

[globals]
[general]
[default]
exten => s,1,Verbose(1|Unrouted call handler)
exten => s,n,Answer()
exten => s,n,Wait(1)
exten => s,n,Playback(tt-weasels)
exten => s,n,Hangup()
[incoming_calls]
[internal]
exten => 500,1,Verbose(1|Echo test application)
exten => 500,n,Echo()
exten => 500,n,Hangup()
[phones]
include => internal

But it’s syntax is wrong. I have replaced | to , but the sample still does not work.

Here is the asterisk CLI output while calling

== Using SIP RTP CoS mark 5
– Executing [500@phones:1] Verbose(“SIP/1000-00000006”, “1,Echo test application”) in new stack
Echo test application
– Executing [500@phones:2] Echo(“SIP/1000-00000006”, “”) in new stack

Answer() first before you Echo().