Workshop

Uit Limesco Wiki
Versie door SGielen (overleg | bijdragen) op 16 sep 2013 om 19:06 (Start of Workshop)
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)
Ga naar: navigatie, zoeken

SIP registration

Add to sip.conf:

[sipphone]
type=friend
host=dynamic
context=from-sipphone
secret=geheim
insecure=invite

Add to extensions.conf:

[from-sipphone]
; Here will be the dialplan rules that are relevant
; when we call a number from the SIP phone.
exten => 1234,1,Answer
exten => 1234,n,Wait(1)
exten => 1234,n,Playback(demo-thanks)
exten => 1234,n,Hangup

Open your Asterisk console using asterisk -vvvR (may need to run as root), then:

yourpbx*CLI> sip reload
yourpbx*CLI> dialplan reload
yourpbx*CLI> sip show peers
Name/username      Host               Dyn Forcerport ACL Port     Status     
sipphone/sipphone  (Unspecified)      D   N              0        Unmonitored

Now, configure your phone to connect to your Asterisk instance (over UDP). Watch your Asterisk log. When it connects, you will see a message. If it doesn't, use sip set debug on to find out whether you're receiving INVITE messages and see their contents.

As soon as the SIP phone is connected, call 1234 on it. You will hear a thank-you message from Asterisk.