A
A
Axelertortt2015-01-11 14:02:05
Asterisk
Axelertortt, 2015-01-11 14:02:05

Hell world Asterisk 1.4.4?

I started to learn the basics of Asterisk, I read a book on asterisk Meggelen, L. Madsen, J. Smith Asterisk the future of telephony 2nd ed.
I decided to follow the book and installed Asterisk 1.4.4, Zaptel 1.4.2.1 and libpri 1.4.0 on CentOS Server 4.4 i386. Everything is installed, it seems to be working (I calmly go into the CLI). It would be possible to read the English version, since it is the 4th edition, but I am friends with English anyhow (I only calmly read the manuals). I tried to configure Softphone for SIP:
[general]
[1000]
type=friend
context=test
host=dynamic
secret=12345
Dialplan for it:
[test]
exten => s,1,Answer()
exten => s,n,Playback( hello-world)
exten => s,n,Hangup()
But that doesn't work. If you replace s with 500 and call it, it will work. But I want to understand how to work with the template (standard extension) s. Could you please write a simple config sip.conf+extentions.conf for a system with make samples (i.e. just installed). And explain how to work with "s". Thank you)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2015-01-11
@Axelertortt

s - not invented for that, so as not to just type
it, it is usually used in macros, processing incoming calls from Dahdi (it is instead of Zaptel), registering peers without specifying the exten
, you do not need to use it without special need,
let's say so

[test]
exten => 500,1,Goto(s,1)
exten => 603,1,Goto(s,1)

exten => s,1,Answer()
exten => s,n,Playback(hello-world)
exten => s,n,Hangup()
but it doesn't make much sense, because any exten can be used instead of "s"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question