<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://reviewboard.asterisk.org/r/3976/">https://reviewboard.asterisk.org/r/3976/</a>
</td>
</tr>
</table>
<br />
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('https://reviewboard.asterisk.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
<tr>
<td>
<div>Review request for Asterisk Developers.</div>
<div>By George Joseph.</div>
<p style="color: grey;"><i>Updated Sept. 5, 2014, 6:44 p.m.</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Changes</h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Fixed some reference leaks.
Refactored for default processing change in res_phoneprov.
Added documentation to pjsip.conf.sample.
</pre>
</td>
</tr>
</table>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
Asterisk
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This module allows res_pjsip to integrate with res_phoneprov and depends on the res_phoneprov refactor (r3970).
Two new pjsip.conf objects are defined by this module...
'phoneprov_default' which defines defaults for all users created by this provider.
[myppdefaults]
type=phoneprov_default
PROFILE=grandstream ; required
SERVER=myserver.example.com
OTHERVAR=othervalue
'phoneprov_user' which defines each user to be exposed.
[pp1000]
type=phoneprov_user
endpoint=ep1000 ; optional reference to an existing endpoint
MAC=deadbeef4dad ; required
PROFILE=grandstream2 ; overrides the default
LINEKEYS=1
LINE=1
OTHERVAR=othervalue
[pp1001]
type=phoneprov_user
endpoint=ep1001 ; optional reference to an existing endpoint
MAC=deadf00d4dad ; required
LINEKEYS=1
LINE=1
LABEL=1001 ; overrides pp1001
OTHERVAR=othervalue
USERNAME, CALLERID, DISPLAY_NAME and SECRET are automatically pulled from endpoint and endpoint->auth if defined.
LABEL is automatically set from the phoneprov_user id.
ENDPOINT_ID, TRANSPORT_ID and AUTH_ID are automatically added.
Any other variables defined are automatically passed through and are available for template substitution even if they're not one of the standard variables defined by res_phoneprov.
</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I'm already starting to convert sip peers to pjsip endpoints with no change to my Grandstream templates.
</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> (updated)</h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>branches/12/res/res_pjsip_phoneprov_provider.c <span style="color: grey">(PRE-CREATION)</span></li>
<li>branches/12/configs/pjsip.conf.sample <span style="color: grey">(422737)</span></li>
</ul>
<p><a href="https://reviewboard.asterisk.org/r/3976/diff/" style="margin-left: 3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>