1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Asterisk Project : Application_OSPLookup</title>
<link rel="stylesheet" href="styles/site.css" type="text/css" />
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
<tr>
<td valign="top" class="pagebody">
<div class="pageheader">
<span class="pagetitle">
Asterisk Project : Application_OSPLookup
</span>
</div>
<div class="pagesubheading">
This page last changed on Sep 30, 2011 by <font color="#0050B2">wikibot</font>.
</div>
<h1><a name="Application_OSPLookup-OSPLookup%28%29"></a>OSPLookup()</h1>
<h3><a name="Application_OSPLookup-Synopsis"></a>Synopsis</h3>
<p>Lookup destination by OSP.</p>
<h3><a name="Application_OSPLookup-Description"></a>Description</h3>
<p>Looks up destination via OSP. </p>
<p>Input variables: </p>
<ul>
<li><tt>OSPINACTUALSRC</tt> - The actual source device IP address in indirect mode.</li>
<li><tt>OSPINPEERIP</tt> - The last hop IP address.</li>
<li><tt>OSPINHANDLE</tt> - The inbound call OSP transaction handle.</li>
<li><tt>OSPINTIMELIMIT</tt> - The inbound call duration limit in seconds.</li>
<li><tt>OSPINNETWORKID</tt> - The inbound source network ID.</li>
<li><tt>OSPINNPRN</tt> - The inbound routing number.</li>
<li><tt>OSPINNPCIC</tt> - The inbound carrier identification code.</li>
<li><tt>OSPINNPDI</tt> - The inbound number portability database dip indicator.</li>
<li><tt>OSPINSPID</tt> - The inbound service provider identity.</li>
<li><tt>OSPINOCN</tt> - The inbound operator company number.</li>
<li><tt>OSPINSPN</tt> - The inbound service provider name.</li>
<li><tt>OSPINALTSPN</tt> - The inbound alternate service provider name.</li>
<li><tt>OSPINMCC</tt> - The inbound mobile country code.</li>
<li><tt>OSPINMNC</tt> - The inbound mobile network code.</li>
<li><tt>OSPINTOHOST</tt> - The inbound To header host part.</li>
<li><tt>OSPINDIVUSER</tt> - The inbound Diversion header user part.</li>
<li><tt>OSPINDIVHOST</tt> - The inbound Diversion header host part.</li>
<li><tt>OSPINCUSTOMINFOn</tt> - The inbound custom information, where <tt>n</tt> is the index beginning with <tt>1</tt> upto <tt>8</tt>.</li>
</ul>
<p>Output variables: </p>
<ul>
<li><tt>OSPOUTHANDLE</tt> - The outbound call OSP transaction handle.</li>
<li><tt>OSPOUTTECH</tt> - The outbound channel technology for the call.</li>
<li><tt>OSPDESTINATION</tt> - The outbound destination IP address.</li>
<li><tt>OSPOUTCALLING</tt> - The outbound calling number.</li>
<li><tt>OSPOUTCALLED</tt> - The outbound called number.</li>
<li><tt>OSPOUTNETWORKID</tt> - The outbound destination network ID.</li>
<li><tt>OSPOUTNPRN</tt> - The outbound routing number.</li>
<li><tt>OSPOUTNPCIC</tt> - The outbound carrier identification code.</li>
<li><tt>OSPOUTNPDI</tt> - The outbound number portability database dip indicator.</li>
<li><tt>OSPOUTSPID</tt> - The outbound service provider identity.</li>
<li><tt>OSPOUTOCN</tt> - The outbound operator company number.</li>
<li><tt>OSPOUTSPN</tt> - The outbound service provider name.</li>
<li><tt>OSPOUTALTSPN</tt> - The outbound alternate service provider name.</li>
<li><tt>OSPOUTMCC</tt> - The outbound mobile country code.</li>
<li><tt>OSPOUTMNC</tt> - The outbound mobile network code.</li>
<li><tt>OSPOUTTOKEN</tt> - The outbound OSP token.</li>
<li><tt>OSPDESTREMAILS</tt> - The number of remained destinations.</li>
<li><tt>OSPOUTTIMELIMIT</tt> - The outbound call duration limit in seconds.</li>
<li><tt>OSPOUTCALLIDTYPES</tt> - The outbound Call-ID types.</li>
<li><tt>OSPOUTCALLID</tt> - The outbound Call-ID. Only for H.323.</li>
<li><tt>OSPDIALSTR</tt> - The outbound Dial command string.</li>
</ul>
<p>This application sets the following channel variable upon completion: </p>
<ul>
<li><tt>OSPLOOKUPSTATUS</tt> - The status of OSPLookup attempt as a text string, one of
<ul>
<li><tt>SUCCESS</tt></li>
<li><tt>FAILED</tt></li>
<li><tt>ERROR</tt></li>
</ul>
</li>
</ul>
<h3><a name="Application_OSPLookup-Syntax"></a>Syntax</h3>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>OSPLookup(exten[,provider[,options]])</pre>
</div></div>
<h5><a name="Application_OSPLookup-Arguments"></a>Arguments</h5>
<ul>
<li><tt>exten</tt> - The exten of the call.</li>
<li><tt>provider</tt> - The name of the provider that is used to route the call.</li>
<li><tt>options</tt>
<ul>
<li><tt>h</tt> - generate H323 call id for the outbound call</li>
<li><tt>s</tt> - generate SIP call id for the outbound call. Have not been implemented</li>
<li><tt>i</tt> - generate IAX call id for the outbound call. Have not been implemented</li>
</ul>
</li>
</ul>
<h3><a name="Application_OSPLookup-SeeAlso"></a>See Also</h3>
<p><a href="Application_OSPAuth.html" title="Application_OSPAuth">Application_OSPAuth</a><br/>
<a href="Application_OSPNext.html" title="Application_OSPNext">Application_OSPNext</a><br/>
<a href="Application_OSPFinish.html" title="Application_OSPFinish">Application_OSPFinish</a></p>
<h3><a name="Application_OSPLookup-ImportVersion"></a>Import Version</h3>
<p>This documentation was imported from Asterisk version SVN-branch-1.8-r338609.</p>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td height="12" background="https://wiki.asterisk.org/wiki/images/border/border_bottom.gif"><img src="images/border/spacer.gif" width="1" height="1" border="0"/></td>
</tr>
<tr>
<td align="center"><font color="grey">Document generated by Confluence on Oct 04, 2011 12:42</font></td>
</tr>
</table>
</body>
</html>
|