[Asterisk-Users] option "r" in Dial command seems not to work

Franz Wu franz.wu at qleap.com.tw
Mon Jan 2 13:34:22 MST 2006


hi list

need your opinion. thanks in advance
when calls come in from zap channel (te110p as E1/PRI) and go out to a SIP 
peer, no ringtone heard at zap channel.

sip.conf:
[from_sipproxy]
progressinband=no
type=peer
context=from-proxy
host=xxx.yyy.zzz.www
port=5060
disallow=all
allow=alaw

extensions.conf
[pri]
exten => _X.,1,Dial(SIP/${EXTEN}@xxx.yyy.zzz.www,,r)

whether using option r in Dial command or not makes no diference.
calls from sip to zap channel work well.
i traced sip packets, found that sip device did send "180 Ringing".

it looks like asterisk tells zap channel to say "there's inband information" 
but not to generate ringtone.

on * console,  "pri debug span 1" shows


< Protocol Discriminator: Q.931 (8)  len=47
< Call Ref: len= 2 (reference 320/0x140) (Originator)
< Message type: SETUP (5)
< [a1]01*CLI>
< Sending Complete (len= 1)
< [04 03 80 90 a3]
< Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer 
capability: Speech (0)
<                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode 
(16)
<                              Ext: 1  User information layer 1: A-Law (35)
< [18 03 a9 83 8a]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit, PRI Spare: 0, Exclusive 
Dchan: 0
<                        ChanSel: Reserved
<                       Ext: 1  Coding: 0   Number Specified   Channel Type: 
3
<                       Ext: 1  Channel: 10 ]
< [6c 0c 00 80 30 39 35 35 36 38 39 34 35 36]
< Calling Number (len=14) [ Ext: 0  TON: Unknown Number Type (0)  NPI: 
Unknown Number Plan (0)
<                           Presentation: Presentation permitted, user 
number not screened (0) '0955689456' ]
< [70 0b 80 30 37 30 32 30 33 34 31 30 30]
< Called Number (len=13) [ Ext: 1  TON: Unknown Number Type (0)  NPI: 
Unknown Number Plan (0) '0702034100' ]
< [7d 02 91 81]
< IE: High-layer Compatibility (len = 4)
-- Making new call for cr 320
-- Processing Q.931 Call Setup
-- Processing IE 161 (cs0, Sending Complete)
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
-- Processing IE 125 (cs0, High-layer Compatibility)
> Protocol Discriminator: Q.931 (8)  len=10
> Call Ref: len= 2 (reference 320/0x140) (Terminator)
> Message type: CALL PROCEEDING (2)
> [18 03 a9 83 8a]
> Channel ID (len= 5) [ Ext: 1  IntID: Implicit, PRI Spare: 0, Exclusive 
> Dchan: 0
>                        ChanSel: Reserved
>                       Ext: 1  Coding: 0   Number Specified   Channel Type: 
> 3
>                       Ext: 1  Channel: 10 ]
    -- Executing Dial("Zap/10-1", "SIP/0702034100 at 220.228.43.182") in new 
stack
    -- Accepting call from '0955689456' to '0702034100' on channel 0/10, 
span 1
    -- Called 0702034100 at 220.228.43.182
    -- SIP/220.228.43.182-9495 is ringing
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 320/0x140) (Terminator)
> Message type: ALERTING (1)
> [1e 02 81 88]
> Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 
> 0   Location: Private network serving the local user (1)
>                               Ext: 1  Progress Description: Inband 
> information or appropriate pattern now available. (8) ]
< Protocol Discriminator: Q.931 (8)  len=9
< Call Ref: len= 2 (reference 320/0x140) (Originator)
< Message type: DISCONNECT (69)
< [08 02 80 90]




More information about the asterisk-users mailing list