From b419af004236714d1db1c12a5179dafc5380dbb9 Mon Sep 17 00:00:00 2001 From: Mario Mishev Date: Fri, 26 Oct 2018 19:36:02 +0300 Subject: [PATCH] Modified asterisk configs --- communication/asterisk/extensions.conf | 6 +- communication/asterisk/sip.conf | 90 +++++++++++++++++++------- 2 files changed, 72 insertions(+), 24 deletions(-) diff --git a/communication/asterisk/extensions.conf b/communication/asterisk/extensions.conf index 1dad450..32a352b 100644 --- a/communication/asterisk/extensions.conf +++ b/communication/asterisk/extensions.conf @@ -225,14 +225,18 @@ TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0) [openfest] - +exten => 301,hint,SIP/reception exten => 301,1,Dial(SIP/reception) exten => 302,1,Dial(SIP/wardrobe) exten => 303,1,Dial(SIP/noc1&SIP/noc2) +exten => 304,hint,SIP/teamroom exten => 304,1,Dial(SIP/teamroom) +exten => 256,hint,SIP/room-c exten => 256,1,Dial(SIP/room-c) +exten => 512,hint,SIP/room-b exten => 512,1,Dial(SIP/room-b) +exten => 768,hint,SIP/room-a exten => 768,1,Dial(SIP/room-a) exten => 401,1,Dial(SIP/user-401) diff --git a/communication/asterisk/sip.conf b/communication/asterisk/sip.conf index 4724c9a..dd67bad 100644 --- a/communication/asterisk/sip.conf +++ b/communication/asterisk/sip.conf @@ -64,7 +64,7 @@ allowoverlap=no ; Disable overlap dialing support. (Default is y ; depends on the operating system. On systems using glibc, AAAA records are given ; priority. -udpbindaddr=10.25.0.1 ; IP address to bind UDP listen socket to (0.0.0.0 binds to all) +udpbindaddr=10.25.0.1 ; IP address to bind UDP listen socket to (0.0.0.0 binds to all) ; Optionally add a port number, 192.168.1.1:5062 (default is port 5060) ; When a dialog is started with another SIP endpoint, the other endpoint @@ -785,7 +785,6 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls ; nat = auto_comedia ; Set the comedia option if Asterisk detects NAT ; ; The nat settings can be combined. For example, to set both force_rport and comedia -; one would set nat=force_rport,comedia. If any of the comma-separated options is 'no', ; Asterisk will ignore any other settings and set nat=no. If one of the "auto" settings ; is used in conjunction with its non-auto counterpart (nat=comedia,auto_comedia), then ; the non-auto option will be ignored. @@ -1453,6 +1452,15 @@ nat=no context=openfest allow=all qualify=yes +subscribecontext=openfest +callcounter=yes +allowsubscribe=yes +limitonpeers=yes +notifyringing=yes +notifyhold=yes +notifyid=yes +call-limit=4 +busylevel=1 [wardrobe] type=friend @@ -1467,7 +1475,6 @@ context=openfest allow=all qualify=yes - [noc1] type=friend host=dynamic @@ -1506,6 +1513,15 @@ nat=no context=openfest allow=all qualify=yes +subscribecontext=openfest +callcounter=yes +allowsubscribe=yes +limitonpeers=yes +notifyringing=yes +notifyhold=yes +notifyid=yes +call-limit=4 +busylevel=1 [room-a] type=friend @@ -1519,6 +1535,15 @@ nat=no context=openfest allow=all qualify=yes +subscribecontext=openfest +callcounter=yes +allowsubscribe=yes +limitonpeers=yes +notifyringing=yes +notifyhold=yes +notifyid=yes +call-limit=4 +busylevel=1 [room-b] type=friend @@ -1532,6 +1557,15 @@ nat=no context=openfest allow=all qualify=yes +subscribecontext=openfest +callcounter=yes +allowsubscribe=yes +limitonpeers=yes +notifyringing=yes +notifyhold=yes +notifyid=yes +call-limit=4 +busylevel=1 [room-c] type=friend @@ -1545,8 +1579,17 @@ nat=no context=openfest allow=all qualify=yes +subscribecontext=openfest +callcounter=yes +allowsubscribe=yes +limitonpeers=yes +notifyringing=yes +notifyhold=yes +notifyid=yes +call-limit=4 +busylevel=1 -[user-401] +[user-401] type=friend host=dynamic secret=pass @@ -1558,7 +1601,7 @@ nat=no context=openfest qualify=yes -[user-402] +[user-402] type=friend host=dynamic secret=pass @@ -1570,7 +1613,7 @@ nat=no context=openfest qualify=yes -[user-403] +[user-403] type=friend host=dynamic secret=pass @@ -1582,7 +1625,7 @@ nat=no context=openfest qualify=yes -[user-404] +[user-404] type=friend host=dynamic secret=pass @@ -1594,7 +1637,7 @@ nat=no context=openfest qualify=yes -[user-405] +[user-405] type=friend host=dynamic secret=pass @@ -1606,7 +1649,7 @@ nat=no context=openfest qualify=yes -[user-406] +[user-406] type=friend host=dynamic secret=pass @@ -1618,7 +1661,7 @@ nat=no context=openfest qualify=yes -[user-407] +[user-407] type=friend host=dynamic secret=pass @@ -1630,7 +1673,7 @@ nat=no context=openfest qualify=yes -[user-408] +[user-408] type=friend host=dynamic secret=pass @@ -1642,7 +1685,7 @@ nat=no context=openfest qualify=yes -[user-409] +[user-409] type=friend host=dynamic secret=pass @@ -1654,7 +1697,7 @@ nat=no context=openfest qualify=yes -[user-410] +[user-410] type=friend host=dynamic secret=pass @@ -1666,7 +1709,7 @@ nat=no context=openfest qualify=yes -[user-411] +[user-411] type=friend host=dynamic secret=pass @@ -1678,7 +1721,7 @@ nat=no context=openfest qualify=yes -[user-412] +[user-412] type=friend host=dynamic secret=pass @@ -1690,7 +1733,7 @@ nat=no context=openfest qualify=yes -[user-413] +[user-413] type=friend host=dynamic secret=pass @@ -1702,7 +1745,7 @@ nat=no context=openfest qualify=yes -[user-414] +[user-414] type=friend host=dynamic secret=pass @@ -1714,7 +1757,7 @@ nat=no context=openfest qualify=yes -[user-415] +[user-415] type=friend host=dynamic secret=pass @@ -1726,7 +1769,7 @@ nat=no context=openfest qualify=yes -[user-416] +[user-416] type=friend host=dynamic secret=pass @@ -1738,7 +1781,7 @@ nat=no context=openfest qualify=yes -[user-417] +[user-417] type=friend host=dynamic secret=pass @@ -1750,7 +1793,7 @@ nat=no context=openfest qualify=yes -[user-418] +[user-418] type=friend host=dynamic secret=pass @@ -1762,7 +1805,7 @@ nat=no context=openfest qualify=yes -[user-419] +[user-419] type=friend host=dynamic secret=pass @@ -1774,7 +1817,7 @@ nat=no context=openfest qualify=yes -[user-420] +[user-420] type=friend host=dynamic secret=pass @@ -1786,3 +1829,4 @@ nat=no context=openfest qualify=yes + -- 2.40.1