{"id":1005,"date":"2008-08-05T04:49:26","date_gmt":"2008-08-04T19:49:26","guid":{"rendered":"\/\/do-gugan.com\/~furuta\/index.php\/2008\/08\/05\/iphoneasteriska\/"},"modified":"2008-08-05T04:49:26","modified_gmt":"2008-08-04T19:49:26","slug":"iphoneasteriska","status":"publish","type":"post","link":"https:\/\/do-gugan.com\/~furuta\/archives\/2008\/08\/iphoneasteriska.html","title":{"rendered":"iPhone\u304b\u3089Asterisk\u3067\u767a\u4fe1\u3059\u308bAsteriskC2D"},"content":{"rendered":"<p>AppStore\u306b<a href=\"http:\/\/phobos.apple.com\/WebObjects\/MZStore.woa\/wa\/viewSoftware?id=285950472&amp;mt=8\">AsteriskC2D<\/a>[iTunes\u3067\u958b\u304f]\u3068\u3044\u3046\u30a2\u30d7\u30ea\u304c\u3042\u308a\u307e\u3059\u3002\u8aac\u660e\u306b\u3088\u308b\u3068iPhone\u304b\u3089Asterisk\u3067\u30c0\u30a4\u30e4\u30eb\u3067\u304d\u308b\u3088\u3046\u306a\u3053\u3068\u304c\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002\u307e\u3055\u304bSIP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\uff01\u3068\u671f\u5f85\u3059\u308b\u30ef\u30b1\u3067\u3059\u304c\u3001\u6b8b\u5ff5\u306a\u304c\u3089\u30c0\u30a4\u30e4\u30eb\u3057\u3066\u304f\u308c\u308b\u3060\u3051\u3002\u5b9f\u969b\u306e\u901a\u8a71\u306f\u5225\u306eSIP\u7aef\u672b\u3067\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u306b\u304c\u4fbf\u5229\u304b\u3068\u3044\u3046\u3068\u3001iPhone\u306e\u96fb\u8a71\u5e33\u306b\u767b\u9332\u6e08\u307f\u306e\u756a\u53f7\u3078\u56fa\u5b9a\u96fb\u8a71\uff08Asterisk\uff09\u304b\u3089\u304b\u3051\u305f\u3044\u3001\u306a\u3093\u3066\u6642\u306biPhone\u4e0a\u306e\u756a\u53f7\u3092\u898b\u306a\u304c\u3089\u96fb\u8a71\u6a5f\u306e\u30c6\u30f3\u30ad\u30fc\u3092\u53e9\u304b\u306a\u304f\u3066\u3044\u3044\u3001\u3063\u3066\u4f4d\u3067\u3059\u306d\u3002\\115\u3068\u306f\u8a00\u3048\u3001\u6709\u6599\u30a2\u30d7\u30ea\u8cb7\u3063\u3066\u307e\u3067\u3057\u305f\u3044\u3053\u3068\u304b\u3069\u3046\u304b\u306f\u5fae\u5999\u3067\u3059\u3002<\/p>\n<p>\u3067\u3082\u7269\u597d\u304d\u306a\u306e\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff57\u3002AppStore\u306e\u8aac\u660e\u8aad\u3093\u3067\u3082\u5177\u4f53\u7684\u306b\u3069\u3046\u6a5f\u80fd\u3059\u308b\u306e\u304b\u3055\u3063\u3071\u308a\u3060\u3057\u3001\u63a2\u3057\u3066\u3082\u65e5\u672c\u8a9e\u306e\u60c5\u5831\uff08\u3069\u3053\u308d\u304b\u82f1\u8a9e\u3082\uff09\u304c\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h4>\u25a0\u52d5\u4f5c\u306e\u4ed5\u7d44\u307f<\/h4>\n<p>Asterisk\uff08\u3068Web\u30b5\u30fc\u30d0\u30fc\uff09\u304c\u52d5\u3044\u3066\u3044\u308b\u30de\u30b7\u30f3\u306b\u3001\u5c02\u7528\u306ePerl\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001iPhone\u304b\u3089\u306fhttp\u3067\u305d\u308c\u3092\u53e9\u3044\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002Perl\u30b9\u30af\u30ea\u30d7\u30c8\u306f\uff08\u5fc5\u8981\u30e9\u30a4\u30d6\u30e9\u30ea\u304b\u3089\u3057\u3066\uff09Asterisk\u306btelnet\u3057\u3066\u64cd\u4f5c\u3092\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u516c\u5f0f\u30b5\u30a4\u30c8\u306b\u3088\u308c\u3070\u3001\u5143\u3005\u306fMac\u7528\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u4e3b\u307f\u305f\u3044\u3067\u3059\u306d\u3002\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u8868\u793a\u3057\u3066\u3044\u308b\u756a\u53f7\u306a\u3069\u306b\u7c21\u5358\u306b\u767a\u4fe1\u3059\u308b\u305f\u3081\u306e\u30bd\u30d5\u30c8\u306e\u3088\u3046\u3067\u3059\u3002\u305f\u3060\u3057\u3001iPhone\u306e\u5834\u5408\u306f\u9023\u7d61\u5148\u306b\u767b\u9332\u3057\u305f\u756a\u53f7\u3092\u547c\u3073\u51fa\u305b\u308b\u3060\u3051\u3002\u307e\u3041\u3001OS\u3068\u3057\u3066\u30b3\u30d4\u30da\u304c\u306a\u3044\u4ee5\u4e0a\u3001\u3069\u3046\u3057\u3088\u3046\u3082\u306a\u3044\u3093\u3067\u3057\u3087\u3046\u306d\u3002<\/p>\n<h4>\u25a0\u5b9f\u969b\u306e\u64cd\u4f5c\u624b\u9806<\/h4>\n<p>iPhone\u306bAsteriskC2D\u30a2\u30d7\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u8a2d\u5b9a\u753b\u9762\u306bAsteriskC2D\u3068\u3044\u3046\u9805\u76ee\u304c\u8ffd\u52a0\u3055\u308c\u308b\u306e\u3067\u3001\u305d\u3053\u304b\u3089\u8a2d\u5b9a\u3092\u6e08\u307e\u305b\u3066\u304a\u304d\u307e\u3059\u3002Extension\u6b04\u306b\u901a\u8a71\u306b\u4f7f\u3044\u305f\u3044\u96fb\u8a71\u6a5f\u306eSIP\u756a\u53f7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002Username\u3068Password\u306fLDAP\u3092\u4f7f\u3046\u5834\u5408\u306e\u3082\u306e\u3067\u3001\u4f7f\u308f\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u3001\u5f8c\u8ff0\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u304a\u3051\u3070\u8a2d\u5b9a\u3057\u306a\u304f\u3066\u826f\u3044\u306e\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u6b21\u306bAsteriskC2D\u30a2\u30d7\u30ea\u3092\u7acb\u3061\u4e0a\u3052\u307e\u3059\u3002\u62bc\u305b\u308b\u306e\u306fContacts\u30dc\u30bf\u30f3\u306e\u307f\u3002\u62bc\u3059\u3068\u6587\u5b57\u901a\u308a\u9023\u7d61\u5148\u753b\u9762\u304c\u958b\u304d\u3001\u756a\u53f7\u3092\u9078\u3076\u3068\u6700\u521d\u306e\u753b\u9762\u306b\u623b\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u72b6\u614b\u3067\u65e2\u306b\u767a\u4fe1\u4f5c\u696d\u306f\u884c\u308f\u308c\u3066\u304a\u308a\u3001\u9593\u9aea\u3092\u304a\u304b\u305a\u3057\u3066Extension\u3067\u6307\u5b9a\u3057\u305f\u96fb\u8a71\u6a5f\u304c\u9cf4\u308a\u307e\u3059\u3002\u82b8\u304c\u7d30\u304b\u3044\u3053\u3068\u306b\u3001\u767a\u4fe1\u8005\u756a\u53f7\u306f\u767a\u4fe1\u5148\u306e\u3082\u306e\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3064\u307e\u308a\u3001A\u3055\u3093\u306b\u767a\u4fe1\u3057\u305f\u5834\u5408\u3001\u3042\u305f\u304b\u3082A\u3055\u3093\u304b\u3089\u304b\u304b\u3063\u3066\u304d\u305f\u3088\u3046\u306b\u898b\u3048\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u96fb\u8a71\u3092\u53d6\u308a\u307e\u3059\u3002\u3059\u308b\u3068\u305d\u306e\u6642\u70b9\u3067\u767a\u547c\u304c\u304b\u304b\u308b\u3088\u3046\u3067\u3001\u53d7\u8a71\u5668\u304b\u3089\u306f\u547c\u3073\u51fa\u3057\u97f3\u304c\u805e\u3053\u3048\u3001\u76f8\u624b\u304c\u51fa\u308b\u3068\u901a\u8a71\u304c\u958b\u59cb\u3067\u304d\u308b\u3001\u3068\u3044\u3046\u6d41\u308c\u3067\u3059\u3002<\/p>\n<h4>\u25a0\u30b5\u30fc\u30d0\u30fc\u30b9\u30af\u30ea\u30d7\u30c8\u5c0e\u5165\u306eTips<\/h4>\n<p>\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u8a2d\u5b9a\u306f\u516c\u5f0f\u30b5\u30a4\u30c8\u306b<a href=\"http:\/\/click.rho.cc\/Setup\/ServerSetup.html\">\u89e3\u8aac\u30da\u30fc\u30b8<\/a>\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3060\u5c11\u3057\u3044\u3058\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u307e\u305a\u30a6\u30c1\u306fLDAP\u3092\u4f7f\u3063\u3066\u304a\u3089\u305a\u3001\u307e\u305fCPAN\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u30b5\u30af\u3063\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u3067\u3001LDAP\u95a2\u9023\u306e\u90e8\u5206\u3092\u7121\u52b9\u5316\u3057\u307e\u3057\u305f\u3002<\/p>\n<p class=\"code\"><font color=\"#ff0000\">#<\/font>use Net::LDAP; <\/p>\n<p>\u8a2d\u5b9a\u90e8\u5206\u76f4\u5f8c\u306e\u4e0b\u8a18\uff13\u884c\u3082\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8 \u3002    <\/p>\n<p class=\"code\"><font color=\"#ff0000\">#<\/font>my $ldap = Net::LDAP-&gt;new($LDAPServer, debug=&gt;0) ||die &quot;$@\\n&quot;;     <br \/><font color=\"#ff0000\">#<\/font>my $ldapbind = $ldap-&gt;bind(&quot;uid=$in{&#8216;username&#8217;},$LDAPSearch&quot;, password =&gt; $in{\\&#8217;password&#8217;});     <br \/><font color=\"#ff0000\">#<\/font>if ($ldapbind-&gt;is_error()) {print &quot;NO! username\/password incorrect\\n&quot;; die &quot;username\/password incorrect: $in{&#8216;username&#8217;} -&gt; $in{&#8216;password&#8217;}&quot;;} <\/p>\n<p>\u307e\u305f\u3001\u756a\u53f7\u306e\u5148\u982d\u306b\u7121\u99c4\u306b9\u3092\u8ffd\u52a0\u3059\u308b\u306e\u3067\u3001 \u4e0b\u8a18\u306e\u884c\u3082\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3002    <\/p>\n<p class=\"code\"><font color=\"#ff0000\">#<\/font>if ((substr($exten,0,1) ne &#8216;9&#8217;) &amp;&amp; (length($exten) &gt; 4) ) { $exten = &#8216;9&#8217;.$exten; }     <\/p>\n<p>\u3042\u3068\u3001\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u81ea\u4f53\u304c\u52dd\u624b\u306b\u547c\u3070\u308c\u306a\u3044\u3088\u3046\u3001Apache\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3067\u3001LAN\u4ee5\u5916\u304b\u3089\u306fdeny\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u540c\u6642\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\u3084\u30d5\u30a1\u30a4\u30eb\u540d\u3082\u9069\u5f53\u306b\u5909\u3048\u3066\u304a\u304f\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306aURI\u3067\u7c21\u5358\u306b\u96fb\u8a71\u304c\u304b\u3051\u3089\u308c\u308b\u306e\u3067\u3001\u4ed6\u306b\u3082\u5fdc\u7528\u304c\u5229\u304f\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002<\/p>\n<p class=\"code\">AsteriskC2D.pl?deskphone=<font color=\"#808080\">[\u4f7f\u3044\u305f\u3044\u96fb\u8a71\u6a5f\u306eSIP\u756a\u53f7]<\/font>&amp;toCall=<font color=\"#808080\">[\u767a\u4fe1\u3057\u305f\u3044\u96fb\u8a71\u756a\u53f7]<\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AppStore\u306bAsteriskC2D[iTunes\u3067\u958b\u304f]\u3068\u3044\u3046\u30a2\u30d7\u30ea\u304c\u3042\u308a\u307e\u3059\u3002\u8aac\u660e\u306b\u3088\u308b\u3068iPhone\u304b\u3089Asterisk\u3067\u30c0\u30a4\u30e4\u30eb\u3067\u304d\u308b\u3088\u3046\u306a\u3053\u3068\u304c\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002\u307e\u3055\u304bSIP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\uff01\u3068\u671f\u5f85\u3059\u308b\u30ef\u30b1\u3067\u3059\u304c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,9],"tags":[],"class_list":["post-1005","post","type-post","status-publish","format-standard","hentry","category-cat79","category-cat85"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/posts\/1005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/comments?post=1005"}],"version-history":[{"count":0,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/posts\/1005\/revisions"}],"wp:attachment":[{"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/media?parent=1005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/categories?post=1005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/tags?post=1005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}