I have two SIP extensions defined in sip.conf register => 4450 at 10.20.1.1/4450 [4450] type=friend username=4450 host=10.20.1.1 allow=all dtmfmode=inband context=incoming register => 4451 at 10.20.1.1/4451 [4451] type=friend username=4451 host=10.20.1.1 allow=all dtmfmode=inband context=incoming Pretty straight forward... The first one works the second one does not. Then if I switch them again the first one works the second one does not. What is happening ? Thanks, Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190718/fd88cd5b/attachment.html>
Jerry, Can you define working? Are you not able to get calls? Make calls? Also the register statements should both be on top under the general section for instance: register => 4450 at 10.20.1.1/4450 register => 4451 at 10.20.1.1/4451 [4450] type=friend username=4450 host=10.20.1.1 allow=all dtmfmode=inband context=incoming [4451] type=friend username=4451 host=10.20.1.1 allow=all dtmfmode=inband context=incoming On Thu, Jul 18, 2019 at 9:09 AM Jerry Geis <jerry.geis at gmail.com> wrote:> I have two SIP extensions defined in sip.conf > > register => 4450 at 10.20.1.1/4450 > [4450] > type=friend > username=4450 > host=10.20.1.1 > allow=all > dtmfmode=inband > context=incoming > > register => 4451 at 10.20.1.1/4451 > [4451] > type=friend > username=4451 > host=10.20.1.1 > allow=all > dtmfmode=inband > context=incoming > > Pretty straight forward... The first one works the second one does not. > Then if I switch them again the first one works the second one does not. > > What is happening ? Thanks, > > Jerry > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190718/8c9d7e25/attachment.html>
On Thu, Jul 18, 2019, at 10:10 AM, Jerry Geis wrote:> I have two SIP extensions defined in sip.conf > > register => 4450 at 10.20.1.1/4450 > [4450] > type=friend > username=4450 > host=10.20.1.1 > allow=all > dtmfmode=inband > context=incoming > > register => 4451 at 10.20.1.1/4451 > [4451] > type=friend > username=4451 > host=10.20.1.1 > allow=all > dtmfmode=inband > context=incoming > > Pretty straight forward... The first one works the second one does not. > Then if I switch them again the first one works the second one does not. > > What is happening ? Thanks,"register" lines have to be under the general section. They can't be within a friend/peer/user. -- Joshua C. Colp Digium - A Sangoma Company | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Thanks - Ok I switch to look like what you have. register => 4450 at 10.20.1.1 <http://lists.digium.com/mailman/listinfo/asterisk-users>/4450 register => 4451 at 10.20.1.1 <http://lists.digium.com/mailman/listinfo/asterisk-users>/4451 [4450] type=friend username=4450 host=10.20.1.1 allow=all dtmfmode=inband context=incoming [4451] type=friend username=4451 host=10.20.1.1 allow=all dtmfmode=inband context=incoming Same thing. I can call into 4450 just fine. But I cannot call into 4451. Both are defined in extensions.conf Both show up in the sip show peers. 4450/4450 10.20.1.1 Auto (No) No 5060 Unmonitored 4451/4451 10.20.1.1 Auto (No) No 5060 Unmonitored Thanks, Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190718/7099ce7c/attachment.html>
On Thu, Jul 18, 2019, at 10:29 AM, Jerry Geis wrote:> Thanks - Ok I switch to look like what you have. > > register => 4450 at 10.20.1.1 > <http://lists.digium.com/mailman/listinfo/asterisk-users>/4450 > register => 4451 at 10.20.1.1 > <http://lists.digium.com/mailman/listinfo/asterisk-users>/4451 > > [4450] > type=friend > username=4450 > host=10.20.1.1 > allow=all > dtmfmode=inband > context=incoming > > [4451] > type=friend > username=4451 > host=10.20.1.1 > allow=all > dtmfmode=inband > context=incoming > Same thing. I can call into 4450 just fine. But I cannot call into > 4451. Both are defined in extensions.conf Both show up in the sip show > peers.4450/4450 10.20.1.1 > Auto (No) No 5060 Unmonitored > > 4451/4451 10.20.1.1 > Auto (No) No 5060 Unmonitored > Thanks, > JerryOnly the first entry will be matched for incoming. As another individual has stated you'll have to also clarify what doesn't exactly work. If you enable SIP debug (sip set debug on) do you not see the INVITE coming in for example? -- Joshua C. Colp Digium - A Sangoma Company | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
On Thu, Jul 18, 2019, at 10:29 AM, Jerry Geis wrote:> Thanks - Ok I switch to look like what you have. > > register => 4450 at 10.20.1.1 > <http://lists.digium.com/mailman/listinfo/asterisk-users>/4450 > register => 4451 at 10.20.1.1 > <http://lists.digium.com/mailman/listinfo/asterisk-users>/4451 > > [4450] > type=friend > username=4450 > host=10.20.1.1 > allow=all > dtmfmode=inband > context=incoming > > [4451] > type=friend > username=4451 > host=10.20.1.1 > allow=all > dtmfmode=inband > context=incoming > Same thing. I can call into 4450 just fine. But I cannot call into > 4451. Both are defined in extensions.conf Both show up in the sip show > peers.4450/4450 10.20.1.1 > Auto (No) No 5060 Unmonitored > > 4451/4451 10.20.1.1 > Auto (No) No 5060 Unmonitored > Thanks, > JerrySorry, have to also readjust to chan_sip thinking and wonkiness. The second may get matched depending on the INVITE. You'll need to provide more information as I mentioned so it can be seen what exactly is happening on the calls that could differentiate them. -- Joshua C. Colp Digium - A Sangoma Company | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
It looks like moving both to the general section got it working. Never new that was a requirement. :) Thanks, Jerry> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190718/80770f79/attachment.html>
On Thu, 18 Jul 2019, Joshua C. Colp wrote:> On Thu, Jul 18, 2019, at 10:10 AM, Jerry Geis wrote: >> I have two SIP extensions defined in sip.conf >> >> register => 4450 at 10.20.1.1/4450 >> [4450] >> type=friend >> username=4450 >> host=10.20.1.1 >> allow=all >> dtmfmode=inband >> context=incoming >> >> register => 4451 at 10.20.1.1/4451 >> [4451] >> type=friend >> username=4451 >> host=10.20.1.1 >> allow=all >> dtmfmode=inband >> context=incoming > > "register" lines have to be under the general section. They can't be within a friend/peer/user.I format my entries in sip.conf like below to keep everything related to the endpoint together. ; 4450 [general](+) register = 4450 at 10.20.1.1/4450 [4450] allow = all context = incoming dtmfmode = inband host = 10.20.1.1 type = friend username = 4450 ; 4451 [general](+) register = 4451 at 10.20.1.1/4451 [4451] allow = all context = incoming dtmfmode = inband host = 10.20.1.1 type = friend username = 4451 I like to keep the parameters in each stanza sorted and 'tabbed out' to make it easier to compare stanzas and because I'm just that kind of guy :) -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST https://www.linkedin.com/in/steve-edwards-4244281