<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2172/18/9/_/styles/combined.css?spaceKey=AST&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_OSPNext">Asterisk 11 Application_OSPNext</a></h2>
<h4>Page <b>added</b> by <a href="https://wiki.asterisk.org/wiki/display/~wikibot">Wiki Bot</a>
</h4>
<br/>
<div class="notificationGreySide">
<h1><a name="Asterisk11Application_OSPNext-OSPNext%28%29"></a>OSPNext()</h1>
<h3><a name="Asterisk11Application_OSPNext-Synopsis"></a>Synopsis</h3>
<p>Lookup next destination by OSP.</p>
<h3><a name="Asterisk11Application_OSPNext-Description"></a>Description</h3>
<p>Looks up the next destination via OSP.</p>
<p>Input variables:</p>
<ul>
        <li>OSPINHANDLE - The inbound call OSP transaction handle.</li>
        <li>OSPOUTHANDLE - The outbound call OSP transaction handle.</li>
        <li>OSPINTIMELIMIT - The inbound call duration limit in seconds.</li>
        <li>OSPOUTCALLIDTYPES - The outbound Call-ID types.</li>
        <li>OSPDESTREMAILS - The number of remained destinations.</li>
</ul>
<p>Output variables:</p>
<ul>
        <li>OSPOUTTECH - The outbound channel technology.</li>
        <li>OSPDESTINATION - The destination IP address.</li>
        <li>OSPOUTCALLING - The outbound calling number.</li>
        <li>OSPOUTCALLED - The outbound called number.</li>
        <li>OSPOUTNETWORKID - The outbound destination network ID.</li>
        <li>OSPOUTNPRN - The outbound routing number.</li>
        <li>OSPOUTNPCIC - The outbound carrier identification code.</li>
        <li>OSPOUTNPDI - The outbound number portability database dip indicator.</li>
        <li>OSPOUTSPID - The outbound service provider identity.</li>
        <li>OSPOUTOCN - The outbound operator company number.</li>
        <li>OSPOUTSPN - The outbound service provider name.</li>
        <li>OSPOUTALTSPN - The outbound alternate service provider name.</li>
        <li>OSPOUTMCC - The outbound mobile country code.</li>
        <li>OSPOUTMNC - The outbound mobile network code.</li>
        <li>OSPOUTTOKEN - The outbound OSP token.</li>
        <li>OSPDESTREMAILS - The number of remained destinations.</li>
        <li>OSPOUTTIMELIMIT - The outbound call duration limit in seconds.</li>
        <li>OSPOUTCALLID - The outbound Call-ID. Only for H.323.</li>
        <li>OSPDIALSTR - The outbound Dial command string.</li>
</ul>
<p>This application sets the following channel variable upon completion:</p>
<ul>
        <li>OSPNEXTSTATUS - The status of the OSPNext attempt as a text string, one of
        <ul>
                <li>SUCCESS</li>
                <li>FAILED</li>
                <li>ERROR
<h3><a name="Asterisk11Application_OSPNext-SeeAlso"></a>See Also</h3></li>
        </ul>
        </li>
</ul>
<ul>
        <li><a href="/wiki/display/AST/Asterisk+11+Application_OSPAuth" title="Asterisk 11 Application_OSPAuth">Asterisk 11 Application_OSPAuth</a></li>
        <li><a href="/wiki/display/AST/Asterisk+11+Application_OSPLookup" title="Asterisk 11 Application_OSPLookup">Asterisk 11 Application_OSPLookup</a></li>
        <li><a href="/wiki/pages/createpage.action?spaceKey=AST&title=Asterisk+11+Application_OSPFinish&linkCreation=true&fromPageId=20187050" class="createlink">Asterisk 11 Application_OSPFinish</a></li>
</ul>
<h3><a name="Asterisk11Application_OSPNext-ImportVersion"></a>Import Version</h3>
<p>This documentation was imported from Asterisk Version SVN-trunk-r370322</p>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;" class="grey">
<a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
<span style="padding: 0px 5px;">|</span>
<a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_OSPNext">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_OSPNext?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>