Hi Clara,<div><br></div><div>You could put some data into astdb and query for the outgoing line and callerid based on internal callerid (extension).</div><div><br></div><div>something like</div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-style-span" style="font-size: large;">user/201/outline </span></font><span class="Apple-style-span" style="border-collapse: collapse; "><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-style-span" style="font-size: large;">89859715</span></font></span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse;"><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-style-span" style="font-size: large;">user/201/outcallerid 89859715</span></font></span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">and so on...</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">By the way: "<span class="Apple-style-span" style="font-family: Arial; ">_89859715" without the dot (".") is same like 89859715 - maybe you renounce to the underline ...</span></span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">HTH,</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">Ioan.</span></div>
<div><br><div class="gmail_quote">On Thu, Jun 18, 2009 at 1:19 PM, Clara Chan <span dir="ltr"><<a href="mailto:clarac@tc.com.au">clarac@tc.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">Dear all, </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">I am currently trying to configure a PBX make use of
a multiple of outgoing lines, currently my extensions.conf looks something like
below</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">>> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">; extensions.conf</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">; 20th October 2008</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">[globals]</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">sip1=201</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">sip2=202</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">sip3=203</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">sip4=204</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">[general]</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">autofallthrough=yes</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">[default]</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">[incoming_calls]</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => _89859715,1,Dial(SIP/201)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => _89859716,1,Dial(SIP/202)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">[macro-sipmail]</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => s,1,Verbose(1,Extension ${ARG1})
;line req to pick up ext if it's not reg.</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => s,n,Dial(SIP/${ARG1},30)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => s,n,GotoIf($["${DIALSTATUS}" =
"BUSY"]?busy:unavail)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => s,n(unavail),Voicemail(${ARG1}@default,u)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => s,n,Hangup()</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => s,n(busy),VoiceMail(${ARG1}@default,b)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => s,n,Hangup()</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">[macro-conference]</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => s,1,Playback(conf-theatre)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => s,n,MeetMe(${ARG1},i)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">[internal]</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">include => outbound</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">;Voicemail</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 8,1,VoiceMailMain()</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">;Conference Rooms</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 600,1,Macro(conference,600)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 601,1,Macro(conference,601)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 602,1,Macro(conference,602)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 603,1,Macro(conference,603)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 604,1,Macro(conference,604)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 605,1,Macro(conference,605)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">;Extensions</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 201,1,Macro(sipmail,201)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 202,1,Macro(sipmail,202)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 203,1,Macro(sipmail,203)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 204,1,Macro(sipmail,204)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 205,1,Macro(sipmail,205)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 206,1,Macro(sipmail,206)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 207,1,Macro(sipmail,207)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 208,1,Macro(sipmail,208)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">;Digium card Channels</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 301,1,Dial(Zap/1-1)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 302,1,Dial(Zap/1-2)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">[outbound]</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten =>
_9.,1,Dial(SIP/${EXTEN:1}@61289859715,30,tr)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => _9.,n,Hangup()</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 000,1,Dial(SIP/000@61289859715)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => _7.,1,Dial(SIP/${EXTEN:1}@61289859716,30,tr)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => _7.,n,Hangup()</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">exten => 000,1,Dial(SIP/000@61289859716)</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">[phones]</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">include => internal</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">include => incoming_calls</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">include => outbound</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">>> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">Each extension has its own incoming and outgoing
account, I know how to route the incoming number to each particular extension,
but how does one route outgoing calls from a particular phone to use a specific
line, ie, from phone no. 89859715 an outgoing call will use caller id 89859715
and line 89859715? Or for phone no. 89859716 to use the 89859716 line? </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">I have sixteen outgoing lines I need to configure, so
that each individual phone can send its own caller id; any suggestions?</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">Thanks for your thoughts.</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial"><br>
Rgds,</span></font></p>
<p><font size="2" face="Arial"><span lang="EN-AU" style="font-size:10.0pt;font-family:Arial">Clara</span></font></p>
</div>
</div>
<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</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></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Ioan (Nini) Indreias - <a href="mailto:indreias@gmail.com">indreias@gmail.com</a><br>
</div>