[Freeswitch-users] how to setup Grandstream GXW4104 gateway properly

Sherif Omran sherifomran2000 at yahoo.com
Tue Jul 16 22:59:10 MSD 2013


Dear all,

I am trying to setup a Grandstream gateway .. I set it for inbound registration .. Example : It registers through extension 1005

Now I need to do the following:

if i call 99+7 digits, the call should be sent to the gateway ... 

  Call Routing/Dial Plan (1 Stage Dialing Only) and Dial Settings  :  {x+}
 x - any digit from 0-9; 

I don't know if the number to be dialed has to be sent into the SIP message to extension 1005  or how should it be sent?

I searched over the internet and found the following dialing plan, however it needs the ip address of the gateway which i don't have

<include>
  <extension name="ht503-fxo-local">
    <condition field="${toll_allow}" expression="local"/>
    <condition field="destination_number" expression="^99(d{7})$">
    <action application="set" data="effective_caller_id_number=0321234567"/>
    <action application="set" data="effective_caller_id_name=ThisIsMy Company"/>
    <action application="set" data="ignore_early_media=ring_ready"/>    
    <action application="set" data="ringback=${us-ring}"/>
      <action application="bridge" data="sofia/gateway/ht503-fxo/$1 at 192.168.0.9:5062"/>
    </condition>
  </extension>
</include>


could you please help me to set it correctly?


thank you

kind regards,
S.Omran



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list