Unable to transfer call using Dial method

Hello.
My problem is as the title says that I cannot transfer calls to external numbers (mobile for example) using the Dial method (or make external calls whatsoever). I receive incoming calls without a problem. I have a working dialplan which plays a menu recording and by pressing 6 the caller should be able to be forwarded to an external number, which does not happen.
Here is the output I get from the Asterisk cgi
(I’ve changed the number which I dial to connect with Asterisk with card_number, the caller number to caller_number and the desired external number to external_number)

-- Accepting call from 'caller_number' to 'card_number' on channel 0/1, span 3 -- Executing [card_number@eiserxomeni:1] Goto("DAHDI/i3/caller_number-b", "main_menu,s,1") in new stack -- Goto (main_menu,s,1) -- Executing [s@main_menu:1] Verbose("DAHDI/i3/caller_number-b", "1, Caller "" <caller_number> has entered the auto attendant") in new stack Caller "" <caller_number> has entered the auto attendant -- Executing [s@main_menu:2] Answer("DAHDI/i3/caller_number-b", "") in new stack -- Executing [s@main_menu:3] Set("DAHDI/i3/caller_number-b", "TIMEOUT(digit)=2") in new stack -- Digit timeout set to 2.000 -- Executing [s@main_menu:4] Wait("DAHDI/i3/caller_number-b", "1") in new stack -- Executing [s@main_menu:5] BackGround("DAHDI/i3/caller_number-b", "file0801") in new stack [2012-12-21 14:26:37] WARNING[25620]: format_wav.c:94 check_header_fmt: Not a wav file 49 [2012-12-21 14:26:37] WARNING[25620]: file.c:388 fn_wrapper: Unable to open format wav -- <DAHDI/i3/caller_number-b> Playing 'file0801.slin' (language 'gr') -- Executing [6@main_menu:1] Verbose("DAHDI/i3/caller_number-b", "1, Caller "" <caller_number> has pressed 6") in new stack Caller "" <caller_number> has pressed 6 -- Executing [6@main_menu:2] Dial("DAHDI/i3/caller_number-b", "DAHDI/i3/external_number") in new stack -- Requested transfer capability: 0x00 - SPEECH -- Called DAHDI/i3/external_number -- DAHDI/i3/external_number-c is proceeding passing it to DAHDI/i3/caller_number-b -- Span 3: Channel 0/2 got hangup request, cause 21 -- DAHDI/i3/external_number-c is circuit-busy -- Hungup 'DAHDI/i3/external_number-c' == Everyone is busy/congested at this time (1:0/1/0) -- Executing [6@main_menu:3] Hangup("DAHDI/i3/caller_number-b", "") in new stack == Spawn extension (main_menu, 6, 3) exited non-zero on 'DAHDI/i3/caller_number-b' -- Hungup 'DAHDI/i3/caller_number-b'
and here is the extensive output with debug on span 3

PRI Span: 3 > [18 01 89] PRI Span: 3 > Channel ID (len= 3) [ Ext: 1 IntID: Implicit BRI Spare: 0 Exclusive Dchan: 0 PRI Span: 3 > ChanSel: B1 channel PRI Span: 3 > ] PRI Span: 3 q931.c:5660 q931_connect: Call 101 enters state 8 (Connect Request). Hold state: Idle PRI Span: 3 PRI Span: 3 > DL-DATA request PRI Span: 3 > Protocol Discriminator: Q.931 (8) len=11 PRI Span: 3 > TEI=87 Call Ref: len= 1 (reference 101/0x65) (Sent to originator) PRI Span: 3 > Message Type: CONNECT (7) PRI Span: 3 TEI=87 Just queued I-frame due to window shut -- Executing [s@main_menu:3] Set("DAHDI/i3/caller_number-f", "TIMEOUT(digit)=2") in new stack -- Digit timeout set to 2.000 -- Executing [s@main_menu:4] Wait("DAHDI/i3/caller_number-f", "1") in new stack PRI Span: 3 TEI=87 Transmitting N(S)=1, window is open V(A)=1 K=1 PRI Span: 3 PRI Span: 3 > Protocol Discriminator: Q.931 (8) len=11 PRI Span: 3 > TEI=87 Call Ref: len= 1 (reference 101/0x65) (Sent to originator) PRI Span: 3 > Message Type: CONNECT (7) PRI Span: 3 > [18 01 89] PRI Span: 3 > Channel ID (len= 3) [ Ext: 1 IntID: Implicit BRI Spare: 0 Exclusive Dchan: 0 PRI Span: 3 > ChanSel: B1 channel PRI Span: 3 > ] PRI Span: 3 > [1e 02 81 82] PRI Span: 3 > Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1) PRI Span: 3 > Ext: 1 Progress Description: Called equipment is non-ISDN. (2) ] PRI Span: 3 PRI Span: 3 < Protocol Discriminator: Q.931 (8) len=4 PRI Span: 3 < TEI=87 Call Ref: len= 1 (reference 101/0x65) (Sent from originator) PRI Span: 3 < Message Type: CONNECT ACKNOWLEDGE (15) PRI Span: 3 Received message for call 0x9690a00 on link 0x9479c20 TEI/SAPI 87/0 PRI Span: 3 q931.c:8484 post_handle_q931_message: Call 101 enters state 10 (Active). Hold state: Idle Span 3: Processing event PRI_EVENT_CONNECT_ACK -- Executing [s@main_menu:5] BackGround("DAHDI/i3/caller_number-f", "file0801") in new stack [2012-12-21 15:07:45] WARNING[25709]: format_wav.c:94 check_header_fmt: Not a wav file 49 [2012-12-21 15:07:45] WARNING[25709]: file.c:388 fn_wrapper: Unable to open format wav -- <DAHDI/i3/caller_number-f> Playing 'file0801.slin' (language 'gr') -- Executing [6@main_menu:1] Verbose("DAHDI/i3/caller_number-f", "1, Caller "" <caller_number> has pressed 6") in new stack Caller "" <caller_number> has pressed 6 -- Executing [6@main_menu:2] Dial("DAHDI/i3/caller_number-f", "DAHDI/i3/external_number") in new stack PRI Span: 3 -- Making new call for cref 32776 -- Requested transfer capability: 0x00 - SPEECH PRI Span: 3 PRI Span: 3 > DL-DATA request PRI Span: 3 > Protocol Discriminator: Q.931 (8) len=39 PRI Span: 3 > TEI=87 Call Ref: len= 1 (reference 8/0x8) (Sent from originator) PRI Span: 3 > Message Type: SETUP (5) PRI Span: 3 TEI=87 Transmitting N(S)=2, window is open V(A)=2 K=1 PRI Span: 3 PRI Span: 3 > Protocol Discriminator: Q.931 (8) len=39 PRI Span: 3 > TEI=87 Call Ref: len= 1 (reference 8/0x8) (Sent from originator) PRI Span: 3 > Message Type: SETUP (5) PRI Span: 3 > [04 03 80 90 a3] PRI Span: 3 > Bearer Capability (len= 5) [ Ext: 1 Coding-Std: 0 Info transfer capability: Speech (0) PRI Span: 3 > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16) PRI Span: 3 > User information layer 1: A-Law (35) PRI Span: 3 > [18 01 82] PRI Span: 3 > Channel ID (len= 3) [ Ext: 1 IntID: Implicit BRI Spare: 0 Preferred Dchan: 0 PRI Span: 3 > ChanSel: B2 channel PRI Span: 3 > ] PRI Span: 3 > [6c 0c 21 83 32 31 30 36 37 34 33 32 34 33] PRI Span: 3 > Calling Number (len=14) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) PRI Span: 3 > Presentation: Presentation allowed of network provided number (3) 'caller_number' ] PRI Span: 3 > [70 0b 80 36 39 37 39 30 35 38 36 30 31] PRI Span: 3 > Called Number (len=13) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) 'external_number' ] PRI Span: 3 q931.c:6036 q931_setup: Call 32776 enters state 1 (Call Initiated). Hold state: Idle -- Called DAHDI/i3/external_number PRI Span: 3 PRI Span: 3 < Protocol Discriminator: Q.931 (8) len=7 PRI Span: 3 < TEI=87 Call Ref: len= 1 (reference 8/0x8) (Sent to originator) PRI Span: 3 < Message Type: CALL PROCEEDING (2) PRI Span: 3 < [18 01 8a] PRI Span: 3 < Channel ID (len= 3) [ Ext: 1 IntID: Implicit BRI Spare: 0 Exclusive Dchan: 0 PRI Span: 3 < ChanSel: B2 channel PRI Span: 3 < ] PRI Span: 3 Received message for call 0x973b3c0 on link 0x9479c20 TEI/SAPI 87/0 PRI Span: 3 -- Processing IE 24 (cs0, Channel Identification) PRI Span: 3 q931.c:8454 post_handle_q931_message: Call 32776 enters state 3 (Outgoing Call Proceeding). Hold state: Idle Span 3: Processing event PRI_EVENT_PROCEEDING -- DAHDI/i3/external_number-10 is proceeding passing it to DAHDI/i3/caller_number-f PRI Span: 3 PRI Span: 3 < Protocol Discriminator: Q.931 (8) len=38 PRI Span: 3 < TEI=87 Call Ref: len= 1 (reference 8/0x8) (Sent to originator) PRI Span: 3 < Message Type: DISCONNECT (69) PRI Span: 3 < [08 02 82 95] PRI Span: 3 < Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Public network serving the local user (2) PRI Span: 3 < Ext: 1 Cause: Call Rejected (21), class = Normal Event (1) ] PRI Span: 3 < [1e 02 82 88] PRI Span: 3 < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Public network serving the local user (2) PRI Span: 3 < Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ] PRI Span: 3 < [28 18 43 41 4c 4c 53 20 54 45 4d 50 4f 52 41 52 49 4c 59 20 42 41 52 52 45 44] PRI Span: 3 < Display (len=24) [ CALLS TEMPORARILY BARRED ] PRI Span: 3 Received message for call 0x973b3c0 on link 0x9479c20 TEI/SAPI 87/0 PRI Span: 3 -- Processing IE 8 (cs0, Cause) PRI Span: 3 -- Processing IE 30 (cs0, Progress Indicator) PRI Span: 3 -- Processing IE 40 (cs0, Display) PRI Span: 3 -- Found active call: 0x973b3c0 cref:32776 PRI Span: 3 q931.c:8707 post_handle_q931_message: Call 32776 enters state 12 (Disconnect Indication). Hold state: Idle Span 3: Processing event PRI_EVENT_HANGUP_REQ -- Span 3: Channel 0/2 got hangup request, cause 21 -- DAHDI/i3/external_number-10 is circuit-busy PRI Span: 3 q931.c:6837 q931_hangup: Hangup other cref:32776 PRI Span: 3 q931.c:6594 __q931_hangup: ourstate Disconnect Indication, peerstate Disconnect Request, hold-state Idle PRI Span: 3 q931.c:5703 q931_release: Call 32776 enters state 19 (Release Request). Hold state: Idle PRI Span: 3 PRI Span: 3 > DL-DATA request PRI Span: 3 > Protocol Discriminator: Q.931 (8) len=8 PRI Span: 3 > TEI=87 Call Ref: len= 1 (reference 8/0x8) (Sent from originator) PRI Span: 3 > Message Type: RELEASE (77) PRI Span: 3 TEI=87 Transmitting N(S)=3, window is open V(A)=3 K=1 PRI Span: 3 PRI Span: 3 > Protocol Discriminator: Q.931 (8) len=8 PRI Span: 3 > TEI=87 Call Ref: len= 1 (reference 8/0x8) (Sent from originator) PRI Span: 3 > Message Type: RELEASE (77) PRI Span: 3 > [08 02 81 95] PRI Span: 3 > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1) PRI Span: 3 > Ext: 1 Cause: Call Rejected (21), class = Normal Event (1) ] -- Hungup 'DAHDI/i3/external_number-10' == Everyone is busy/congested at this time (1:0/1/0) -- Executing [6@main_menu:3] Hangup("DAHDI/i3/caller_number-f", "") in new stack == Spawn extension (main_menu, 6, 3) exited non-zero on 'DAHDI/i3/caller_number-f' PRI Span: 3 q931.c:6837 q931_hangup: Hangup other cref:101 PRI Span: 3 q931.c:6594 __q931_hangup: ourstate Active, peerstate Active, hold-state Idle PRI Span: 3 q931.c:5783 q931_disconnect: Call 101 enters state 11 (Disconnect Request). Hold state: Idle PRI Span: 3 PRI Span: 3 > DL-DATA request PRI Span: 3 > Protocol Discriminator: Q.931 (8) len=8 PRI Span: 3 > TEI=87 Call Ref: len= 1 (reference 101/0x65) (Sent to originator) PRI Span: 3 > Message Type: DISCONNECT (69) PRI Span: 3 TEI=87 Just queued I-frame due to window shut -- Hungup 'DAHDI/i3/caller_number-f' PRI Span: 3 TEI=87 Transmitting N(S)=4, window is open V(A)=4 K=1 PRI Span: 3 PRI Span: 3 > Protocol Discriminator: Q.931 (8) len=8 PRI Span: 3 > TEI=87 Call Ref: len= 1 (reference 101/0x65) (Sent to originator) PRI Span: 3 > Message Type: DISCONNECT (69) PRI Span: 3 > [08 02 81 95] PRI Span: 3 > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1) PRI Span: 3 > Ext: 1 Cause: Call Rejected (21), class = Normal Event (1) ] PRI Span: 3 PRI Span: 3 < Protocol Discriminator: Q.931 (8) len=4 PRI Span: 3 < TEI=87 Call Ref: len= 1 (reference 8/0x8) (Sent to originator) PRI Span: 3 < Message Type: RELEASE COMPLETE (90) PRI Span: 3 Received message for call 0x973b3c0 on link 0x9479c20 TEI/SAPI 87/0 PRI Span: 3 q931.c:8567 post_handle_q931_message: Call 32776 enters state 0 (Null). Hold state: Idle PRI Span: 3 q931.c:6837 q931_hangup: Hangup other cref:32776 PRI Span: 3 q931.c:6594 __q931_hangup: ourstate Null, peerstate Null, hold-state Idle PRI Span: 3 Destroying call 0x973b3c0, ourstate Null, peerstate Null, hold-state Idle Span 3: Processing event PRI_EVENT_HANGUP_ACK PRI Span: 3 PRI Span: 3 < Protocol Discriminator: Q.931 (8) len=4 PRI Span: 3 < TEI=87 Call Ref: len= 1 (reference 101/0x65) (Sent from originator) PRI Span: 3 < Message Type: RELEASE (77) PRI Span: 3 Received message for call 0x9690a00 on link 0x9479c20 TEI/SAPI 87/0 PRI Span: 3 q931.c:8620 post_handle_q931_message: Call 101 enters state 0 (Null). Hold state: Idle Span 3: Processing event PRI_EVENT_HANGUP PRI Span: 3 q931.c:6837 q931_hangup: Hangup other cref:101 PRI Span: 3 q931.c:6594 __q931_hangup: ourstate Null, peerstate Release Request, hold-state Idle PRI Span: 3 PRI Span: 3 > DL-DATA request PRI Span: 3 > Protocol Discriminator: Q.931 (8) len=8 PRI Span: 3 > TEI=87 Call Ref: len= 1 (reference 101/0x65) (Sent to originator) PRI Span: 3 > Message Type: RELEASE COMPLETE (90) PRI Span: 3 TEI=87 Transmitting N(S)=5, window is open V(A)=5 K=1 PRI Span: 3 PRI Span: 3 > Protocol Discriminator: Q.931 (8) len=8 PRI Span: 3 > TEI=87 Call Ref: len= 1 (reference 101/0x65) (Sent to originator) PRI Span: 3 > Message Type: RELEASE COMPLETE (90) PRI Span: 3 > [08 02 81 90] PRI Span: 3 > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1) PRI Span: 3 > Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ] PRI Span: 3 q931.c:6837 q931_hangup: Hangup other cref:101 PRI Span: 3 q931.c:6594 __q931_hangup: ourstate Null, peerstate Null, hold-state Idle PRI Span: 3 Destroying call 0x9690a00, ourstate Null, peerstate Null, hold-state Idle
Here is the dialplan in the extensions.conf

[code][eiserxomeni]
exten => mynumber,1,Goto(main_menu,s,1)

[main_menu]
exten => s,1,Verbose(1, Caller ${CALLERID(all)} has entered the auto attendant)
same => n,Answer()
same => n,Set(TIMEOUT(digit)=2)
same => n,Wait(1)
same => n(mainmenu),Background(file0801)
same => n,WaitExten(4)
same => n(2ndtry),Background(file0801)
same => n,WaitExten(4)
same => n,Goto(9,1)

exten => 1,1,Verbose(1, Caller ${CALLERID(all)} has pressed 1)
same => n,Playback(is-now-being-recorded)
same => n,Record(asterisk-recording%d:wav)
same => n,Wait(3)
same => n,Playback(recorded)
same => n,Goto(2,1)

exten => 6,1,Verbose(1, Caller ${CALLERID(all)} has pressed 6)
same => n,dial(DAHDI/i3/externalnumber)
same => n,Hangup()

exten => 9,1,Verbose(1, Caller ${CALLERID(all)} hanging up)
same => n,Hangup()[/code]
Here is the chan_dahdi.conf

[code];
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

language=gr
context=LocalSets
signalling=fxs_ks
rxwink=300
; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes
busydetect=yes
busycount=10
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
;faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

#include dahdi-channels.conf

;Include AMP configs
#include chan_dahdi_additional.conf

[/code]
And here is the dahdi-channels.conf, from which Span 3 and 6 are being used (I have connected one cable from the ISDN box to the card) (with dahdi tools I get OK for the 3, yellow alarm for 6 and red for all the others)

[code]; Span 1: B4/0/1 “B4XXP (PCI) Card 0 Span 1” AMI/CCS RED
group=0,11
context=LocalSets
overlapdial=yes
switchtype = euroisdn
signalling = bri_cpe
channel => 1-2
context = default
group = 63

; Span 2: B4/0/2 “B4XXP (PCI) Card 0 Span 2” AMI/CCS RED
group=0,12
context=from-openvox
overlapdial=yes
switchtype = euroisdn
signalling = bri_cpe
channel => 4-5
context = default
group = 63

; Span 3: B4/0/3 “B4XXP (PCI) Card 0 Span 3” (MASTER) AMI/CCS RED <------------
group=0,13
context=eiserxomeni
overlapdial=yes
switchtype = ni1
signalling = bri_cpe_ptmp
channel => 7-8

; Span 4: B4/0/4 “B4XXP (PCI) Card 0 Span 4” AMI/CCS RED
group=0,14
context=from-openvox
overlapdial=yes
switchtype = euroisdn
signalling = bri_cpe
channel => 10-11
context = default
group = 63

; Span 5: B4/0/5 “B4XXP (PCI) Card 0 Span 5” AMI/CCS RED
group=0,15
context=from-openvox
overlapdial=yes
switchtype = euroisdn
signalling = bri_cpe
channel => 13-14
context = default
group = 63

; Span 6: B4/0/6 “B4XXP (PCI) Card 0 Span 6” AMI/CCS RED <------------
group=1
context=eiserxomeni
overlapdial=yes
switchtype = ni1
signalling = bri_cpe_ptmp
channel => 16-17

; Span 7: B4/0/7 “B4XXP (PCI) Card 0 Span 7” AMI/CCS RED
group=0,17
context=from-openvox
overlapdial=yes
switchtype = euroisdn
signalling = bri_cpe
channel => 19-20
context = default
group = 63

; Span 8: B4/0/8 “B4XXP (PCI) Card 0 Span 8” AMI/CCS RED
group=0,18
context=LocalSets
overlapdial=yes
switchtype = euroisdn
signalling = bri_cpe
channel => 22-23
context = default
group = 63
[/code]

I have installed Asterisk 1.8.17.0 on a CentOS 5.8 system with an OpenVox B800p card. I am using DAHDI drivers and FreePBX ui.

Any help will be appreciaated :cry: :cry:

You got CALLS TEMPORARILY BARRED as a narrative error. You will have to ask the service provider whether that means at your end or at the destination end.

You are sending an NANP national format number but with type of number set to unknown. I would normally expect TON unknown to require the initial 1 (assuming US/Canada), if accepted at all.

Also note that the numbers have not been properly redacted.

Transfer implies redirection. You will only actually get relaying (tandem exchange).

Thank you for your answer! I should have mentioned that I am new to all this. I didn’t get more than half of what you wrote. :blush:

Can’t I find out somehow if it’s an error on my end or the provider’s end? I don’t know what I would say to them.

Were should I set the type of number? The server is located in Greece.

You mean that I failed to change the actual dialed numbers? I used the replace function of notepad++ before posting here.

What I want is to have a menu recorded and with the press of a button the caller to be able to talk to someone on a different city who has an ordinary phone without the caller hanging up and redialing. I don’t know if it’s called call transfer, call forwarding or tandem exchange. :blush:

I’m not used to reading ISDN traces, but it looks to me as though the central office has sent a custom error message, in plain text, rather than a coded error. That probably means that, unless you know what is being used by hte PTT, you cannot be sure what the error means. As such, it is probably best to get the PTT to tell you what that message means.

For type of number, see chan_dahdi.conf.sample, starting from “PRI Dialplan”.

If you are not in the North American Number Plan area, the rules for national numbers may differ from those in the US, and the national-number-dialed prefix is probably not 1.

Your caller ID has type of number set to national, and starts 210, for a total of 10 digits. Your outgoing number is given as of unknown type and starts 697, for a total of 10 digits. The length and initial digit suggests it is actually a national number. In the UK, one would expect such a number to be prefixed by 0, if not flagged as a national number. In the US, one would expect it to be prefixed by 1. I don’t know what the rules are for Greece. Some central office exchanges may guess the format from the number length.

Ordinary phone users must include the prefix, but ISDN, with a national number type, must not have the prefix.

The numbers are in the hex version of the signaling packets. Knowing the actual length of the number and the initial digit is probably important.

The other thing that could be going wrong here is that the central office could be rejecting the call completely because the caller ID doesn’t belong to you. Normally you would expect it to replace the caller ID with your own.