Re: [asterisk-users] Which device auto-registered an extension?

2011-12-18 Thread Barry Miller
On Sat, Dec 17, 2011 at 03:55:55PM -0600, Warren Selby wrote: Why not try set a variable under each device in sip.conf to the same as the endpoint name then Dial(SIP/${CustomVar})? Thanks. That keeps the device-extension association in one place, at the cost of a little redundancy if done

Re: [asterisk-users] Which device auto-registered an extension?

2011-12-17 Thread Olle E. Johansson
16 dec 2011 kl. 18:12 skrev Barry Miller: On Fri, Dec 16, 2011 at 05:02:11PM +0100, Olle E. Johansson wrote: 16 dec 2011 kl. 02:03 skrev Barry Miller: So is there a way for the dialplan to determine which device caused SIP to auto-register an extension? Not really, unless someone else

Re: [asterisk-users] Which device auto-registered an extension?

2011-12-17 Thread Warren Selby
Why not try set a variable under each device in sip.conf to the same as the endpoint name then Dial(SIP/${CustomVar})? Thanks, --Warren Selby, dCAP On Dec 15, 2011, at 7:03 PM, Barry Miller asterisk-us...@notanet.net wrote: Hi all, In sip.conf: [general] regcontext = autoreg

Re: [asterisk-users] Which device auto-registered an extension?

2011-12-16 Thread Olle E. Johansson
16 dec 2011 kl. 02:03 skrev Barry Miller: Hi all, In sip.conf: [general] regcontext = autoreg [devabc] regexten = 543 creates exten= 543,1,Noop(devabc) in context autoreg when devabc registers. But I can't use exten= _5XX,2,Dial(SIP/${EXTEN}) in the dialplan, because there's

Re: [asterisk-users] Which device auto-registered an extension?

2011-12-16 Thread Barry Miller
On Fri, Dec 16, 2011 at 05:02:11PM +0100, Olle E. Johansson wrote: 16 dec 2011 kl. 02:03 skrev Barry Miller: So is there a way for the dialplan to determine which device caused SIP to auto-register an extension? Not really, unless someone else can come up with something. In

[asterisk-users] Which device auto-registered an extension?

2011-12-15 Thread Barry Miller
Hi all, In sip.conf: [general] regcontext = autoreg [devabc] regexten = 543 creates exten= 543,1,Noop(devabc) in context autoreg when devabc registers. But I can't use exten= _5XX,2,Dial(SIP/${EXTEN}) in the dialplan, because there's no device SIP/543. Now I know I can add a line like