Hi there, I am currently running Asterisk 1.8.24.0 with Dahdi drivers DAHDI Version: 2.7.0.1.
I am trying to get early media working, Sip to Sip is fine but when a call comes in via ISDN no Audio is heard, even though asterisk show the media is being played.
Here is my settings
chan_dahdi.conf
[channels]
language=en
usecallerid=yes
cidsignalling=v23
cidstart=polarity
nationalprefix=44
internationalprefix=+
callprogress=yes
progzone=uk
sip.conf
[general]
directmedia=no
dtmfmode=rfc2833
rtptimeout=600
jbenable=yes
prematuremedia=yes
progressinband=yes
extension.conf
exten => _1510,1,progress()
exten => _151,2,Wait(1)
exten => _151,3,Playback(tt-monkeys,noanswer)
exten => _151,4,Hangup()nf
pri dedug
PRI Span: 8
PRI Span: 8 < Protocol Discriminator: Q.931 (8) len=40
PRI Span: 8 < TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator)
PRI Span: 8 < Message Type: SETUP (5)
PRI Span: 8 < [a1]
PRI Span: 8 < Sending Complete (len= 1)
PRI Span: 8 < [04 03 90 90 a3]
PRI Span: 8 < Bearer Capability (len= 5) [ Ext: 1 Coding-Std: 0 Info transfer capability: 3.1kHz audio (16)
PRI Span: 8 < Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
PRI Span: 8 < User information layer 1: A-Law (35)
PRI Span: 8 < [18 03 a9 83 81]
PRI Span: 8 < Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0
PRI Span: 8 < ChanSel: As indicated in following octets
PRI Span: 8 < Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 8 < Ext: 1 Channel: 1 Type: CPE]
PRI Span: 8 < [1e 02 85 81]
PRI Span: 8 < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the remote user (5)
PRI Span: 8 < Ext: 1 Progress Description: Call is not end-to-end ISDN; further call progress information may be available inband. (1) ]
PRI Span: 8 < [6c 0c 21 83 37 39 31 37 33 30 31 34 32 36]
PRI Span: 8 < Calling Party Number (len=14) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
PRI Span: 8 < Presentation: Presentation allowed, Network provided (3) '7917301426' ]
PRI Span: 8 < [70 04 80 31 35 31]
PRI Span: 8 < Called Party Number (len= 6) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) '151' ]
PRI Span: 8 -- Making new call for cref 1
PRI Span: 8 Received message for call 0x2b8ed81194b0 on link 0x2b8eb0035600 TEI/SAPI 0/0
PRI Span: 8 -- Processing Q.931 Call Setup
PRI Span: 8 -- Processing IE 161 (cs0, Sending Complete)
PRI Span: 8 -- Processing IE 4 (cs0, Bearer Capability)
PRI Span: 8 -- Processing IE 24 (cs0, Channel ID)
PRI Span: 8 -- Processing IE 30 (cs0, Progress Indicator)
PRI Span: 8 -- Processing IE 108 (cs0, Calling Party Number)
PRI Span: 8 -- Processing IE 112 (cs0, Called Party Number)
PRI Span: 8 q931.c:8646 post_handle_q931_message: Call 1 enters state 6 (Call Present). Hold state: Idle
Span 8: Processing event PRI_EVENT_RING
PRI Span: 8 q931.c:5704 q931_call_proceeding: Call 1 enters state 9 (Incoming Call Proceeding). Hold state: Idle
PRI Span: 8
PRI Span: 8 > DL-DATA request
PRI Span: 8 > Protocol Discriminator: Q.931 (8) len=10
PRI Span: 8 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator)
PRI Span: 8 > Message Type: CALL PROCEEDING (2)
PRI Span: 8 TEI=0 Transmitting N(S)=97, window is open V(A)=97 K=7
PRI Span: 8
PRI Span: 8 > Protocol Discriminator: Q.931 (8) len=10
PRI Span: 8 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator)
PRI Span: 8 > Message Type: CALL PROCEEDING (2)
PRI Span: 8 > [18 03 a9 83 81]
PRI Span: 8 > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0
PRI Span: 8 > ChanSel: As indicated in following octets
PRI Span: 8 > Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 8 > Ext: 1 Channel: 1 Type: CPE]
-- Accepting call from 'Mymobile' to '151' on channel 0/1, span 8
-- Executing [151@PBX-IN:1] Progress("DAHDI/i8/Mymobile-af3", "") in new stack
PRI Span: 8
PRI Span: 8 > DL-DATA request
PRI Span: 8 > Protocol Discriminator: Q.931 (8) len=9
PRI Span: 8 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator)
PRI Span: 8 > Message Type: PROGRESS (3)
PRI Span: 8 TEI=0 Transmitting N(S)=98, window is open V(A)=97 K=7
PRI Span: 8
PRI Span: 8 > Protocol Discriminator: Q.931 (8) len=9
PRI Span: 8 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator)
PRI Span: 8 > Message Type: PROGRESS (3)
PRI Span: 8 > [1e 02 81 88]
PRI Span: 8 > Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1)
PRI Span: 8 > Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ]
-- Executing [151@PBX-IN:2] Wait("DAHDI/i8/Mymobile-af3", "1") in new stack
-- Executing [151@PBX-IN:3] Playback("DAHDI/i8/Mymobile-af3", "tt-monkeys,noanswer") in new stack
-- <DAHDI/i8/Mymobile-af3> Playing 'tt-monkeys.gsm' (language 'en')
PRI Span: 8
PRI Span: 8 < Protocol Discriminator: Q.931 (8) len=13
PRI Span: 8 < TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator)
PRI Span: 8 < Message Type: DISCONNECT (69)
PRI Span: 8 < [08 02 80 90]
PRI Span: 8 < Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: User (0)
PRI Span: 8 < Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
PRI Span: 8 < [1e 02 81 88]
PRI Span: 8 < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1)
PRI Span: 8 < Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ]
PRI Span: 8 Received message for call 0x2b8ed81194b0 on link 0x2b8eb0035600 TEI/SAPI 0/0
PRI Span: 8 -- Processing IE 8 (cs0, Cause)
PRI Span: 8 -- Processing IE 30 (cs0, Progress Indicator)
PRI Span: 8 -- Found active call: 0x2b8ed81194b0 cref:1
PRI Span: 8 q931.c:9084 post_handle_q931_message: Call 1 enters state 12 (Disconnect Indication). Hold state: Idle
Span 8: Processing event PRI_EVENT_HANGUP_REQ
-- Span 8: Channel 0/1 got hangup request, cause 16
== Spawn extension (PBX-IN, 151, 3) exited non-zero on 'DAHDI/i8/Mymobile-af3'
PRI Span: 8 q931.c:7135 q931_hangup: Hangup other cref:1
PRI Span: 8 q931.c:6892 __q931_hangup: ourstate Disconnect Indication, peerstate Disconnect Request, hold-state Idle
PRI Span: 8 q931.c:5930 q931_release: Call 1 enters state 19 (Release Request). Hold state: Idle
PRI Span: 8
PRI Span: 8 > DL-DATA request
PRI Span: 8 > Protocol Discriminator: Q.931 (8) len=9
PRI Span: 8 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator)
PRI Span: 8 > Message Type: RELEASE (77)
PRI Span: 8 TEI=0 Transmitting N(S)=99, window is open V(A)=99 K=7
PRI Span: 8
PRI Span: 8 > Protocol Discriminator: Q.931 (8) len=9
PRI Span: 8 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator)
PRI Span: 8 > Message Type: RELEASE (77)
PRI Span: 8 > [08 02 81 90]
PRI Span: 8 > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
PRI Span: 8 > Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
-- Hungup 'DAHDI/i8/Mymobile-af3'
PRI Span: 8
PRI Span: 8 < Protocol Discriminator: Q.931 (8) len=5
PRI Span: 8 < TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator)
PRI Span: 8 < Message Type: RELEASE COMPLETE (90)
PRI Span: 8 Received message for call 0x2b8ed81194b0 on link 0x2b8eb0035600 TEI/SAPI 0/0
PRI Span: 8 q931.c:8944 post_handle_q931_message: Call 1 enters state 0 (Null). Hold state: Idle
PRI Span: 8 q931.c:7135 q931_hangup: Hangup other cref:1
PRI Span: 8 q931.c:6892 __q931_hangup: ourstate Null, peerstate Null, hold-state Idle
PRI Span: 8 Destroying call 0x2b8ed81194b0, ourstate Null, peerstate Null, hold-state Idle
Span 8: Processing event PRI_EVENT_HANGUP_ACK
I have placed calls from mobiles and landlines. I get the same result as the debug, media is played but it cannot be heard.