<div dir="ltr"><div><div><div>In the 'home-number' example that was provided the caller ID was being replaced with the string 'Home'<br><br></div>It's easy to prepend the caller ID instead however.<br><br>Set(CALLERID(name)=Home-${CALLERID(name)})<br><br></div>You could even get fancy and set it based on what number was called, This would prepend the CallerID with the last 4 digits of the incoming number assuming that your calls come in to an extension that way:<br><br>Set(CALLERID(name)=${CDR(firstext):-4}-${CALLERID(name)})<br><br></div><div>There is no 'Best' or 'Better' way to handle extension and voicemail routing, It's all down to your preference as a programmer and your users.<br><br></div><div>Try things, Find what works best for you, The only thing you have to loose is your free time and if you are like me you will have fun during the process.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 5, 2015 at 5:54 AM, Mark Rogers <span dir="ltr"><<a href="mailto:mark@more-solutions.co.uk" target="_blank">mark@more-solutions.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">For some reason I didn't see David's reply by email, and have<br>
copy/pasted the following from the list archives to make my reply,<br>
sorry if that messes up anyone's threading.<br>
<span class=""><br>
On 4 March 2015 at 12:15, David Duffett wrote:<br>
> If you would like to set things up via the GUI on your incredible PBX,<br>
</span>> [...]<br>
<br>
I'm trying to avoid a GUI for now so that I learn something, but<br>
knowing how to do it that way is appreciated, thanks.<br>
<span class=""><br>
> If, on the other hand, you want to achieve your aim through native<br>
> configuration files, you could add a line like:<br>
> exten => *home-number*,1,Set(CALLERID(name)=Home)<br>
> exten => *home-number*,n,*continue handling call as you were before*<br>
<br>
</span>I haven't got my head round the syntax yet; will this retain the real<br>
caller ID but add something to it, or will I lose the real ID?<br>
<br>
>From your answers I take it that it is "better" if all users have<br>
their own extension and I route calls to the relevant extensions as<br>
required, rather than having users monitor multiple extensions. It's<br>
what I expected but can I ask why? Is it a scalability or performance<br>
issue, do I lose something by not doing it this way, or is it just<br>
about doing things "right"?<br>
<br>
With the above, what's the best way to handle voicemail? I would<br>
expect anyone who could have taken the call to be able to access the<br>
voicemail, and once one person has "dealt with" a message it's no<br>
longer a new message to anyone else.<br>
<div class="HOEnZb"><div class="h5"><br>
Mark<br>
--<br>
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450<br>
Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.<br>---Heinlein</div>
</div>