<div dir="ltr"><div dir="ltr"><div><div>Thomas,<br><br></div>Does the Asterisk box need to do anything other than handle calls for this one specific IVR? IE does it ever originate calls?<br><br></div>If it's only recieving calls then I'd turn on guest access and not even bother with a peer.<br></div><div>Just set<br><br></div><div>[general]<br></div><div dir="ltr">context=transit-ivr<br>allowguest=yes<br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 26, 2019 at 3:13 PM Thomas Peters <<a href="mailto:TPeters@mcts.org">TPeters@mcts.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div class="gmail-m_-3307631067110253619WordSection1">
<p class="MsoNormal">Hello all, I hope someone can help me with this old Asterisk version. I have to run this version because of a custom IVR written on it. Porting it would take much too long and we’d have to hire a consultant because of all the hooks it has
 into Oracle databases and real-time information. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We have a brand-new Avaya phone system in place and we will be cutting over to it in late March 2019.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Presently: <u></u><u></u></p>
<ul style="margin-top:0in" type="disc">
<li class="gmail-m_-3307631067110253619MsoListParagraph" style="margin-left:0in">We have an Asterisk 13.3.2 server with no phones registered to it, acting as a PSTN gateway. Calls come into it and get distributed to other Asterisk boxes with phones.
<u></u><u></u></li><li class="gmail-m_-3307631067110253619MsoListParagraph" style="margin-left:0in">If a call comes in from the provider marked as having been dialed as xxx-xxx-6711 (those are digits, not a pattern) it gets routed to the IVR box<u></u><u></u></li><li class="gmail-m_-3307631067110253619MsoListParagraph" style="margin-left:0in">The IVR box runs Asterisk 1.8.7.0 and a custom IVR.<u></u><u></u></li></ul>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Where we have to get to: <u></u><u></u></p>
<ul style="margin-top:0in" type="disc">
<li class="gmail-m_-3307631067110253619MsoListParagraph" style="margin-left:0in">The new Avaya Session Manager has to have a working SIP trunk to the IVR so it can pass calls that come into xxx-xxx-6711 to it.
<u></u><u></u></li></ul>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">What the problem is: <u></u><u></u></p>
<ul style="margin-top:0in" type="disc">
<li class="gmail-m_-3307631067110253619MsoListParagraph" style="margin-left:0in">I don’t fully understand what’s going on here, neither how it works now, nor what I need to do to make Avaya’s SM happy.<u></u><u></u></li><li class="gmail-m_-3307631067110253619MsoListParagraph" style="margin-left:0in">When I do
<b>sip show peers</b> on my IVR box, I see the Avaya session manager: <u></u><u></u></li></ul>
<p class="gmail-m_-3307631067110253619MsoListParagraph">jerec*CLI> sip show peers<u></u><u></u></p>
<p class="gmail-m_-3307631067110253619MsoListParagraph">Name/username              Host                                    Dyn Forcerport ACL Port     Status<u></u><u></u></p>
<p class="gmail-m_-3307631067110253619MsoListParagraph">sessionmgr1                10.10.0.17                                          5060     OK (1 ms)<u></u><u></u></p>
<ul style="margin-top:0in" type="disc">
<li class="gmail-m_-3307631067110253619MsoListParagraph" style="margin-left:0in">The Avaya engineer says he is seeing “SIP/2.0 400 Bad FROM header” in his trace screen, and his SM status screen shows “500 NOT REACHABLE” as the status for our IVR.<u></u><u></u></li><ul style="margin-top:0in" type="circle">
<li class="gmail-m_-3307631067110253619MsoListParagraph" style="margin-left:0in">He says we are sending
<u></u><u></u></li></ul>
</ul>
<p class="gmail-m_-3307631067110253619MsoListParagraph" style="margin-left:1in"><b>“asterisk” <a>
<span style="color:windowtext;text-decoration:none">sip:asterisk@(null):0;tag=as682f2c53</span></a></b>
<u></u><u></u></p>
<p class="gmail-m_-3307631067110253619MsoListParagraph" style="margin-left:1in">as the “From” in the SIP header.<u></u><u></u></p>
<ul style="margin-top:0in" type="disc">
<li class="gmail-m_-3307631067110253619MsoListParagraph" style="margin-left:0in">He wants us to send
<u></u><u></u></li></ul>
<p class="MsoNormal" style="margin-left:0.5in"><b><a href="mailto:10.10.0.103@mcts.org" target="_blank"><span style="color:windowtext;text-decoration:none">10.10.0.103@mcts.org</span></a> 
<u></u><u></u></b></p>
<p class="MsoNormal" style="margin-left:0.5in;text-indent:0.5in">or more likely <u></u>
<u></u></p>
<p class="MsoNormal" style="margin-left:0.5in"><b><sip:<a href="mailto:10.10.0.103@mcts.org" target="_blank"><span style="color:windowtext;text-decoration:none">10.10.0.103@mcts.org</span></a>><u></u><u></u></b></p>
<p class="gmail-m_-3307631067110253619MsoListParagraph">instead.<u></u><u></u></p>
<ul style="margin-top:0in" type="disc">
<li class="gmail-m_-3307631067110253619MsoListParagraph" style="margin-left:0in">Pings from either end to the other work just fine.
<u></u><u></u></li><li class="gmail-m_-3307631067110253619MsoListParagraph" style="margin-left:0in">nmap doesn’t show port 5060 open. It shows only port 22/tcp open. But then again, my main asterisk PBX doesn’t show that port open either. So I don’t think that means anything.
<u></u><u></u></li></ul>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The IVR machine (Asterisk 1.8.7.0) sip.conf file has an old section for the old PSTN gateway, and a new section I just added for the session manager.
<u></u><u></u></p>
<p class="MsoNormal">Old section for existing connections to the IVR: <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[general]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">;context=transit-ivr<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">context=incoming<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">disallow=all<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">allow=ulaw<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">canreinvite=no<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[sipivr]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">host=dynamic<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">secret=1NA6oZjTg1rjhZN8lArDgzLI7z8V2fxV<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">type=peer<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">;context=transit-ivr<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">context=incoming<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">dtmfmode=inband</span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The new section, with many failed experiments commented out, is after the [sipivr] section:
<u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[sessionmgr1]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">type=peer<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">;type=friend<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">port=5060<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">host=10.90.0.17<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">dtmfmode=inband<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">allowguest=yes<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">qualify=yes<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">realm=<a href="http://mcts.org" target="_blank">mcts.org</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">promiscredir=yes<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">;Some have suggested using canreinvite=no with Avaya- didn't try that yet<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">;canreinvite=no<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">canreinvite=yes<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">transport=tcp<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">;context=incoming<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">context=from-internal<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">;username=10.90.0.103<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">fromdomain=<a href="http://mcts.org" target="_blank">mcts.org</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">disallow=all<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">allow=ulaw<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">allow=alaw<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">tcpenable=yes<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">tcpbindaddr=<a href="http://0.0.0.0:5060" target="_blank">0.0.0.0:5060</a><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Nothing I tried seems to make it stop sending asterisk@(null) in the header. This is supposed to be a sip trunk, not an extension, so I think I should NOT be user a username or secret. I’m not even sure what
<span style="font-family:"Courier New"">promiscredir </span>does, or if it’s helping or harming me.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">There’s virtually nothing in the logs about this connection, other than this:
<u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">[Feb 26 16:05:42] NOTICE[32142] chan_sip.c: Peer 'sessionmgr1' is now Reachable. (1ms / 2000ms)<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Can anyone help? <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="background:white none repeat scroll 0% 0%"><span style="font-size:9pt;color:rgb(0,111,201)">Thomas M. Peters | Sr. Systems Administrator | 
<a href="mailto:tpeters@mcts.org" target="_blank"><span style="color:blue">tpeters@mcts.org</span></a> 
<br>
Desk: 414.343.1720 | Helpdesk: x3400 or  <a href="mailto:helpdesk@mcts.org" target="_blank"><span style="color:blue">helpdesk@mcts.org</span></a></span><span style="font-size:9pt;color:black"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0% 0%"><u><span style="font-size:9pt;color:rgb(0,111,201)"><a href="http://www.ridemcts.com/" target="_blank"><span style="color:rgb(0,111,201)">Milwaukee County Transit System
</span></a></span></u><u><span style="font-size:9pt;color:blue"><u></u><u></u></span></u></p>
<p class="MsoNormal" style="background:white none repeat scroll 0% 0%"><span style="font-size:9pt;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0% 0%"><span style="font-size:9pt;color:rgb(0,111,201)">1942 N 17th Street | Milwaukee, WI  53205</span><span style="font-size:9pt;color:black"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white none repeat scroll 0% 0%"><span style="font-size:9pt;color:rgb(0,111,201)">Check us out on
<a href="https://www.facebook.com/mcts" target="_blank"><span style="color:blue">Facebook</span></a> &
<a href="https://twitter.com/RideMCTS" target="_blank"><span style="color:blue">Twitter </span></a></span><span style="font-size:9pt;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
      <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</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" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" 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>