Is Exist <font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">"InternalExtension" context ? and 2093 exten ?</span></font><br><br><div><span class="gmail_quote">2006/1/5, Aisling <<a href="mailto:ashling.odriscoll@cit.ie">
ashling.odriscoll@cit.ie</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hi all,</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I am having difficulty getting incoming PSTN calls working.
I have set up an account with a third party provider. In my system, the user
register with SER and use Asterisk for PSTN access, voicemail etc</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">My provider told me to change my sip.conf as follows</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">register</span></font></span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> =>
<a href="http://username:password@sip.blueface.ie/2093" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">username:password@sip.blueface.ie/2093</a><span> </span><br>
<br>
; To receive incoming calls specify this block and replace "<span>yourcontext</span>" for your dial plan. <br>
[<span>blueface</span>-in<span>] <br>
type</span>=peer <br>
host=<span><a href="http://sip.blueface.ie" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sip.blueface.ie</a></span> <br>
context=<span>incomingpstn</span></span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">And then in my extensions.conf to have something similar to
the following (or however I wanted to handle my incoming calls)</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">[<span><span>incomingpstn</span></span>]</span></font></p>
<p><span><span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">exten</span></font></span></span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> =>
2093,1,Wait(1)</span></font></p>
<p><span><span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">exten</span></font></span></span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> =>
2093,n,Background(<span>MainMenu</span>)</span></font></p>
<p><span><span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">exten</span></font></span></span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> =>
1,1,Goto(InternalExtension,2093,1)<span> </span>//press
1 for internal extensions.</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">This didn't work and I kept getting a 404 not found
error saying the user didn't exist. I tried creating the user in sip.conf
and pointing it to the appropriate context but that didn't work either.
The only way I can get it to work is to copy the code I had in the '<span>incomingpstn</span>' context of my <span>extension.conf</span>
to the 'default' context. <span>i.e.</span></span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">[<span>default</span>]</span></font></p>
<p><span><span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">exten</span></font></span></span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> =>
2093,1,Wait(1)</span></font></p>
<p><span><span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">exten</span></font></span></span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> =>
2093,n,Background(<span>MainMenu</span>)</span></font></p>
<p><span><span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">exten</span></font></span></span><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> =>
1,1,Goto(InternalExtension,2093,1)<span> </span></span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Then the file would play. First of all I don't get why
this is…It doesn't even seem to refer to the code in my sip.conf…I
don't get it. Secondly whilst moving this code to the default context
means I can hear my initial welcome menu, when I press '1' to
interrupt the menu and move to menu option 1 (another sound file) it won't
let me interrupt and I eventually get the error "Timeout but no rule 't'
in context 'default".</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Does anyone have any ides where the problem might be?</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Many thanks,</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Aisling.</span></font></p>
</div>
-------------------Legal Disclaimer---------------------------------------
The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.
<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --<br><br>
Asterisk-Users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Giovanni Miano