Newbie Dial Plan question
Newbie question, I have a ht503(FXO) connected to freeswitch to make local calls (7digits) The HT503-FXO is registered as extension 510. If I dial 510 (Bria softphone) via freeswitch I get dial tone and can dial my local number. However I can't seem to get it working via my dial plan. I created a gateway to connect to the HT503 see below, and I created a local 7digit dial plan. When I try to connect I get the error "Network_out_of_Order". Can somebody point out my error. Thanks Charles Gateway: /sip_profiles/external <include> <gateway name="8580444"> <param name="username" value="510"/> <param name="password" value="510"/> <param name="proxy" value="192.168.10.82"/> <param name="expire-seconds" value="800"/> <param name="register" value="false"/> <param name="retry-seconds" value="60"/> <param name="context" value="public"/> </gateway> </include> Dial Plan: /dialplan/default <extension name="LocalCalls.7d" > <condition field="destination_number" expression="^\d{7}$"> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="bridge" data="sofia/gateway/8580444/$1"/> </condition> </extension>
hi charles, in your bridge data, try this format instead: sofia/gateway/8580444/$1@fxo_ip_address:fxo_port cheers! On Sat, Jan 15, 2011 at 5:00 AM, Charles Bujold <cjbujold@accra.ca> wrote:
Newbie question,
I have a ht503(FXO) connected to freeswitch to make local calls (7digits) The HT503-FXO is registered as extension 510. If I dial 510 (Bria softphone) via freeswitch I get dial tone and can dial my local number. However I can’t seem to get it working via my dial plan.
I created a gateway to connect to the HT503 see below, and I created a local 7digit dial plan. When I try to connect I get the error “Network_out_of_Order”. Can somebody point out my error. Thanks
*Charles *
Gateway: /sip_profiles/external
<include>
<gateway name="8580444">
<param name="username" value="510"/>
<param name="password" value="510"/>
<param name="proxy" value="192.168.10.82"/>
<param name="expire-seconds" value="800"/>
<param name="register" value="false"/>
<param name="retry-seconds" value="60"/>
<param name="context" value="public"/>
</gateway>
</include>
Dial Plan: /dialplan/default
<extension name="LocalCalls.7d" >
<condition field="destination_number" expression="^\d{7}$">
<action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
<action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
<action application="bridge" data="sofia/gateway/8580444/$1"/>
</condition>
</extension>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Nandy Dagondon wrote:
in your bridge data, try this format instead: sofia/gateway/8580444/$1@fxo_ip_address:fxo_port With expression="^\d{7}$", the regex will match into array[0] and not array[1]. As such, the $1 on the above line needs be replaced with $0. Or, to keep the above line as is, one needs to change the regex expression to expression="^(\d{7})$" (notice the () block).
----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Newbie-Dial-Plan-question-tp59... Sent from the freeswitch-users mailing list archive at Nabble.com.
participants (3)
-
Charles Bujold
-
mazilo
-
Nandy Dagondon