Hey Team,
I have GV setup on asterisk 11.4 and with in the dial plan for inbound I have the following:
[incoming-motif1]
exten => s,1,NoOp()
same => n,Wait(1)
same => n,Answer()
same => n,SendDTMF(1)
same => n,Set(crazygooglecid=${CALLERID(name)})
same => n,Set(stripcrazysuffix=${CUT(crazygooglecid,@,1)})
same => n,Set(CALLERID(all)=${stripcrazysuffix})
same => n,Dial(SIP/5001,15)
same => n,Voicemail(5001)
same => h,Hangup
and every thing works great with no problems, but I really need to send the inbound to an IVR and have had no luck in doing so.
I have tried:
[incoming-motif1]
exten => s,1,NoOp()
same => n,Wait(1)
same => n,Answer()
same => n,SendDTMF(1)
same => n,Set(crazygooglecid=${CALLERID(name)})
same => n,Set(stripcrazysuffix=${CUT(crazygooglecid,@,1)})
same => n,Set(CALLERID(all)=${stripcrazysuffix})
same => n,Goto(custom/ivr-1,s,1)
same => n,Voicemail(5001)
same => h,Hangup
and also tried:
[incoming-motif1]
exten => s,1,NoOp()
same => n,Wait(1)
same => n,Answer()
same => n,SendDTMF(1)
same => n,Set(crazygooglecid=${CALLERID(name)})
same => n,Set(stripcrazysuffix=${CUT(crazygooglecid,@,1)})
same => n,Set(CALLERID(all)=${stripcrazysuffix})
same => n,Playback(custom/ivr-1,s,1)
same => n,Voicemail(5001)
same => h,Hangup
and neither works.
In my logs I see the following:
[May 15 00:03:25] VERBOSE[17727][C-00000001] pbx.c: – Executing [s@incoming-motif1:9] Goto(“Motif/+1XXXXXXXXXX-e688”, “ivr-1,s,1”) in new stack
[May 15 00:03:25] VERBOSE[17727][C-00000001] pbx.c: – Goto (ivr-1,s,1)
[May 15 00:03:25] WARNING[17727][C-00000001] pbx.c: Channel ‘Motif/+1XXXXXXXXXX-e688’ sent to invalid extension but no invalid handler: context,exten,priority=ivr-1,s,1
[May 15 00:03:25] VERBOSE[17726][C-00000000] pbx.c: – Executing [h@macro-dialout-trunk:1] Macro(“SIP/5003-00000000”, “hangupcall,”) in new stack
Would someone please know and/or help with the proper code to get the inbound to route to an IVR?
Thanks,
amphibian