[Asterisk-Users] H323 without a gatekeeper

Mark Elkins mje at posix.co.za
Fri Nov 5 05:42:37 MST 2004


Setting up a Gatekeeper can be a pain. After looking at "Speed Dial /
New Context" from Wed, 3 Nov 2004 18:24:31, I added the following bits
into 'extensions.conf'.

Maybe useful to others..

In my incoming default profile - I have...

; Calls from the H323 Extentions
exten => s/205,1,Macro(h323extn,Mark)
exten => s/206,1,Macro(h323extn,Alistair)

-and-

[macro-h323extn]
exten => s,1,Read(ToDial,posix/no2call) ; "please enter the No. to call
followed by #"
exten => s,2,GotoIf($[${LEN(${ToDial})} > 2]?sip,${ToDial},1:3) ;Valid
number length?
exten => s,3,Hangup


On my Planet H323 phone, I have programmed a key so it simply calls
Asterisk - and looks like an external incoming call. Caller-ID from the
phone does a simple (unsecure!) validation (I'm using 205 and 206 on two
phones). I'm using Macro's because I was doing some odd things before.
In the Macro - the LENgth check is to cleanly get rid of unwanted call
attempts. The user-requested number is then simply fed back into the
context I use for my Sip phones (sip).

-- 
  .  .     ___. .__      Posix Systems - Sth Africa
 /| /|       / /__       mje at posix.co.za  -  Mark J Elkins, Cisco CCIE
/ |/ |ARK \_/ /__ LKINS  Tel: +27 12 807 0590  Cell: +27 82 601 0496

IN my incomming default




More information about the asterisk-users mailing list