hi all, just wondering what's happening here: i have a pap2 and an spa941. everytime i call my spa from my pap2 i can see it being added dynamically on the regcontext: [Oct 7 11:59:08] -- Saved useragent "Linksys/SPA942-5.2.8" for peer 100100 [Oct 7 11:59:08] -- Added extension '100100' priority 1 to sipregcontext but from spa to pap2 i dont see it, i looked at the difference on the config, under SIP: On PAP2: Handle VIA received: yes Handle VIA rport: yes Insert VIA received: yes Insert VIA rport: yes STUN Enable: yes STUN Test Enable: On SPA: Handle VIA received: no Handle VIA rport: no Insert VIA received: no Insert VIA rport: no STUN Enable: no STUN Test Enable: so i change pap2 to the same config as spa, and now i can see it being added on the regcontext when i call it [Oct 7 11:59:04] -- Saved useragent "Linksys/PAP2-3.1.22(LS)" for peer 100200 [Oct 7 11:59:04] -- Added extension '100200' priority 1 to sipregcontext [Oct 7 11:59:04] -- Saved useragent "Linksys/PAP2-3.1.22(LS)" for peer 100300 [Oct 7 11:59:04] -- Added extension '100300' priority 1 to sipregcontext does that have to do with the STUN? or the Handle VIA thing. just trying to understand these behavior. TIA Regards, Nhadie
On Tue, 2008-10-07 at 12:03 +0800, Nhadie wrote:> just wondering what's happening here: > > i have a pap2 and an spa941. everytime i call my spa from my pap2 i can > see it being added dynamically on the regcontext: > > [Oct 7 11:59:08] -- Saved useragent "Linksys/SPA942-5.2.8" for peer > 100100 > [Oct 7 11:59:08] -- Added extension '100100' priority 1 to > sipregcontext >It shouldn't be added when it's *called*, it should be added when the phone *registers*. What happens is that if regcontext and regexten are set for a particular SIP peer, Asterisk automatically creates an extension (the name controlled by the regexten setting) in the proper context (controlled by the regcontext setting) with a priority of 1 and NoOp() as the application. If this is happening at the time the phone is called and not at the time the phone registers, then this would appear to me to be a bug. Based on the other comment in your log file above (the "Saved useragent" messsage), I'm guessing that it really is happening at registration time. -- Jared Smith Training Manager Digium, Inc.