Asterisk-13-Application_OSPLookup_29394489.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Asterisk Project : Asterisk 13 Application_OSPLookup</title>
  5. <link rel="stylesheet" href="styles/site.css" type="text/css" />
  6. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. </head>
  8. <body class="theme-default aui-theme-default">
  9. <div id="page">
  10. <div id="main" class="aui-page-panel">
  11. <div id="main-header">
  12. <div id="breadcrumb-section">
  13. <ol id="breadcrumbs">
  14. <li class="first">
  15. <span><a href="index.html">Asterisk Project</a></span>
  16. </li>
  17. <li>
  18. <span><a href="Asterisk-13-Command-Reference_29394274.html">Asterisk 13 Command Reference</a></span>
  19. </li>
  20. <li>
  21. <span><a href="Asterisk-13-Dialplan-Applications_29394285.html">Asterisk 13 Dialplan Applications</a></span>
  22. </li>
  23. </ol>
  24. </div>
  25. <h1 id="title-heading" class="pagetitle">
  26. <span id="title-text">
  27. Asterisk Project : Asterisk 13 Application_OSPLookup
  28. </span>
  29. </h1>
  30. </div>
  31. <div id="content" class="view">
  32. <div class="page-metadata">
  33. Created by <span class='author'> wikibot</span> on Aug 08, 2014
  34. </div>
  35. <div id="main-content" class="wiki-content group">
  36. <h1 id="Asterisk13Application_OSPLookup-OSPLookup()">OSPLookup()</h1>
  37. <h3 id="Asterisk13Application_OSPLookup-Synopsis">Synopsis</h3>
  38. <p>Lookup destination by OSP.</p>
  39. <h3 id="Asterisk13Application_OSPLookup-Description">Description</h3>
  40. <p>Looks up destination via OSP.</p>
  41. <p>Input variables:</p>
  42. <ul>
  43. <li><code>OSPINACTUALSRC</code> - The actual source device IP address in indirect mode.</li>
  44. <li><code>OSPINPEERIP</code> - The last hop IP address.</li>
  45. <li><code>OSPINTECH</code> - The inbound channel technology for the call.</li>
  46. <li><code>OSPINHANDLE</code> - The inbound call OSP transaction handle.</li>
  47. <li><code>OSPINTIMELIMIT</code> - The inbound call duration limit in seconds.</li>
  48. <li><code>OSPINNETWORKID</code> - The inbound source network ID.</li>
  49. <li><code>OSPINNPRN</code> - The inbound routing number.</li>
  50. <li><code>OSPINNPCIC</code> - The inbound carrier identification code.</li>
  51. <li><code>OSPINNPDI</code> - The inbound number portability database dip indicator.</li>
  52. <li><code>OSPINSPID</code> - The inbound service provider identity.</li>
  53. <li><code>OSPINOCN</code> - The inbound operator company number.</li>
  54. <li><code>OSPINSPN</code> - The inbound service provider name.</li>
  55. <li><code>OSPINALTSPN</code> - The inbound alternate service provider name.</li>
  56. <li><code>OSPINMCC</code> - The inbound mobile country code.</li>
  57. <li><code>OSPINMNC</code> - The inbound mobile network code.</li>
  58. <li><code>OSPINTOHOST</code> - The inbound To header host part.</li>
  59. <li><code>OSPINRPIDUSER</code> - The inbound Remote-Party-ID header user part.</li>
  60. <li><code>OSPINPAIUSER</code> - The inbound P-Asserted-Identify header user part.</li>
  61. <li><code>OSPINDIVUSER</code> - The inbound Diversion header user part.</li>
  62. <li><code>OSPINDIVHOST</code> - The inbound Diversion header host part.</li>
  63. <li><code>OSPINPCIUSER</code> - The inbound P-Charge-Info header user part.</li>
  64. <li><code>OSPINCUSTOMINFON</code> - The inbound custom information, where <code>n</code> is the index beginning with <code>1</code> upto <code>8</code>.<br />
  65. Output variables:</li>
  66. </ul>
  67. <ul>
  68. <li><code>OSPOUTHANDLE</code> - The outbound call OSP transaction handle.</li>
  69. <li><code>OSPOUTTECH</code> - The outbound channel technology for the call.</li>
  70. <li><code>OSPDESTINATION</code> - The outbound destination IP address.</li>
  71. <li><code>OSPOUTCALLING</code> - The outbound calling number.</li>
  72. <li><code>OSPOUTCALLED</code> - The outbound called number.</li>
  73. <li><code>OSPOUTNETWORKID</code> - The outbound destination network ID.</li>
  74. <li><code>OSPOUTNPRN</code> - The outbound routing number.</li>
  75. <li><code>OSPOUTNPCIC</code> - The outbound carrier identification code.</li>
  76. <li><code>OSPOUTNPDI</code> - The outbound number portability database dip indicator.</li>
  77. <li><code>OSPOUTSPID</code> - The outbound service provider identity.</li>
  78. <li><code>OSPOUTOCN</code> - The outbound operator company number.</li>
  79. <li><code>OSPOUTSPN</code> - The outbound service provider name.</li>
  80. <li><code>OSPOUTALTSPN</code> - The outbound alternate service provider name.</li>
  81. <li><code>OSPOUTMCC</code> - The outbound mobile country code.</li>
  82. <li><code>OSPOUTMNC</code> - The outbound mobile network code.</li>
  83. <li><code>OSPOUTTOKEN</code> - The outbound OSP token.</li>
  84. <li><code>OSPDESTREMAILS</code> - The number of remained destinations.</li>
  85. <li><code>OSPOUTTIMELIMIT</code> - The outbound call duration limit in seconds.</li>
  86. <li><code>OSPOUTCALLIDTYPES</code> - The outbound Call-ID types.</li>
  87. <li><code>OSPOUTCALLID</code> - The outbound Call-ID. Only for H.323.</li>
  88. <li><code>OSPDIALSTR</code> - The outbound Dial command string.<br />
  89. This application sets the following channel variable upon completion:</li>
  90. </ul>
  91. <ul>
  92. <li><code>OSPLOOKUPSTATUS</code> - The status of OSPLookup attempt as a text string, one of
  93. <ul>
  94. <li>SUCCESS</li>
  95. <li>FAILED</li>
  96. <li>ERROR</li>
  97. </ul>
  98. </li>
  99. </ul>
  100. <h3 id="Asterisk13Application_OSPLookup-Syntax">Syntax</h3>
  101. <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
  102. <pre>OSPLookup(exten,[provider,[options]])</pre>
  103. </div></div>
  104. <h5 id="Asterisk13Application_OSPLookup-Arguments">Arguments</h5>
  105. <ul>
  106. <li><code>exten</code> - The exten of the call.</li>
  107. <li><code>provider</code> - The name of the provider that is used to route the call.</li>
  108. <li><code>options</code>
  109. <ul>
  110. <li><code>h</code> - generate H323 call id for the outbound call</li>
  111. <li><code>s</code> - generate SIP call id for the outbound call. Have not been implemented</li>
  112. <li><code>i</code> - generate IAX call id for the outbound call. Have not been implemented</li>
  113. </ul>
  114. </li>
  115. </ul>
  116. <h3 id="Asterisk13Application_OSPLookup-SeeAlso">See Also</h3>
  117. <ul>
  118. <li><a href="Asterisk-13-Application_OSPAuth_29394488.html">Asterisk 13 Application_OSPAuth</a></li>
  119. <li><a href="Asterisk-13-Application_OSPNext_29394490.html">Asterisk 13 Application_OSPNext</a></li>
  120. <li><a href="Asterisk-13-Application_OSPFinish_29394491.html">Asterisk 13 Application_OSPFinish</a></li>
  121. </ul>
  122. <h3 id="Asterisk13Application_OSPLookup-ImportVersion">Import Version</h3>
  123. <p>This documentation was imported from Asterisk Version SVN-branch-13-r420538</p>
  124. </div>
  125. </div> </div>
  126. <div id="footer">
  127. <section class="footer-body">
  128. <p>Document generated by Confluence on Aug 11, 2014 13:45</p>
  129. </section>
  130. </div>
  131. </div> </body>
  132. </html>