Calling card and dial plan or custom extension??

Sorno
Posts: 1
Member Since:
2007-03-28

I am trying to automatically dial a calling card number anytime an international call is being placed.
But only for international calls.

So user can simply dial 9|011(country code)(number) and the system will first dial the 800 calling card number, pause and then dial the international number (excluding the 011)

Can I do this in the dialplan, or will I need a custom extension?

Thanks
Mike



ledmik
Posts: 2
Member Since:
2006-09-08
Outbound Routes - Can be

Outbound Routes - Can be added to an existing route if you will be using the same trunk(s).
Dial Pattern: "9|011."

Trunks - Add to any trunks the above route uses.
Dial Rule: "18005551212wwww1234678www9876www+011."

This will dial the calling card 800 number (18005551212), wait 2 seconds, dial your card number (12345678), wait 1-1/2 seconds, dial your pin # (9876), wait 1-1/2 seconds, then dial everything after the initial 9.
Each w should create a half second pause. The period (.) after 011 on both the route and trunk is a wildcard that will match any/all numbers dialed.



voipman
Posts: 127
Member Since:
2006-06-19
This is what I did and it

This is what I did and it didn't work, I got all circuits busy now:

Create new custom trunk, dial string at the bottom:
from-internal/1510000000ww3wwww324324ww+$outnum$



SkykingOH
Posts: 9675
Member Since:
2007-12-17
What kind of trunks are you

What kind of trunks are you using, replace from-internal with the technology type an trunk number IE:

ZAP/g0//1510000000ww3wwww324324ww$outnum$

Reference for all things dial:
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Dial

--

Scott

aka "Skyking"



voipman
Posts: 127
Member Since:
2006-06-19
I am using custom trunk in

I am using custom trunk in the trunk option within trixbox....



SkykingOH
Posts: 9675
Member Since:
2007-12-17
That's not what I asked.

That's not what I asked. What kind of trunk do you want to send the call out?

--

Scott

aka "Skyking"



voipman
Posts: 127
Member Since:
2006-06-19
I'm using sip to call out...

I'm using sip to call out...



SkykingOH
Posts: 9675
Member Since:
2007-12-17
The command would then

The command would then be:

SIP/trunk/1510000000ww3wwww324324ww$outnum$

Where trunk=trunkname

--

Scott

aka "Skyking"



voipman
Posts: 127
Member Since:
2006-06-19
Right, but it doesn't do the

Right, but it doesn't do the wait function...



SkykingOH
Posts: 9675
Member Since:
2007-12-17
Yeah, I did not think that

Yeah, I did not think that through. That's a ZAP function. I think there is a way to send DTMF from an Asterisk dialplan extension, it's tricky because you have to use a maco in the dial command to send the digits.

exten => 1234.,1,Dial(SIP/mytrunk/2025551212,M(sendccdigits)tr)

[macro-sendccdigits]
exten => s,1,Wait(1) ; wait 1 second
exten => s,n,SendDTMF(---PIN---); send the PIN
exten => s,n,Wait(4) ; wait 4 seconds for the  time remaining on card
exten => s,n,SendDTMF(cardnum); send the number

Tweak it to your liking, place in extensions_custom.confg, reload the dialplan then dial 1234 and you should be off to the races.

--

Scott

aka "Skyking"



gerbelhunter
Posts: 50
Member Since:
2009-05-15
Would this work...

in a custom extension like this [IAX2/other-trixbox/*outbound variable*] where *outbound variable* is the number that has been dialled?

I've been trying to get this working by putting the above command in the 'Dial' section of a 'Custom Extension', but I don't know if it's possible and what I should put in place of *outbound variable*

I'm assuming this is a similar problem, apologies if it's not.

Thanks,

Gerbelhunter



SkykingOH
Posts: 9675
Member Since:
2007-12-17
The format is

The format is IAX2/peername/digits_to_send

Where peername=trunk name and digits_to_send is the current extension (could be a remote extension or an e.164 formatted telephone number)

--

Scott

aka "Skyking"



gerbelhunter
Posts: 50
Member Since:
2009-05-15
But can the digits_to_send

But can the digits_to_send part be set as a wild card? For instance any number beginning with 07 takes this route?



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.