[Asterisk-Users] missing first digit when dial extension / dtmfproblem ???

Joseph syscon at interbaun.com
Thu Apr 28 20:19:35 MST 2005


On Fri, 2005-04-29 at 12:38 +1000, David Phelan wrote:
> Wtihout seeing any conf files...it's a bit hard to say....
> 
> Are you sure you haven't don't something strage with your dial plans?

Here are the sip.conf and extension.conf; when I dial for example 218
command line display 18 (missing first digit) and I get invalid
extension message.

Here is my sip.conf:
[general]
;port = 5064                     ; Port to bind to
;bindaddr = 0.0.0.0              ; Address to bind SIP channel to
;context = default               ; Default context for incoming calls

[11] ; outgoing call on fxs port
type=friend
host=dynamic
context=internal
secret=xxxxx
disallow=all
allow=ulaw
username=11
mailbox=11
dtmfmode=inband
canreinvite=no
nat=no

[21]
type=friend
username=act1
password=xxxxx
qualify=200
dtmfmode=inband
reinvite=no
canreinvite=no
disallow=all
allow=ulaw
context=internal
nat=no
mailbox=21    
host=dynamic  
displayname=Demo 3

[pstn-spa3k]
type=friend
secret=xxxx
disallow=all
allow=ulaw
username=spa3k
host=dynamic
port=5065 ; port on Pstn line
dtmfmode=inband
nat=no
context=incoming

extension.conf:
[incoming]
[globals]
sales_support=SIP/11
accounting=SIP/21
pstn-spa3k=10.0.0.102:5065 

; First, let's do the holidays
exten => 888,1,GotoIfTime(*|*|1|jan?holiday,s,1)
exten => 888,2,GotoIfTime(*|*|1|jul?holiday,s,1)
exten => 888,3,GotoIfTime(*|*|11|nov?holiday,s,1)
exten => 888,4,GotoIfTime(16:00-23:59|*|24|dec?holiday,s,1)
exten => 888,5,GotoIfTime(*|*|25|dec?holiday,s,1)
exten => 888,6,GotoIfTime(15:00-23:59|*|31|dec?holiday,s,1)

; these are the days we're open
exten => 888,7,GotoIfTime(8:30-17:59|mon-fri|*|*?office-open,s,1)

; if we're not open, we're closed (duh!)
exten => 888,8,Goto(office-closed,s,1)

[office-closed]
exten => s,1,Wait(2)
exten => s,2,Answer
exten => s,3,SetMusicOnHold(loud)
exten => s,4,Background(afterhours-menu)
exten => s,4,DigitTimeout,5 ; give them 5 seconds between digits
exten => s,4,ResponseTimeout,5 ; give them 90 seconds to make a choice
exten => s,5,Wait(1)
exten => s,6,Voicemail(11)             ; Right to voicemail
exten => s,7,Hangup()
exten => *,1,Goto(s,3)
exten => #,1,Background(goodbye)
exten => #,2,Hangup()
exten => i,1,Answer
exten => i,2,Playback(pbx-invalid)
exten => i,3,Goto(s,4)

include => extensions
include => sales_support
include => accounting
include => disa


[disa]
exten => 0707,1,Answer
exten => 0707,2,DigitTimeout,8
exten => 0707,3,ResponseTimeout,20
exten => 0707,4,Authenticate(xxx)
exten => 0707,5,DISA(xxx|disa-access)

[disa-access]
include => tollfree
include => outgoing-voipjet
include => voicemail
include => macro-tollfree

[extensions]
exten => 218,1,Dial(${sales_support}&${accounting},20,rw)
exten => 218,2,Voicemail(11)             ; Right to voicemail
exten => 218,3,Hangup()

[sales_support]
exten => 11,1,Dial(${sales_support},20,trw)
exten => 11,2,Voicemail(u11)             ; Right to voicemail
exten => 11,3,Hangup()

[accounting]
exten => 321,1,Dial(${accounting},20,trw)
exten => 321,2,Voicemail(u21)             ; Right to voicemail
exten => 321,3,Hangup()

....
....

-- 
#Joseph

>  
> 
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Joseph
> Sent: Friday, 29 April 2005 11:53 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: [Asterisk-Users] missing first digit when dial extension /
> dtmfproblem ???
> 
> I'm using dtmfmode=inband with Sipura=3000 when I dial an internal extension
> most of the time the first digit is missing and I get an invalid extension
> message.
> 
> Could it be dtmf problem or SIP?
> 
> --
> #Joseph
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 




More information about the asterisk-users mailing list