Asterisk Not getting user Input .. HELP...!

Hello,
I am trying to make simple IVR system on my asterisk
and am having problem when call comes in it is not recognizing user input at all, BUT it works great from internal.

Here is my configurations…

[color=blue]*CLI> show version
Asterisk CVS-v1-0-08/16/05-12:53:21 built by root@localhost on a i686 running Linux
*CLI> sip show peer broadvoice-1172
*CLI>

  • Name : broadvoice-1172
    Secret :
    MD5Secret :
    Context : from-trunk
    Language :
    FromUser : XXXXXXXXXX
    FromDomain : sip.broadvoice.com
    Callgroup : (0)
    Pickupgroup : (0)
    Mailbox :
    LastMsgsSent : -1
    Dynamic : No
    Expire : -1 seconds
    Expiry : 900
    Insecure : port,invite
    Nat : No
    ACL : No
    CanReinvite : No
    PromiscRedir : No
    DTMFmode : rfc2833
    LastMsg : 0
    ToHost : sip.broadvoice.com
    Addr->IP : 147.135.12.128 Port 5060
    Defaddr->IP : 0.0.0.0 Port 0
    Username : XXXXXXXXXX
    Codecs : 0x8000e (gsm|ulaw|alaw|h263)
    Codec Order : (none)
    Status : UNKNOWN
    Useragent :
    Full Contact :
    ##########
    sip.conf
    ##########
    [general]
    port = 5060 ; Port to bind to (SIP is 5060)
    bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
    pedantic=no
    dtmfmode=rfc2833
    dtmf=rfc2833
    context = from-trunk

register=XXXXXXXXXX@sip.broadvoice.com:YYYYY:XXXXXXXXXX@sip.broadvoice.com/72

[broadvoice-1172]
username=XXXXXXXXXX
user=phone
type=peer
secret=YYYYY
insecure=very
host=sip.broadvoice.com
fromuser=XXXXXXXXXX
fromdomain=sip.broadvoice.com
dtmfmode=rfc2833
dtmf=rfc2833
canreinvite=no
authname=XXXXXXXXXX

[25]
username=25
type=friend
secret=YYYYY
port=5060
nat=yes
mailbox=25@default
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=“SIP Account” <25> [/color]

where XXXXXXXXXX is my phone number with BroadVoice and YYYYY is password. :smiley:

So if I call from my SIP extension 25 using SIP phone X-ten to one very simple application which reads input form user and echo to console… it works fine and if I call to my broadvoice number from my Cell or any PSTN phone it doesn’t get any input.

am search internet and most of people says about dtmf to either “inband” or “rfc2833”. I tried both and no luck so far

Thanks in advance…

This is a routing problem - Make sure you route your INCOMING calls to the IVR

sorry… I didn’t put rest of my config (or may be was not clear enough!)
the call is routing fine and my IVR context is working as well… just no Input!

#######
[from-trunk]
exten => s,1,Goto(custom-ivr-test,s,1)

[custom-ivr-test]
exten => s,1,Answer
exten => s,2,Wait(1)
exten => s,3,BackGround(allison7/please-enter-your)
exten => s,4,Playback(extension)
exten => s,5,Read(fromext,then-press-pound)
exten => s,6,Wait(1)
exten => s,7,NoOp(${fromext})
exten => s,8,SayDigits(${fromext})
exten => h,1,Hangup
#######
here is little log if I am calling from my local SIP extension 25

-- Executing Answer("SIP/25-87e5", "") in new stack
-- Executing Goto("SIP/25-87e5", "custom-ivr-test|s|1") in new stack
-- Goto (custom-ivr-test,s,1)
-- Executing Answer("SIP/25-87e5", "") in new stack
-- Executing Wait("SIP/25-87e5", "1") in new stack
-- Executing BackGround("SIP/25-87e5", "allison7/please-enter-your") in new stack
-- Playing 'allison7/please-enter-your' (language 'en')
-- Executing Playback("SIP/25-87e5", "extension") in new stack
-- Playing 'extension' (language 'en')
-- Executing Read("SIP/25-87e5", "fromext|then-press-pound") in new stack
-- Playing 'then-press-pound' (language 'en')
-- User entered '12'
-- Executing Wait("SIP/25-87e5", "1") in new stack
-- Executing NoOp("SIP/25-87e5", "12") in new stack
-- Executing SayDigits("SIP/25-87e5", "12") in new stack
-- Playing 'digits/1' (language 'en')
-- Playing 'digits/2' (language 'en')
-- Executing Hangup("SIP/25-87e5", "") in new stack

== Spawn extension (custom-ivr-test, h, 1) exited non-zero on ‘SIP/25-87e5’

##########
if i am calling from my cell to my number XXXXXXXXXX

– Executing Answer(“SIP/XXXXXXXXXX-98f1”, “”) in new stack
– Executing Goto(“SIP/XXXXXXXXXX-98f1”, “custom-ivr-test|s|1”) in new stack
– Goto (custom-ivr-test,s,1)
– Executing Answer(“SIP/XXXXXXXXXX-98f1”, “”) in new stack
– Executing Wait(“SIP/XXXXXXXXXX-98f1”, “1”) in new stack
– Executing BackGround(“SIP/XXXXXXXXXX-98f1”, “allison7/please-enter-your”) in new stack
– Playing ‘allison7/please-enter-your’ (language ‘en’)
– Executing Playback(“SIP/XXXXXXXXXX-98f1”, “extension”) in new stack
– Playing ‘extension’ (language ‘en’)
– Executing Read(“SIP/XXXXXXXXXX-98f1”, “fromext|then-press-pound”) in new stack
– Playing ‘then-press-pound’ (language ‘en’)
– User entered ‘’
– Executing Wait(“SIP/XXXXXXXXXX-98f1”, “1”) in new stack
– Executing NoOp(“SIP/XXXXXXXXXX-98f1”, “”) in new stack
– Executing SayDigits(“SIP/XXXXXXXXXX-98f1”, “”) in new stack
– Executing Hangup(“SIP/XXXXXXXXXX-98f1”, “”) in new stack
== Spawn extension (custom-ivr-test, h, 1) exited non-zero on ‘SIP/XXXXXXXXXX-98f1’

  1. On broadvoice’s web site they tell you to use inband
    See: broadvoice.com/support_install_asterisk.html

  2. I am an ex broadvoice customer. Many of times DTMF didnt work do to the loq qulaity of the call.

Also I want to add that I noticed that under the general tab in sip.conf you have rfc2833. Even if you tried inband in the settings for broadvoice it can take time (10-15 minutes some times) to kick in. I had an issue where my sip lines registerd to the provider and for the first 10 minutes asterisk would not accept any DTMF on inbound calls. As soon as I set the dtmf mode under general to be the same as for my sip provider it worked like a charm right away.

Thanks Dovid for your response

yeah i followed broadvoice setup as well and before I was using inband…
which didn’t work… then i changed to rfc2833 which didn’t work either

can you explain me little bit here
"Many of times DTMF didnt work do to the loq qulaity of the call."

I have comcast business cable account and the call quality doesn’t seem bad at all voice is much clear too…

The problem isnt on your end. It’s on thier end. I had times when the voice was greate and times when it was horrible. All in all some times DTMF worked and sometimes not. Its why I left them. You get what you pay for in life.

Also did you see my other comment about trying to set the dtmf mode in the general section to the same as for broadvoice and seeing what happens ?

if you set the DTMF to inband and have someone call you and they push a button on the phone can you hear it? if its inband you should.

[quote=“bhadresh”]Thanks Dovid for your response

yeah i followed broadvoice setup as well and before I was using inband…
which didn’t work… then i changed to rfc2833 which didn’t work either

can you explain me little bit here
"Many of times DTMF didnt work do to the loq qulaity of the call."

I have comcast business cable account and the call quality doesn’t seem bad at all voice is much clear too…[/quote]