Psst I know this is a Dial() BUG.
Anyway i’m going to write my configs file:
SECTION 1.0
dadhi-channels.con[code]
; Span 1: WCTDM/4 “Wildcard TDM400P REV E/F Board 5” (MASTER)
;;; line="1 WCTDM/4/0 FXSKS (In use)"
signalling=fxs_ks
callerid=asreceived
group=1
context=in-fxo
channel => 1
;;; line="2 WCTDM/4/1 FXSKS (In use)"
signalling=fxs_ks
callerid=asreceived
group=1
context=in-fxo
channel => 2
[/code]
SECTION 2.0
sip.conf
[2301]
type=friend
defaultuser=2301
secret=********
context=internal-phones
callerid="Manuel Manuel" <2301>
mailbox=2301
videosupport=yes
callgroup=1
pickupgroup=1
language=en
host=dynamic
port=5060
dtmfmode=rfc2833
allow=all
limitonpeers=yes
call-limit=50
canreinvite=yes
nat=yes
subscribecontext=hints
qualify=yes
qualify=5000
qualifyfreq=10
sendrpid=yes
SECTION 3.0
extensions.conf
[internal-phones]
; Internal dial plan
exten=>_XXX,1,Answer()
exten=>_XXX,n,Dial(SIP/${EXTEN})
; Dial local numbers
exten=>_XXXXXXXXXX,1,Answer()
exten=>_XXXXXXXXXX,n,Dial(Dahdi/3/w${EXTEN})[/code]
SECTION 4.0
The LINKSYS PHONE SPA942 DIALPLAN IS:
[code](XXX|XXXXXXXXXX)
The asterisk CLI when dialing out is the next:
LOG#1
Normal call of 10 digits:
Linux*CLI>
== Using SIP RTP CoS mark 5
-- Executing [3055359999@internal-phones:1] Answer("SIP/2301-00000006", "") in new stack
-- Executing [3055359999@internal-phones:2] Dial("SIP/2301-00000006", "Dahdi/3/w3055359999") in new stack
-- Called 3/w3055359999
-- DAHDI/3-1 answered SIP/2301-00000006
-- Hanging up on 'DAHDI/3-1'
-- Hungup 'DAHDI/3-1'
== Spawn extension (internal-phones, 1, 2) exited non-zero on 'SIP/2301-00000006'
Linux*CLI>
NOTE:
This line doesn’t appear in the LOG#2[/b]
LOG#2
Calling using 11 digits:
Linux*CLI>
== Using SIP RTP CoS mark 5
-- Executing [3055359999@internal-phones:1] Answer("SIP/2301-00000007", "") in new stack
-- Executing [3055359999@internal-phones:2] Dial("SIP/2301-00000007", "Dahdi/3/w3055359999") in new stack
-- Called 3/w3055359999
-- Hanging up on 'DAHDI/3-1'
-- Hungup 'DAHDI/3-1'
== Spawn extension (internal-phones, 1, 2) exited non-zero on 'SIP/2301-00000007'
Linux*CLI>
NOTE:
At this point, I hear the REAL DIAL TONE of FXO line.
This is why because I don’t dial anywhere, I just hangup the handset.
Additional note: The number I’m dialing in LOG#1 is: 305-535-9999
Additional note: The number I’m dialing in LOG#2 is: 305-535-99996
The: 6 doesn’t appear in the LOG#2.
It doesn’t appear Because My Linksysphone is configured to dial numbers with 3 digits and 10 digits.
Check SECTION 4.0 inmediatly my phone detect 10 digits It interprete as VALID and send the Digits to Asterisk PBX. The digit #11 I sent, now is not processed by the Linksys Phone. Is now begin Processed by Asterisk.
I really don’t know why this is happening.
Test yourself in your PBX.
Note: Just dial a number dialing out via Dadhi channel and add an extra digit at the end. Example
Dial 11111111119 and you will see that the asterisk do the same like me in LOG#2.
Note: You must have configured your phone to inmediatly dial when you enter 10 digits number.
Let me know your result.