I am trying to flashhook blind transfer a incoming call to a cellphone to free up a zap channel

roger8
Posts: 4
Member Since:
2009-08-10

I have found lots of examples. Although nothing seems to be working.

I have I believe my sangoma a400 card properly configured. I am running latest trixbox.
I am in need of a way to take my

Bell canada business line (that can do transfers ) like a person who calls I can flash hook and call another person and then hang up and they are transferred freeing up my phone line.

First I did was head on over to /etc/asterisks

and edited my zapata.conf

I added some things (I dunno if the defaults where fine or not!)
rxwink=300
flash=750
wink=150
prewink=50
preflash=50
debounce=600
rxflash=1250

then I added extensions_custom.conf

[custom-call_cell]
exten => s,1,Playback(pls-wait-connect-call) ;# does not seem to even play this
exten => s,2,Flash() ;# it defiantly flashes over though
exten => s,3,senddtmf(${ARG1})
exten => s,4,Flash() ;# I thought adding another flash would help
exten => s,5,Hangup()

then I went to the Extensions section and added a Other Custom Device

made the extension 921 and where it said dial I typed in
custom-call_cell,theNumberIamTryingToGetItToDial,1

note sub in the number theNumberIamTryingToGetItToDial

It just seems no mater how I edit any of the settings when I call it from the outside world and hit 921 I hear it flash hook (Sorry I dunno what else to call this) and I sit there for a bit then it just hangs up on me.

somethings wrong! I want to be able to call in enter the extension 921 have the context custom-call_cell flash over have it send the dtmfs of the number to dial then connect me to the call..

Ugh.. is there a easier way to do this.

here are some links
http://www.freepbx.org/forum/freepbx/tips-and-tricks/sangoma-hook...
I posted here also as roger8

I could really use some input



roger8
Posts: 4
Member Since:
2009-08-10
Does anyone see anything

Does anyone see anything wrong with this.
Exited non-zero it sort of just ignors it?!

Hows my syntax?

here is the variations of the extensions_custom.conf

[custom-call_cell]
exten => _X.,1,Playback(pls-hold-while-try)
exten => _X.,n,Flash()
exten => _X.,n,senddtmf(${EXTEN})
exten => _X.,n,Hangup()

in extensions I made a othere (custom) device
and entered in dial custom-call_cell,theNumberIamTryingToGetItToDial,1


Executing [s@macro-dial:7] Dial("Zap/5-1", "custom-call_cell,theNumberIamTryingToGetItToDial,1||tr") in new stack
== Spawn extension (macro-dial, s, 7) exited non-zero on 'Zap/5-1' in macro 'dial'
== Spawn extension (macro-dial, s, 7) exited non-zero on 'Zap/5-1' in macro 'exten-vm'
== Spawn extension (macro-dial, s, 7) exited non-zero on 'Zap/5-1'
-- Executing [h@macro-dial:1] Macro("Zap/5-1", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("Zap/5-1", "w") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("Zap/5-1", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("Zap/5-1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("Zap/5-1", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("Zap/5-1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("Zap/5-1", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'Zap/5-1' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'Zap/5-1'
-- Hungup 'Zap/5-1'



SkykingOH
Posts: 9678
Member Since:
2007-12-17
I have read your posts and

I have read your posts and have no idea what you are trying to do.

You are not in a channel so not sure how the flash would work right?

Are you trying to flash a zap channel you are on to transfer 'centrex' style via the telco.

You need to slow down and lay out the call flow if you want any help.

--

Scott

aka "Skyking"



roger8
Posts: 4
Member Since:
2009-08-10
When A call comes in on a

When A call comes in on a zap channel it hits the ivr, when a extension is entered (in my case 921 ) what ever zap channel the call came in on it should (attempting to do)

play pls-hold-while-try
then
flash
then
send dtmf (the cell phone number I want it to reach)
then
(hopefully by then the call is connected and passed transfer 'centrex' style via the telco)
and a hangup is sent to clear up that zap channel

Are you telling me I have to have a certain channel set. Cause I want it to work on what ever zap channel it comes in on. They should all be able to do this.

I only showed the part where the call_cell,theNumberIamTryingToGetItToDial,1 was sent and what happened I felt the rest does not seem that important . Would you like me to post what it looks like from the start of a call to where it Hungup



SkykingOH
Posts: 9678
Member Since:
2007-12-17
I have to think about this.

I have to think about this. Flash is run on the current channel. Does the extension at least play the files with the playback function then crash?

Quote:
Would you like me to post what it looks like from the start of a call to where it Hungup

Yes, but not in forum - place it in pastebin and post a link.

--

Scott

aka "Skyking"



roger8
Posts: 4
Member Since:
2009-08-10
http://pastebin.com/m2ebbfd99

http://pastebin.com/m2ebbfd99

No it does not play the sound sample.



SkykingOH
Posts: 9678
Member Since:
2007-12-17
This is more complicated

This is more complicated than you may think. What you need to do is execute your app on the current channel.

I think misc. apps can be targets of IVR

--

Scott

aka "Skyking"



Comment viewing options

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