[Asterisk-Users] username as extension

Nathan Alberti asterisk at iipc.com.au
Thu Feb 23 20:25:27 MST 2006


On 24/02/2006, at 5:40 AM, Mike Pollitt wrote:

> You want regexten/regcontext in sip.conf under each peer.
>
> http://www.voip-info.org/wiki-Asterisk+sip+regcontext
>
>


Yes, thats exactly what I want.

the scenario is i have two asterisk boxes.

box one (10.0.1.1) has a phone that registers as 1000
box two (10.0.2.1) has a phone that registers as 2000


I want to be able to call 1000 at 10.0.2.1 and 2000 at 10.0.2.1.

Now i realise I can add an extension  similar to this

exten => 1000,1,Dial(Sip/100)

But I just want it to somewhat dynamic so if 1000 registers on  
10.0.1.1 I can easily send it a call with the Dial(SIP/1000 at 10.0.2.1)  
from box two (or another box).

regexten is basically what I want but as stated earlier is has some  
shortcomings in the face that you must restart (not reload) asterisk  
when the state of a sip peer changes.


Regards,

Nathan.



More information about the asterisk-users mailing list