[solved] IVR message

This is just getting more and more frustrating; the Reilly book is not of use after the first few days, and there are no docs.

I am trying to make an IVR and I started with this:
[from-broadvoice]
exten => s, 1, Wait(10)
exten => s, n, Answer
exten => s, n, background(custom/menu1)

I get a message: Call from ‘’ to extension 2122021963 rejected because extension does not exist.

I was told that it should be in the context that was specified in my sip.conf, which it is. Here is my sip.conf and extensions.conf

EXTENSIONS.CONF
;
; Static extension configuration file, used by
; the pbx_config module. This is where you configure all your
; inbound and outbound calls in Asterisk.
;
; This configuration file is reloaded
; - With the “dialplan reload” command in the CLI
; - With the “reload” command (that reloads everything) in the CLI
;
[general]
static = yes
writeprotect = no
userscontext = default
clearglobalvars = yes

[default]
; ------------------------------------------
; from broadvoice support docs to dial out
; on the broadvoice connection
; -----------------------------------------
exten => _1NXXNXXXXXX, 1, dial(SIP/${EXTEN}@sip.broadvoice.com,30)
exten => _1NXXNXXXXXX, 2, congestion()
exten => _1NXXNXXXXXX, 102, busy()
; --------------------------------
; end broadvoice docs
; -------------------------------
; --------------------------------------------------------------------
; internal extensions defined. Three lines for each:
; 1st line is to make a connection when seeing those digits come in,
; second line says to dial those actual digits with designated timeout
; third line says if no pickup goto voicemail
; --------------------------------------------------------------------
exten => 706, 1, answer()
exten => 706, 2, dial(SIP/${EXTEN},25}
exten => 706, 3, voicmail(${EXTEN})
exten => 707, 1, answer()
exten => 707, 2, dial(SIP/${EXTEN},25}
exten => 707, 3, voicmail(${EXTEN})
exten => 708, 1, answer()
exten => 708, 2, dial(SIP/${EXTEN},25}
exten => 708, 3, voicmail(${EXTEN})
; ----------------------------
; end of internal extensions. the extension
; VCIFAX cannot be dialed to, it is only
; for outgoing fax machine, so not listed here.
; ----------------------------

[DID_trunk_1]
include = DID_trunk_1_default

[DID_trunk_1_default]
include = DLPN_DialPlan1

[CallingRule_Rule1]
; no idea why i need this and the macro it uses below
; was put in the one time i tried using the asterisk gui
;
; but if i take it out, the whole system goes down
;
; my kingdom for an explanation

exten = 1NXXNXXXXXX,1,Macro(trunkdial-failover- .3,${trunk_1}/${EXTEN:0},trunk_1,)

[DLPN_DialPlan1]
include = CallingRule_Rule1
include = pagegroups
include = conferences
include = default

[from-broadvoice]
; IVR will go here
exten => s, 1, Wait(10)
exten => s, n, Answer
exten => s, n, background(custom/menu1)

[pagegroups]
exten = 771,1,Macro(pagingintercom,SIP/706&SIP/708,d)

[conferences]
exten = 751,1,MeetMe(${EXTEN},MsIx)
exten = 752,1,MeetMe(751,MsIxaA)

[globals]
CONSOLE = Console/dsp ; Console interface for demo
;CONSOLE=DAHDI/1
;CONSOLE=Phone/phone0
IAXINFO = guest ; IAXtel username/password
TRUNK = DAHDI/G2 ; Trunk interface
TRUNKMSD = 1 ; MSD digits to strip (usually 1 or 0)
FEATURES =
DIALOPTIONS =
RINGTIME = 20
FOLLOWMEOPTIONS =
PAGING_HEADER = Intercom
GLOBAL_OUTBOUNDCID = 2122021963
GLOBAL_OUTBOUNDCIDNAME = VCI-ESF
trunk_1 = SIP/trunk_1
CID_trunk_1 = VCI-ESF
CID_707 = 707

[macro-stdexten]
exten = s,1,Set(_DYNAMIC_FEATURES=${FEATURES})
exten = s,2,GotoIf($["${FOLLOWME
${ARG1}}" = “1”]?5:3)
exten = s,3,Dial(${ARG2},${RINGTIME},${DIALOPTIONS})
exten = s,4,Goto(s-${DIALSTATUS},1)
exten = s,5,Macro(stdexten-followme,${ARG1},${ARG2})
exten = s-NOANSWER,1,Voicemail(${ARG1},u)
exten = s-NOANSWER,2,Goto(default,s,1)
exten = s-BUSY,1,Voicemail(${ARG1},b)
exten = s-BUSY,2,Goto(default,s,1)
exten = _s-.,1,Goto(s-NOANSWER,1)
exten = a,1,VoicemailMain(${ARG1})
[macro-stdexten-followme]
exten = s,1,Answer
exten = s,2,Dial(${ARG2},${RINGTIME},${DIALOPTIONS})
exten = s,3,Set(__FMCIDNUM=${CALLERID(num)})
exten = s,4,Set(_FMCIDNAME=${CALLERID(name)})
exten = s,5,Followme(${ARG1},${FOLLOWMEOPTIONS})
exten = s,6,Voicemail(${ARG1},u)
exten = s-NOANSWER,1,Voicemail(${ARG1},u)
exten = s-BUSY,1,Voicemail(${ARG1},b)
exten = s-BUSY,2,Goto(default,s,1)
exten = s-.,1,Goto(s-NOANSWER,1)
exten = a,1,VoicemailMain(${ARG1})
[macro-pagingintercom]
exten = s,1,SIPAddHeader(Alert-Info: ${PAGING_HEADER})
exten = s,2,Page(${ARG1},${ARG2})
exten = s,3,Hangup
[ringgroups]
[queues]
[voicemenus]
[voicemailgroups]
[directory]
[page_an_extension]
[macro-trunkdial-failover-0.3]
exten = s,1,GotoIf($[${LEN(${FMCIDNUM})} > 6]?1-fmsetcid,1)
exten = s,2,GotoIf($[${LEN(${GLOBAL_OUTBOUNDCIDNAME})} > 1]?1-setgbobname,1)
exten = s,3,Set(CALLERID(num)=${IF($[${LEN(${CID
${CALLERID(num)}})} > 2]?${CID
${CALLERID

(num)}}:)})
exten = s,n,GotoIf($[${LEN(${CALLERID(num)})} > 6]?1-dial,1)
exten = s,n,Set(CALLERID(all)=${IF($[${LEN(${CID_${ARG3}})} > 6]?

${CID_${ARG3}}:${GLOBAL_OUTBOUNDCID})})
exten = s,n,Goto(1-dial,1)
exten = 1-setgbobname,1,Set(CALLERID(name)=${GLOBAL_OUTBOUNDCIDNAME})
exten = 1-setgbobname,n,Goto(s,3)
exten = 1-fmsetcid,1,Set(CALLERID(num)=${FMCIDNUM})
exten = 1-fmsetcid,n,Set(CALLERID(name)=${FMCIDNAME})
exten = 1-fmsetcid,n,Goto(1-dial,1)
exten = 1-dial,1,Dial(${ARG1})
exten = 1-dial,n,Gotoif(${LEN(${ARG2})} > 0 ?1-${DIALSTATUS},1:1-out,1)
exten = 1-CHANUNAVAIL,1,Dial(${ARG2})
exten = 1-CHANUNAVAIL,n,Hangup()
exten = 1-CONGESTION,1,Dial(${ARG2})
exten = 1-CONGESTION,n,Hangup()
exten = 1-out,1,Hangup()

===END EXTENSIONS.CONF

MY SIP.CONF
[authentication]

[general]
disallow=all
allow = ulaw
allow=alaw
allow=gsm
allow=g729
allowoverlap = no
authname = 2122021963
bindaddr = 0.0.0.0
bindport = 5060
context = default
register = 2122021963@sip.broadvoice.com:password:2122021963@sip.broadvoice.com/707
registerattempts = 20
registertimeout = 30
callerid = “ESFVCI Support”

[sip.broadvoice.com]
disallow=all
allow = ulaw
allow=alaw
allow=gsm
allow=g729
authname=2122021963
context=from-broadvoice
dtmfmode=inband
fromdomain=sip.broadvoice.com
fromuser=2122021963
host=sip.broadvoice.com
;insecure=very
secret=
type=peer
user=phone
username=2122021963

[706]
callerid = "ESFVCI Support"
canreinvite = no
dtmfmode = rfc2833
host = dynamic
nat = no
secret =
username = 706
type = friend

[708]
type = friend
host = dynamic
dtmfmode = rfc2833
nat = no
username = 708
secret =
canreinvite = no
callerid = “ESFVCI Support”

[707]
type = friend
host = dynamic
dtmfmode = rfc2833
nat = no
username = 707
secret =
canreinvite = no
callerid = “VCI”

[VCIFAX]
; sipura ata adapter connected to fax machine
type = friend
host = dynamic
dtmfmode = rfc2833
nat = no
username = VCIFAX
secret =
callerid ="VCIFAX"
authname = VCIFAX
context=default

PLEASE HELP, THANKS!

I could be wrong but at first glance it looks as though you are missing context decelerations for you SIP friends. Witch I think would make them use the default context listed in the general section. That being said there is also no include statement between from-broadvoice and default. But I guess that depends on where you are originating the call to the IVR. Just some thoughts from a newbe. Good Luck.

Unfortunately, that did not help, but thanks for the effort!

Tuvia,
Broadvoice is sending the call to 2122021963 at what ever context you set for broadvoice. The reason why the book has s is because in general when Asterisk registers tells the remote system to call s@IP however broadvice is not doing that. Try doing:

[from-broadvoice]
exten => 2122021963, 1, Wait(10)
exten => 2122021963, n, Answer
exten => 2122021963, n, background(custom/menu1)

In general look at the error that Asterisk is throwing 99.999% of the time Asterisk is right and it’s user error.

That did not work. I realize it is going to be some little leap like that I am missing. But even changing the from-broadvoice to use extension 2122021963 instead of “s” produces the same message.

I have no doubt it is user error. I just do not know where. The sip.broadvoice.com context states cotext=from-broadvoice, and in from-broadvoice I have tried the “s” and now the 2122021963, but neither is recognized.

PM me with details on how to get in to the box and I can have a peak.

Terrific. PM coming asap

Anybody have any ideas here?

Solved.

How…

Although the instructions from Broadvoice say to use context=from-broadvoice, I changed it to the default context. Then in the default context if it was an incoming call from zBroadvoice I did a GOTO and jumped to a context called inbound.