[Asterisk-Users] Using Goto with Asterisk Realtime configuration

Jason Goecke jsgoecke at yahoo.com
Sun Jan 9 10:09:18 MST 2005


I am using a combo of static files and Asterisk
Realtime configuration. This section works fine when a
static file:
---------------------------
[from_pstn]
;Voipgate
exten => 4507,1,Goto(from_pstn,s,1)

exten => s,1,Macro(dial-ext)
exten => s,2,Hangup
---------------------------

But, when I drop it in the database and try it in
Realtime mode I get this error:

---------------------------
-- Accepting AUTHENTICATED call from 80.127.191.55,
requested format = 8, actual format = 8
-- Executing
Goto("IAX2/voipgate at 80.127.191.55:4569/16",
"from_pstn,s,1")
Jan 9 09:36:24 NOTICE[3816]: pbx.c:1331
pbx_extension_helper: Cannot find extension '4507' in
context 'from_pstn'
Jan 9 09:36:24 WARNING[3816]: pbx.c:5544
ast_parseable_goto: Priority 'from_pstn,s,1' must be a
number > 0, or valid label
== Spawn extension (from_pstn, 4507, 1) exited
non-zero on 'IAX2/voipgate at 80.127.191.55:4569/16'
-- Hungup 'IAX2/voipgate at 80.127.191.55:4569/16'
---------------------------

Here are my db entries:

+----+----------------+-------+----------+-----------------+-------------------------------------------------------------------------------------------+
| id | context | exten | priority | app | appdata |
+----+----------------+-------+----------+-----------------+-------------------------------------------------------------------------------------------+
| 77 | from_pstn | 4507 | 1 | Goto | from_pstn,s,1 |
| 78 | from_pstn | s | 1 | Macro | dial-ext |
| 79 | from_pstn | s | 2 | Hangup | |
+----+----------------+-------+----------+-----------------+-------------------------------------------------------------------------------------------+

Any ideas, does Realtime have problems with Goto? Or
am I just overlooking something?

Also posted here:

http://asterisk.xvoip.com/viewtopic.php?t=806



More information about the asterisk-users mailing list