{"id":3105,"date":"2014-03-25T18:51:51","date_gmt":"2014-03-25T09:51:51","guid":{"rendered":"http:\/\/pchero21.com\/?p=3105"},"modified":"2014-03-25T18:51:51","modified_gmt":"2014-03-25T09:51:51","slug":"asterisk-sip-conf","status":"publish","type":"post","link":"http:\/\/pchero21.com\/?p=3105","title":{"rendered":"Asterisk &#8211; sip.conf"},"content":{"rendered":"<p>\/etc\/asterisk\/sip.conf \ud30c\uc77c\uc740 Asterisk \uc5d0\uc11c sip \ucc44\ub110\uc744 \uc124\uc815\ud558\ub294 \ud30c\uc77c\uc774\ub2e4. \uc989, Asterisk \uc5d0\uc11c \uad00\ub9ac\ud558\ub294 SIP \ub2e8\ub9d0\uae30 \uc815\ubcf4\ub97c \uc785\ub825\ud558\ub294 \uc124\uc815\ud30c\uc77c\uc774\ub2e4.<\/p>\n<p>\/etc\/asterisk\/sip.conf \ud30c\uc77c \uc608\uc81c<\/p>\n<pre class=\"brush:plain\">[general]\ncontext = unauthenticated               ; default context for incoming calls\nallowguest = no                 ; disable unauthenticated calls\nsrvlookup = no                  ; disable DNS SRV record lookup on outbound calls\n                                ;   (unless you have a reliable DNS connection,\n                                ;   in which case yes)\nudpbindaddr = 0.0.0.0           ; listen for UDP requests on all interfaces\nport = 5060\ntcpenable = no                  ; disable TCP support\nregister =&gt; 123123123:123123123@192.168.0.1  ; External trunk register information\n;tlsenable = yes\n;tlsbindaddr = ::\n\n[teset_phone_ibk87ns4gj]\ntype = friend\nhost = dynamic\nsecret = tb9hibvp9c\ncontext = demo\n\n[messagewaiting](!)             ; a template to handle the settings common\n                                ; to all mailboxes\ntype=peer\nsubscribecontext = voicemailbox ; the dialplan context on the voicemail server\ncontext = voicemailbox          ; the dialplan context on the voicemail server\nhost = 192.168.200.10           ; ip address of presence server\n\n[office-phone](!)       ; create a template for our devices\ntype = friend           ;   the channel driver will match on username first,\n                        ;   IP second\ncontext = LocalSets     ; this is where calls from the device will enter\n                        ; the dialplan\nhost = dynamic          ; the device will register with asterisk\nnat = force_rport,comedia       ; assume device is behind NAT\n                        ;   *** NAT stands for Network Address Translation,\n                        ;   which allows multiple internal devices to share an\n                        ;   external IP address.\ndtmfmode = auto ; accept touch-tone from the devices, negotiated\n                ; automatically\ndisallow = all  ; reset which voice codec this device will accept or offer\nallow = g722    ; audio codecs to accept from, and request to, the device\nallow = ulaw    ; in the order we prefer\n\n; define a device name and use the office-phone template\n[0000FFFF0001](office-phone)\nsecret = helloworld      ; a unique password for this device --\n                        ; DON'T USE THE PASSWORD WE'VE USED IN THIS EXAMPLE!\n\n; define another device name using the same template\n[0000FFFF0002](office-phone)\nsecret = helloworld ; a unique password for this device --\n                        ; DON'T USE THE PASSWORD WE'VE USED IN THIS EXAMPLE!\n\n[0000FFFF0003](office-phone)\nsecret = helloworld   ; DON'T USE THE PASSWORD WE'VE USED IN THIS EXAMPLE!\nallow = gsm\n\n[0000FFF0004](messagewaiting)   ; this will need to match the subsriber\n                                ; name on the proxy\nmailbox = 0000FFFF0004@DIR1     ; must be in the form mailbox@mailboxcontext\ndefaultuser = 0000FFFF0004      ; this will need to match the subscriber\n                                ; name on the proxy<\/pre>\n<p><strong>[general] Section<\/strong><\/p>\n<p>\uac00\uc7a5 \uae30\ubcf8\uc801\uc778 \uc139\uc158\uc774\uba70, Default \uac12\ub4e4\uc744 \uc124\uc815\ud558\ub294 \uacf3\uc774\ub2e4.<br \/>\n\ubaa8\ub4e0 \ucc44\ub110 \ubaa8\ub4c8 \uc124\uc815\uc2dc, \uae30\ubcf8\uc801\uc73c\ub85c \uc124\uc815\uc758 \uc81c\uc77c \uc55e\ubd80\ubd84\uc5d0 [general] \uc139\uc158\uc744 \ud3ec\ud568\ud55c\ub2e4\uace0 \uc0dd\uac01\ud558\uba74 \ub418\uba70,\u00a0 [general] \uc139\uc158\uc758 \uc774\ub984\uc740 \ubc14\ub00c\uc5b4\uc11c\ub294 \uc548\ub41c\ub2e4.<br \/>\n[general] \uc139\uc158\uc5d0\uc11c\ub294 \uae30\ubcf8\uc801\uc778 \ud504\ub85c\ud1a0\ucf5c \uc5f0\uacb0 \ubc29\uc2dd\uacfc Default Parameter \ub4e4\uc744 \uc124\uc815\ud560 \uc218 \uc788\ub2e4.<\/p>\n<blockquote><p>context=unauthenticated\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ; default context for incoming calls<\/p><\/blockquote>\n<p>\uc704\uc758 \uc608\uc81c\uc5d0\uc11c\ub294 default context \ub85c unauthenticated \ub97c \uc124\uc815\ud588\ub2e4. \uc774\uac83\uc740, \ubcc4\ub3c4\ub85c context\ub97c \uc124\uc815\ud558\uc9c0 \uc54a\uc740 sip \ucc44\ub110\ub4e4\uc5d0 \ub300\ud574\uc11c\ub294 unauthenticated \ubc29\uc2dd\uc73c\ub85c \ucc98\ub9ac\ud558\uaca0\ub2e4\ub294 \ub73b\uc774\ub2e4.<br \/>\n\ucc38\uace0\ub85c unauthenticated \uc5d0 \uad00\ud55c \uc124\uc815 \ub0b4\uc6a9\uc740 \/etc\/asterisk\/extension.conf \uc5d0 \uc124\uc815\ud560 \ub418\uc5b4\uc788\uc5b4\uc57c \ud55c\ub2e4.<\/p>\n<blockquote><p>allowguest=no\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ; disable unauthenticated calls<\/p><\/blockquote>\n<p>Guest call \ud5c8\uc6a9 \uc5ec\ubd80. \uba85\uc2dc\uc801\uc73c\ub85c \uacc4\uc815\uc744 \uac00\uc9c4 \uc0ac\ub78c\ub4e4\ub9cc \ud1b5\ud654\uac00 \uac00\ub2a5\ud558\ub3c4\ub85d \ud560\uc9c0 \ub9d0\uc9c0\uc5d0 \uad00\ud55c \uc635\uc158\uc774\ub2e4. No \ub85c \uc124\uc815\uc2dc, sip.conf \uc5d0 \ub4f1\ub85d\ub41c \uacc4\uc815\ub9cc \ud1b5\ud654\uac00 \uac00\ub2a5\ud558\uac8c \ub41c\ub2e4.<\/p>\n<blockquote><p>srvlookup=no\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ; disable DNS SRV record lookup on outbound calls<br \/>\n;\u00a0\u00a0 (unless you have a reliable DNS connection,<br \/>\n;\u00a0\u00a0 in which case yes)<\/p><\/blockquote>\n<p>DNS lookup \uc124\uc815 \uc5ec\ubd80<\/p>\n<blockquote><p>udpbindaddr=0.0.0.0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ; listen for UDP requests on all interfaces<\/p><\/blockquote>\n<p>NIC \uac00 \uc5ec\ub7ec\uac1c \uc788\uc744 \uacbd\uc6b0, \uc5b4\ub290 IP \uc8fc\uc18c\ub85c Listen \uc18c\ucf13\uc744 \uc5f4\uc5b4\ub458\uc9c0\ub97c \uc124\uc815\ud558\ub294 \uc635\uc158. 0.0.0.0 \uc73c\ub85c \uc124\uc815\ud560 \uacbd\uc6b0, \uc0ac\uc6a9\uac00\ub2a5\ud55c \ubaa8\ub4e0 IP \uc8fc\uc18c\ub85c Listen Port \ub97c \uc5f4\uc5b4\ub193\ub294\ub2e4.<br \/>\nAsterisk \uc758 NIC \uc0ac\uc6a9\ubc29\uc2dd\uc740 all-or-one \ubc29\uc2dd\uc774\ub2e4. \uc989, \ud558\ub098\ub97c \uc0ac\uc6a9\ud558\uac70\ub098 \ubaa8\ub450\ub97c \uc0ac\uc6a9\ud558\uac70\ub098 \uc774\ub2e4.<br \/>\n\uc608\ub97c \ub4e4\uc5b4, \ub9cc\uc57d NIC\uac00 3\uac1c\uac00 \uc788\uc744 \uacbd\uc6b0 \uc774\uc911 2\uac1c\ub9cc \uc0ac\uc6a9\ud560 \uc218\ub294 \uc5c6\ub2e4\ub294 \uac83\uc774\ub2e4.<\/p>\n<blockquote><p>tcpenable=no\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ; disable TCP support<\/p><\/blockquote>\n<p>TCP \uc0ac\uc6a9 \uc5ec\ubd80\ub97c \uc124\uc815\ud55c\ub2e4.<\/p>\n<p><strong>[office-phone](!) \uc139\uc158<\/strong><\/p>\n<blockquote><p>\u00a0[office-phone](!)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ; create a template for our devices<\/p><\/blockquote>\n<p>\ud15c\ud50c\ub9bf \uc139\uc158 \uc124\uc815. [office-phone] \ub4a4\uc5d0 \ubd99\uc740 (!) \ud45c\uc2dc\ub294 \uc774 \uc139\uc158\uc740 \ud15c\ud50c\ub9bf\ub85c \uc0ac\uc6a9\ub41c\ub2e4\ub294 \uac83\uc744 \uac00\ub9ac\ud0a8\ub2e4. \ud15c\ud50c\ub9bf\uc73c\ub85c \ub9cc\ub4e4\uc5b4\uc9c4 \uc139\uc158\uc740 \ucd94\ud6c4 device \ucd94\uac00\uc2dc \uc801\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uac00\ub2a5 \ud558\ub2e4.<\/p>\n<blockquote><p>type=friend\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ;\u00a0\u00a0 the channel driver will match on username first,<br \/>\n;\u00a0\u00a0 IP second<\/p><\/blockquote>\n<p>peer, user, friend \ub85c \uc124\uc815\uac00\ub2a5\ud558\ub2e4. \uac01\uac01\uc758 \uc758\ubbf8\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<br \/>\npeer : Source IP \uc640 Port number \ub85c \uc694\uccad\uc744 \ud655\uc778\ud55c\ub2e4.<br \/>\nuser : SIP Request \uc5d0\uc11c From header \uc548\uc758 username \uc73c\ub85c \uc694\uccad\uc744 \ud655\uc778\ud55c\ub2e4. sip.conf \uc5d0\uc11c \uc124\uc815\ub41c \ub0b4\uc6a9\uc911\uc5d0\uc11c \uc77c\uce58\ud558\ub294 device \uc815\ubcf4\ub97c \ucc3e\ub294\ub2e4.<br \/>\nfriend : peer\/user \ub450\uac00\uc9c0 \ubc29\uc2dd \ubaa8\ub450 \uc0ac\uc6a9\ud574\uc11c \uc694\uccad\uc744 \ud655\uc778\ud55c\ub2e4.<\/p>\n<blockquote><p>host=dynamic\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ; the device will register with asterisk<\/p><\/blockquote>\n<p>\uc5f0\uacb0\ub418\ub294 SIP \uc7a5\ube44\uc758 IP \uc8fc\uc18c\ub97c \uc124\uc815\ud55c\ub2e4. dynamic \ub610\ub294 \uc9c1\uc811 IP \uc8fc\uc18c \uc785\ub825 \ubc29\uc2dd\uc774 \uc788\ub294\ub370, \ub9cc\uc57d SIP \ub2e8\ub9d0\uae30\uac00 \uace0\uc815 IP \uac00 \uc544\ub2c8\ub77c\uba74 dynamic \uc73c\ub85c \uc124\uc815\ud574\uc57c \ud55c\ub2e4.<em><\/em><\/p>\n<blockquote><p>\u00a0nat=force_rport,comedia ; assume device is behind NAT<br \/>\n;\u00a0\u00a0 *** NAT stands for Network Address Translation,<br \/>\n;\u00a0\u00a0 which allows multiple internal devices to share an<br \/>\n;\u00a0\u00a0 external IP address.<\/p><\/blockquote>\n<p>\ub2e8\ub9d0\uc7a5\uce58\uac00 NAT \uc548\ucabd\uc5d0 \uc788\ub294 \uacbd\uc6b0 \uc124\uc815\ud55c\ub2e4.<\/p>\n<blockquote><p>dtmfmode=auto\u00a0\u00a0 ; accept touch-tone from the devices, negotiated<br \/>\n; automatically<\/p><\/blockquote>\n<p>Asterisk \uac00 DTMF(touch-tone)\uc744 \ubcf4\ub0bc \ub54c, \uc5b4\ub5a4 \ud615\uc2dd\uc758 Dial tone\uc744 \ubcf4\ub0bc\uc9c0 \uc124\uc815\ud55c\ub2e4. info, inband, rfc2833, auto \uc911 \ud55c\uac00\uc9c0\ub97c \uc124\uc815\ud560 \uc218 \uc788\ub2e4. info \uc124\uc815\uc740 SIP INFO method \ub97c \uc0ac\uc6a9\ud558\uace0, inband\ub294 inband audio tone \uc744 \uc804\ub2ec\ud55c\ub2e4. \uadf8\ub9ac\uace0 rfc2833\uc740 RFC-2833 \uc5d0\uc11c \uc81c\uc815\ub41c out-of-band method \ub97c \uc804\ub2ec\ud55c\ub2e4.<\/p>\n<blockquote><p>disallow=all\u00a0\u00a0\u00a0 ; reset which voice codec this device will accept or offer<br \/>\nallow=g722\u00a0\u00a0\u00a0\u00a0\u00a0 ; audio codecs to accept from, and request to, the device<br \/>\nallow=ulaw\u00a0\u00a0\u00a0\u00a0\u00a0 ; in the order we prefer<br \/>\nallow=alaw<\/p><\/blockquote>\n<p>\uc0ac\uc6a9\/\ubd88\uac00\ub2a5 audio codec \uc744 \uc9c0\uc815\ud55c\ub2e4. \uc81c\uc77c \uccab\ub77c\uc778 disallow=all\u00a0 \uc740 general \uc5d0\uc11c \uc774\ubbf8 \uc124\uc815\ub41c \ucf54\ub371 \ub0b4\uc6a9\ub4e4\uc744 \ubaa8\ub450 \ubc84\ub9b0\ub2e4\ub978 \ub73b\uc774\uba70, \ubc14\ub85c \uc544\ub7ab \uc904 \ubd80\ud130 \uc5b4\ub5a4 \ucf54\ub371\ub4e4\uc744 \uc0ac\uc6a9\ud560 \uac83\uc778\uc9c0 \ud558\ub098\uc529 \uc124\uc815\ud55c\ub2e4.<br \/>\nulaw\uc758 \uacbd\uc6b0, Canada \uc640 US\ub97c \uc81c\uc678\ud55c \uac70\uc758 \ub300\ubd80\ubd84\uc758 \uad6d\uac00\uc5d0\uc11c \uc0ac\uc6a9\ud558\uba70, alaw \ub294 \uc8fc\ub85c Canada \uc640 US \uc5d0\uc11c \uc0ac\uc6a9\ud55c\ub2e4.<\/p>\n<p><strong>[0000FFFF0003](office-phone) \uc139\uc158<\/strong><\/p>\n<blockquote><p>[0000FFFF0003](office-phone)<\/p><\/blockquote>\n<p>\uc7a5\ube44 \uc774\ub984(username) 0000FFFF0003 \uacfc office-phone \ud15c\ud50c\ub9bf\uc744 \uc0ac\uc6a9\ud55c\ub2e4\uace0 \uc120\uc5b8\ud55c \ubd80\ubd84\uc774\ub2e4.<\/p>\n<blockquote><p>secret=helloworld \u00a0\u00a0\u00a0 ; DON&#8217;T USE THE PASSWORD WE&#8217;VE USED IN THIS EXAMPLE!<\/p><\/blockquote>\n<p>password \ub97c \uc124\uc815\ud55c\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/etc\/asterisk\/sip.conf \ud30c\uc77c\uc740 Asterisk \uc5d0\uc11c sip \ucc44\ub110\uc744 \uc124\uc815\ud558\ub294 \ud30c\uc77c\uc774\ub2e4. \uc989, Asterisk \uc5d0\uc11c \uad00\ub9ac\ud558\ub294 SIP \ub2e8\ub9d0\uae30 \uc815\ubcf4\ub97c \uc785\ub825\ud558\ub294 \uc124\uc815\ud30c\uc77c\uc774\ub2e4. \/etc\/asterisk\/sip.conf \ud30c\uc77c \uc608\uc81c [general] context = unauthenticated ; default context for incoming calls allowguest = no ; disable unauthenticated calls srvlookup = no &hellip; <a href=\"http:\/\/pchero21.com\/?p=3105\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[15],"tags":[103,140,300,347],"_links":{"self":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/3105"}],"collection":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3105"}],"version-history":[{"count":0,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/3105\/revisions"}],"wp:attachment":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3105"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}