Hi, when I place a call over the gateway to the PTSN I see the dialed number without the leading 0 prefix in the history of my Grandstream GXP2140. Is there a way to add the 0 back again? Thank you <include> <extension name="isdn-outbound"> <condition field="destination_number" expression="^0(\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/isdn/$1"/> </condition> </extension> </include>
change $1 to $0 or 0$1 On 31 March 2015 at 16:29, Paul Atreides <paul.atreides83@googlemail.com> wrote:
Hi,
when I place a call over the gateway to the PTSN I see the dialed number without the leading 0 prefix in the history of my Grandstream GXP2140. Is there a way to add the 0 back again?
Thank you
<include> <extension name="isdn-outbound"> <condition field="destination_number" expression="^0(\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/isdn/$1"/> </condition> </extension> </include>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
Hi Andrew, I think my description was not so good. My gateway accepts 012456789 but I want the user to dial 001234567. Can I remove the leading 0 and still tell the sip client that the user dialed with the extra 0? On Tue, Mar 31, 2015 at 6:04 PM, Andrew Cassidy < andrew@cassidywebservices.co.uk> wrote:
change $1 to $0 or 0$1
On 31 March 2015 at 16:29, Paul Atreides <paul.atreides83@googlemail.com> wrote:
Hi,
when I place a call over the gateway to the PTSN I see the dialed number without the leading 0 prefix in the history of my Grandstream GXP2140. Is there a way to add the 0 back again?
Thank you
<include> <extension name="isdn-outbound"> <condition field="destination_number" expression="^0(\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/isdn/$1"/> </condition> </extension> </include>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
Oh right! sorry! Try this for the bridge: <action application="bridge" data="{origination_callee_id_name=$0,origination_callee_id_number=$0, ignore_display_updates=true}sofia/gateway/isdn/$1"/> It forcibly sets the callee details to the original number then is instructed to ignore display updates from the gateway. On 31 March 2015 at 20:37, Paul Atreides <paul.atreides83@googlemail.com> wrote:
Hi Andrew,
I think my description was not so good. My gateway accepts 012456789 but I want the user to dial 001234567. Can I remove the leading 0 and still tell the sip client that the user dialed with the extra 0?
On Tue, Mar 31, 2015 at 6:04 PM, Andrew Cassidy < andrew@cassidywebservices.co.uk> wrote:
change $1 to $0 or 0$1
On 31 March 2015 at 16:29, Paul Atreides <paul.atreides83@googlemail.com> wrote:
Hi,
when I place a call over the gateway to the PTSN I see the dialed number without the leading 0 prefix in the history of my Grandstream GXP2140. Is there a way to add the 0 back again?
Thank you
<include> <extension name="isdn-outbound"> <condition field="destination_number" expression="^0(\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/isdn/$1"/> </condition> </extension> </include>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
Thanks :) On Wed, Apr 1, 2015 at 10:40 AM, Andrew Cassidy < andrew@cassidywebservices.co.uk> wrote:
Oh right! sorry!
Try this for the bridge:
<action application="bridge" data="{origination_callee_id_name=$0,origination_callee_id_number=$0, ignore_display_updates=true}sofia/gateway/isdn/$1"/>
It forcibly sets the callee details to the original number then is instructed to ignore display updates from the gateway.
On 31 March 2015 at 20:37, Paul Atreides <paul.atreides83@googlemail.com> wrote:
Hi Andrew,
I think my description was not so good. My gateway accepts 012456789 but I want the user to dial 001234567. Can I remove the leading 0 and still tell the sip client that the user dialed with the extra 0?
On Tue, Mar 31, 2015 at 6:04 PM, Andrew Cassidy < andrew@cassidywebservices.co.uk> wrote:
change $1 to $0 or 0$1
On 31 March 2015 at 16:29, Paul Atreides <paul.atreides83@googlemail.com
wrote:
Hi,
when I place a call over the gateway to the PTSN I see the dialed number without the leading 0 prefix in the history of my Grandstream GXP2140. Is there a way to add the 0 back again?
Thank you
<include> <extension name="isdn-outbound"> <condition field="destination_number" expression="^0(\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/isdn/$1"/> </condition> </extension> </include>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
participants (2)
-
Andrew Cassidy
-
Paul Atreides