A Broadband and ADSL forum. BroadbanterBanter

Welcome to BroadbanterBanter.

You are currently viewing as a guest which gives you limited access to view most discussions and other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today.

Go Back   Home » BroadbanterBanter forum » Newsgroup Discussions » uk.telecom.voip (UK VOIP)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

uk.telecom.voip (UK VOIP) (uk.telecom.voip) Discussion of topics relevant to packet based voice technologies including Voice over IP (VoIP), Fax over IP (FoIP), Voice over Frame Relay (VoFR), Voice over Broadband (VoB) and Voice on the Net (VoN) as well as service providers, hardware and software for use with these technologies. Advertising is not allowed.

Inserting pauses into Asterisk Dialing Rules



 
 
Thread Tools Display Modes
  #1  
Old January 21st 06, 10:47 PM posted to uk.telecom.voip
Matt
external usenet poster
 
Posts: 141
Default Inserting pauses into Asterisk Dialing Rules

Hi,

Trying to get asterisk (AAH) to callout over discountdial for cheap
calls to mobiles.

I need to tell asterisk to dial 0844 8616464 then pause, then dail the
mobile to be called.

I can do everything apart from the pause!

Any ideas?

Thanks

Matthew

  #2  
Old January 22nd 06, 12:50 PM posted to uk.telecom.voip
Jono
external usenet poster
 
Posts: 73
Default Inserting pauses into Asterisk Dialing Rules


"Matt" wrote in message
ups.com...
Hi,

Trying to get asterisk (AAH) to callout over discountdial for cheap
calls to mobiles.

I need to tell asterisk to dial 0844 8616464 then pause, then dail the
mobile to be called.

I can do everything apart from the pause!

Any ideas?

Thanks

Matthew


I think that the best you could do is replace any number beginning with 07
with the access code you want to use. It would be easier to control this in
the dial plan of the spa3000 you're using for the pstn trunk.

In my dial plan of the spa, I have included
07.:08448616464

This element replaces any number beginning 07 with your access number.

Obviously, anyone ringing a mobile number would have to dial it twice, or at
least 07, then wait to be connected before dialling the number - it wouldn't
take long for them to get the idea.


  #3  
Old January 22nd 06, 01:10 PM posted to uk.telecom.voip
themgt
external usenet poster
 
Posts: 76
Default Inserting pauses into Asterisk Dialing Rules

Matt wrote:

Hi,

Trying to get asterisk (AAH) to callout over discountdial for cheap
calls to mobiles.

I need to tell asterisk to dial 0844 8616464 then pause, then dail the
mobile to be called.

I can do everything apart from the pause!

Any ideas?


AFAIK inserting a 'w' adds a half second pause. e.g.
08448616464ww07xxxxxxxxx
  #4  
Old January 22nd 06, 02:58 PM posted to uk.telecom.voip
Matt
external usenet poster
 
Posts: 141
Default Inserting pauses into Asterisk Dialing Rules

Cheers for that.

I've tried:

08448616464+wwwwwww+07XXXXXXXXX


in the dialing rules, but it ignores the wwwww's to give..



Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
fixlocalprefix: Added prefix. New number: 084486164640797322xxx
-- AGI Script fixlocalprefix completed, returning 0
-- Executing SetVar("SIP/205-5589",
"OUTNUM=0844861646407973212xxx") in new stack
-- Executing Cut("SIP/205-5589", "custom=OUT_1|:|1") in new stack
-- Executing GotoIf("SIP/205-5589", "0?19") in new stack
-- Executing Dial("SIP/205-5589",
"SIP/pstn/0844861646407973212xxx") in new stack
-- Called pstn/0844861646407973212xxx


I also, if it ever works, need to add a "#" at the end, but this also
fails.

Thanks for the suggestions so far.

Looks like I might have to revert to Jono's solution above..

Thanks


Matthew

  #5  
Old January 22nd 06, 04:37 PM posted to uk.telecom.voip
Stickems.
external usenet poster
 
Posts: 33
Default Inserting pauses into Asterisk Dialing Rules

Try a p for a pause.


"Matt" wrote in message
ups.com...
| Cheers for that.
|
| I've tried:
|
| 08448616464+wwwwwww+07XXXXXXXXX
|
|
| in the dialing rules, but it ignores the wwwww's to give..
|
|
|
| Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
| fixlocalprefix: Added prefix. New number: 084486164640797322xxx
| -- AGI Script fixlocalprefix completed, returning 0
| -- Executing SetVar("SIP/205-5589",
| "OUTNUM=0844861646407973212xxx") in new stack
| -- Executing Cut("SIP/205-5589", "custom=OUT_1|:|1") in new stack
| -- Executing GotoIf("SIP/205-5589", "0?19") in new stack
| -- Executing Dial("SIP/205-5589",
| "SIP/pstn/0844861646407973212xxx") in new stack
| -- Called pstn/0844861646407973212xxx
|
|
| I also, if it ever works, need to add a "#" at the end, but this also
| fails.
|
| Thanks for the suggestions so far.
|
| Looks like I might have to revert to Jono's solution above..
|
| Thanks
|
|
| Matthew
|


  #6  
Old January 22nd 06, 09:46 PM posted to uk.telecom.voip
PeterW
external usenet poster
 
Posts: 49
Default Inserting pauses into Asterisk Dialing Rules

"Stickems." wrote in
reenews.net:

Try a p for a pause.


"Matt" wrote in message
ups.com...
| Cheers for that.
|
| I've tried:
|
| 08448616464+wwwwwww+07XXXXXXXXX
|
|
| in the dialing rules, but it ignores the wwwww's to give..
|
|
|
| Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
| fixlocalprefix: Added prefix. New number: 084486164640797322xxx
| -- AGI Script fixlocalprefix completed, returning 0
| -- Executing SetVar("SIP/205-5589",
| "OUTNUM=0844861646407973212xxx") in new stack
| -- Executing Cut("SIP/205-5589", "custom=OUT_1|:|1") in new stack
| -- Executing GotoIf("SIP/205-5589", "0?19") in new stack
| -- Executing Dial("SIP/205-5589",
| "SIP/pstn/0844861646407973212xxx") in new stack
| -- Called pstn/0844861646407973212xxx
|
|
| I also, if it ever works, need to add a "#" at the end, but this also
| fails.
|
| Thanks for the suggestions so far.
|
| Looks like I might have to revert to Jono's solution above..
|
| Thanks
|
|
| Matthew
|




This bit of Asterisk macro is designed to dial a SIP number wait 4 seconds
and the DTMF dial the second macro argument... - have a look at the
http://www.voip-info.org/wiki for details of the Dial command parameters.

exten = s,14,Dial(SIP/${num}@bt,300,M(dwait^4)D(${ARG2}))
exten = s,15,Goto(end,busy,1)

[macro-dwait]
;
; Macro to wait a delay
;
exten = s,1,Wait(${ARG1})

Regards
Peter
  #7  
Old February 15th 06, 05:17 PM posted to uk.telecom.voip
Matt
external usenet poster
 
Posts: 141
Default Inserting pauses into Asterisk Dialing Rules


PeterW wrote:
"Stickems." wrote in
reenews.net:

Try a p for a pause.


"Matt" wrote in message
ups.com...
| Cheers for that.
|
| I've tried:
|
| 08448616464+wwwwwww+07XXXXXXXXX
|
|
| in the dialing rules, but it ignores the wwwww's to give..
|
|
|
| Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
| fixlocalprefix: Added prefix. New number: 084486164640797322xxx
| -- AGI Script fixlocalprefix completed, returning 0
| -- Executing SetVar("SIP/205-5589",
| "OUTNUM=0844861646407973212xxx") in new stack
| -- Executing Cut("SIP/205-5589", "custom=OUT_1|:|1") in new stack
| -- Executing GotoIf("SIP/205-5589", "0?19") in new stack
| -- Executing Dial("SIP/205-5589",
| "SIP/pstn/0844861646407973212xxx") in new stack
| -- Called pstn/0844861646407973212xxx
|
|
| I also, if it ever works, need to add a "#" at the end, but this also
| fails.
|
| Thanks for the suggestions so far.
|
| Looks like I might have to revert to Jono's solution above..
|
| Thanks
|
|
| Matthew
|




This bit of Asterisk macro is designed to dial a SIP number wait 4 seconds
and the DTMF dial the second macro argument... - have a look at the
http://www.voip-info.org/wiki for details of the Dial command parameters.

exten = s,14,Dial(SIP/${num}@bt,300,M(dwait^4)D(${ARG2}))
exten = s,15,Goto(end,busy,1)

[macro-dwait]
;
; Macro to wait a delay
;
exten = s,1,Wait(${ARG1})

Regards
Peter


Cheers Peter,

I tried this..

exten = 124,1,Answer
exten = 124,2,Dial(SIP/[email protected],300,M(dwait^4)D(07973212xxx))

but it didn't work.... It just dialed the 0844 number on its own.

I wasn't sure where to put the macro definition?

Many thanks


Matthew

  #8  
Old February 15th 06, 05:40 PM posted to uk.telecom.voip
Thomas Kenyon
external usenet poster
 
Posts: 148
Default Inserting pauses into Asterisk Dialing Rules

Matt wrote:
PeterW wrote:

"Stickems." wrote in
dfreenews.net:


Try a p for a pause.


"Matt" wrote in message
groups.com...
| Cheers for that.
|
| I've tried:
|
| 08448616464+wwwwwww+07XXXXXXXXX
|
|
| in the dialing rules, but it ignores the wwwww's to give..
|
|
|
| Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
| fixlocalprefix: Added prefix. New number: 084486164640797322xxx
| -- AGI Script fixlocalprefix completed, returning 0
| -- Executing SetVar("SIP/205-5589",
| "OUTNUM=0844861646407973212xxx") in new stack
| -- Executing Cut("SIP/205-5589", "custom=OUT_1|:|1") in new stack
| -- Executing GotoIf("SIP/205-5589", "0?19") in new stack
| -- Executing Dial("SIP/205-5589",
| "SIP/pstn/0844861646407973212xxx") in new stack
| -- Called pstn/0844861646407973212xxx
|
|
| I also, if it ever works, need to add a "#" at the end, but this also
| fails.
|
| Thanks for the suggestions so far.
|
| Looks like I might have to revert to Jono's solution above..
|
| Thanks
|
|
| Matthew
|




This bit of Asterisk macro is designed to dial a SIP number wait 4 seconds
and the DTMF dial the second macro argument... - have a look at the
http://www.voip-info.org/wiki for details of the Dial command parameters.

exten = s,14,Dial(SIP/${num}@bt,300,M(dwait^4)D(${ARG2}))
exten = s,15,Goto(end,busy,1)

[macro-dwait]
;
; Macro to wait a delay
;
exten = s,1,Wait(${ARG1})

Regards
Peter



Cheers Peter,

I tried this..

exten = 124,1,Answer
exten = 124,2,Dial(SIP/[email protected],300,M(dwait^4)D(07973212xxx))

but it didn't work.... It just dialed the 0844 number on its own.

I wasn't sure where to put the macro definition?

Many thanks

Did you include the macro-dwait as the op instructed?
  #9  
Old February 15th 06, 08:11 PM posted to uk.telecom.voip
Thomas Kenyon
external usenet poster
 
Posts: 148
Default Inserting pauses into Asterisk Dialing Rules

Matt wrote:
Yes...

I included


[macro-dwait]
;
; Macro to wait a delay
;
exten = s,1,Wait(${ARG1})


after the exten line.

Is this the correct place?

Thanks for the reply


Matthew

I don't know that it makes a difference, All my macros are defined just
after general.

It's worth noting that in some news readers the character after the
dwait will look like a superscript 4, which should really be a ^ 4
(without the space), this notation for parsing variables to macros from
within dialstrings was introduced in Asterisk 1.2.0, (so if you are
still haven't upgraded, that's another reason it wont work).

If you are upgrading to 1.2.0, be prepared to tit about with your config
files (mostly extensions.conf). A lot of stuff changed.
  #10  
Old February 15th 06, 09:01 PM posted to uk.telecom.voip
Matt
external usenet poster
 
Posts: 141
Default Inserting pauses into Asterisk Dialing Rules

I'm still on Asterisk 1.0.9, so thats why it doesn't work....

 




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outgoing Dial Rules in [email protected] Jono uk.telecom.voip (UK VOIP) 19 October 9th 05 09:50 AM
Dialing via VoipCheap Mark Carver uk.telecom.voip (UK VOIP) 8 October 2nd 05 08:28 AM
BT Yahoo - really slow (2MB service) with long pauses, sites not loading [email protected] uk.telecom.broadband (UK broadband) 22 September 16th 05 06:56 PM
Sipura:Inserting pauses into dial plan Brian A uk.telecom.voip (UK VOIP) 3 September 6th 05 11:17 AM
Asterisk at Home dial rules Matt uk.telecom.voip (UK VOIP) 3 August 4th 05 10:59 PM


All times are GMT +1. The time now is 03:50 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.Content Relevant URLs by vBSEO 2.4.0
Copyright 2004-2019 BroadbanterBanter.
The comments are property of their posters.