<div class="gmail_quote">On Tue, Apr 27, 2010 at 8:48 PM, Aditya Kumar <span dir="ltr"><<a href="mailto:adityakumar345@yahoo.com">adityakumar345@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div style="font-family: 'times new roman','new york',times,serif; font-size: 12pt;"><div>Hi All,</div><div><br></div><div>pl help me with this basic question.</div><div><br></div><div>I have a users (soft clients) with usernames having Alphabetics.</div>
<div>I want to use Asterisk as my server.</div><div><br></div><div>How should I have the dial plans as there are no numbers involved .</div><div>so How can I make the configuration to work ( with numbers I can get this done using extensions.conf)</div>
<div><br></div><div>my expected result is :</div><div><a href="mailto:alice@pbx.com" target="_blank">alice@pbx.com</a> should be able to call <a href="mailto:bob@pbx.com" target="_blank">bob@pbx.com</a></div><div>where <a href="http://pbx.com" target="_blank">pbx.com</a> is astersik.</div>
<div><br></div><div>Can you pl let me know how I can achieve this?</div><br></div></div></blockquote></div><br>You would need to setup each user in sip.conf like so:<br><br>[alice]<br>type=friend<br>context=alpha-names<br>
fromuser=alice<br>secret=password<br>domain=<a href="http://pbx.com">pbx.com</a><br><br>[bob]<br>type=friend<br>context=alpha-names<br>fromuser=bob<br>secret=password<br>domain=<a href="http://pbx.com">pbx.com</a><br><br>
etc etc..<br><br>Then in your extensions.conf, you would setup:<br><br>[alpha-names]<br>; Dial by name<br>exten => alice,1,Verbose(Calling alice)<br>exten => alice,n,Dial(SIP/alice,20)<br>exten => alice,n,Hangup()<br>
<br>exten => bob,1,Verbose(Calling bob)<br>exten => bob,n,Dial(SIP/bob,20)<br>exten => bob,n,Hangup()<br><br>etc etc. You could also use pattern matching in your extensions.conf like this:<br><br>[alpha-names]<br>
;Dial by name, pattern matching<br>exten => _.,1,Verbose(Calling ${EXTEN})<br>exten => _.,n,Dial(SIP/${EXTEN},20)<br>exten => _.,n,Hangup()<br><br>except that's going to catch everything, including the built-in 'h', 'i', and 't' extensions (you can look these up on <a href="http://voip-info.org">voip-info.org</a> for more info on those).<br>
<br>Configure each of your softphone clients with the usernames you defined in your sip.conf (i.e the softphone on Alice's computer would have a username of alice, password of password, and domain of <a href="http://pbx.com">pbx.com</a>, using the asterisk server as your registrar / proxy server address, same with Bob's softphone).<br>
<br>Your softphone has to allow alpha dialing from contacts though. You haven't mentioned which softphone you're using, if you do that we may be able to give you specifics for that softphone as well.<br>-- <br>Thanks,<br>
--Warren Selby<br><a href="http://www.selbytech.com">http://www.selbytech.com</a><br>
<div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>