Pri-Debug-Log / Is Early Media Supported By Provider?

Home » Asterisk Users » Pri-Debug-Log / Is Early Media Supported By Provider?
Asterisk Users No Comments

Hi,

I tried to use Early Media:

exten => 1,1,Playback(demo-thanks,noanswer)
same => n,Hangup()

But when calling my extension I do not hear the voicefile – I only hear the ring tone. In the Asterisk-Log I can see, that the voicefile is played.

I got the same result when using “Progress()” in the first priority.

I tried “pri set debug on span 1” and got the following:
(I replaced originating caller id by 123456)

PRI Span: 1 < Protocol Discriminator: Q.931 (8) lenH PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 14783/0x39BF) (Sent from originator) PRI Span: 1 < Message Type: SETUP (5) PRI Span: 1 < [a1] PRI Span: 1 < Sending Complete (len= 1) PRI Span: 1 < [04 03 80 90 a3] PRI Span: 1 < Bearer Capability (len= 5) [ Ext: 1 Coding-Std: 0 Info transfer capability: Speech (0) PRI Span: 1 < Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16) PRI Span: 1 < User information layer 1: A-Law (35) PRI Span: 1 < [18 03 a9 83 8e] PRI Span: 1 < Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0 PRI Span: 1 < ChanSel: As indicated in following octets PRI Span: 1 < Ext: 1 Coding: 0 Number Specified Channel Type: 3 PRI Span: 1 < Ext: 1 Channel: 14 Type: CPE] PRI Span: 1 < [6c 0c 21 83 31 37 38 31 34 38 34 31 34 32] PRI Span: 1 < Calling Number (len) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) PRI Span: 1 < Presentation: Presentation allowed of network provided number (3) '123456' ] PRI Span: 1 < [70 0c c1 36 30 32 31 32 35 30 30 30 33 30] PRI Span: 1 < Called Number (len) [ Ext: 1 TON: Subscriber Number (4) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '1' ] PRI Span: 1 < [7d 02 91 81] PRI Span: 1 < IE: High-layer Compatibility (len = 4) PRI Span: 1 -- Making new call for cref 14783 PRI Span: 1 Received message for call 0x7f48ec00a370 on link 0x7f49201859a0 TEI/SAPI 0/0 PRI Span: 1 -- Processing Q.931 Call Setup PRI Span: 1 -- Processing IE 161 (cs0, Sending Complete) PRI Span: 1 -- Processing IE 4 (cs0, Bearer Capability) PRI Span: 1 -- Processing IE 24 (cs0, Channel Identification) PRI Span: 1 -- Processing IE 108 (cs0, Calling Party Number) PRI Span: 1 -- Processing IE 112 (cs0, Called Party Number) PRI Span: 1 -- Processing IE 125 (cs0, High-layer Compatibility) PRI Span: 1 q931.c:8281 post_handle_q931_message: Call 14783 enters state 6 (Call Present). Hold state: Idle Span 1: Processing event PRI_EVENT_RING(5) PRI Span: 1 q931.c:5477 q931_call_proceeding: Call 14783 enters state 9 (Incoming Call Proceeding). Hold state: Idle PRI Span: 1 PRI Span: 1 > DL-DATA request PRI Span: 1 > Protocol Discriminator: Q.931 (8) len
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 14783/0x39BF) (Sent to originator)
PRI Span: 1 > Message Type: CALL PROCEEDING (2)
PRI Span: 1 TEI=0 Transmitting N(S)p, window is open V(A)p K=7
PRI Span: 1
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 14783/0x39BF) (Sent to originator)
PRI Span: 1 > Message Type: CALL PROCEEDING (2)
PRI Span: 1 > [18 03 a9 83 8e]
PRI Span: 1 > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI)
Spare: 0 Exclusive Dchan: 0
PRI Span: 1 > ChanSel: As indicated in following octets PRI Span: 1 > Ext: 1 Coding: 0 Number Specified
Channel Type: 3
PRI Span: 1 > Ext: 1 Channel: 14 Type: CPE]
— Accepting call from ‘123456’ to ‘1’ on channel 0/14, span 1
— Executing [1@port1:1] NoOp(“DAHDI/i1/123456-245”, “”) in new stack
— Executing [1@port1:2] Playback(“DAHDI/i1/123456-245”,
“demo-thanks,noanswer”) in new stack
Playing ‘demo-thanks.gsm’ (language
‘de_female’)
— Executing [1@port1:3] Hangup(“DAHDI/i1/123456-245”, “”) in new stack
== Spawn extension (port1, 1, 3) exited non-zero on
‘DAHDI/i1/123456-245’
PRI Span: 1 q931.c:6837 q931_hangup: Hangup other cref:14783
PRI Span: 1 q931.c:6594 __q931_hangup: ourstate Incoming Call Proceeding, peerstate Outgoing Call Proceeding, hold-state Idle PRI Span: 1 q931.c:5783 q931_disconnect: Call 14783 enters state 11
(Disconnect Request). Hold state: Idle PRI Span: 1
PRI Span: 1 > DL-DATA request PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=9
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 14783/0x39BF) (Sent to originator)
PRI Span: 1 > Message Type: DISCONNECT (69)
PRI Span: 1 TEI=0 Transmitting N(S)q, window is open V(A)q K=7
PRI Span: 1
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=9
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 14783/0x39BF) (Sent to originator)
PRI Span: 1 > Message Type: DISCONNECT (69)
PRI Span: 1 > [08 02 81 90]
PRI Span: 1 > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0)
Spare: 0 Location: Private network serving the local user (1)
PRI Span: 1 > Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
— Hungup ‘DAHDI/i1/123456-245’

Can you see, if my provider supports Early Media? Or do I have to ask the tech department there?

Ubuntu 64 bit kernel: 3.2.0-38-generic Asterisk: 11.2.1
DAHDI: 2.6.1
Libpri: 1.4.12
Sangoma A104 (4 port E1, germany)
Wanpipe Driver: 3.5.28

Best regards
-Thorsten-