Hi, I am trying to get asterisk Realtime to work. I have a fresh installed 1.2.10 setup on a debian system. I have taken the defaul setup and put it into the mysql database. I have setup two extensions 101 and 102. If I setup the extension like such: exten => 101,1,Dial(SIP/101) exten => 102,1,Dial)SIP/102) I can dial back and forth between the two phones. When I switch it to use the stdexten macro and change the extension like such exten => 101,1,Macro(stdexten,101,sip/101) exten => 102,1,Macro(stdexten,102,sip/102) I can not dial each extension and this is what reports on asterisk cli: -- SIP Seeding peer from astdb: '102' at 102@209.33.206.3:5060 for 3600 -- SIP Seeding peer from astdb: '101' at 101@209.33.206.3:1093 for 3600 -- Executing Macro("SIP/101-081a7f90", "stdexten,102,sip/102") Jul 24 10:36:37 WARNING[23358]: app_macro.c:149 macro_exec: No such context 'macro-stdexten,102,sip/102' for macro 'stdexten,102,sip/102' == Auto fallthrough, channel 'SIP/101-081a7f90' status is 'UNKNOWN' -- SIP Seeding peer from astdb: '101' at 101@209.33.206.3:1093 for 3600 My question is what has to be in the mysql extenstions_table to get the macro to work? Here is what is in my extensions_table: mysql> select * from extensions_table; +----+---------+-------+----------+-------+----------------------+ | id | context | exten | priority | app | appdata | +----+---------+-------+----------+-------+----------------------+ | 1 | default | 101 | 1 | Macro | stdexten,101,sip/101 | | 2 | default | 102 | 1 | Macro | stdexten,102,sip/102 | Thanks in advance for any help. Jon Scottorn Systems Administrator The Possibility Forge, Inc. http://www.possibilityforge.com 435.635.0591 x.1004 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060724/bfd28916/attachment.htm
On Monday 24 July 2006 19:47, Jon Scottorn wrote:> If I setup the extension like such: > > exten => 101,1,Dial(SIP/101) > exten => 102,1,Dial)SIP/102) > > I can dial back and forth between the two phones. > > When I switch it to use the stdexten macro and change the extension like > such > > exten => 101,1,Macro(stdexten,101,sip/101) > exten => 102,1,Macro(stdexten,102,sip/102) > > I can not dial each extension and this is what reports on asterisk cli: ><snit>> My question is what has to be in the mysql extenstions_table to get the > macro to work? > > Here is what is in my extensions_table: > > mysql> select * from extensions_table; > +----+---------+-------+----------+-------+----------------------+ > > | id | context | exten | priority | app | appdata | > > +----+---------+-------+----------+-------+----------------------+ > > | 1 | default | 101 | 1 | Macro | stdexten,101,sip/101 | > | 2 | default | 102 | 1 | Macro | stdexten,102,sip/102 | >You should substitute commas with a "pipe"; i.e. your "select" should look: | 1 | default | 101 | 1 | Macro | stdexten|101|sip/101 | | 2 | default | 102 | 1 | Macro | stdexten|102|sip/102 | On the wiki is complete mess with the commas ... Benchev
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jon Scottorn wrote:> Hi, > > I am trying to get asterisk Realtime to work. I have a fresh > installed 1.2.10 setup on a debian system. I have taken the defaul > setup and put it into the mysql database. > I have setup two extensions 101 and 102. > > If I setup the extension like such: > > exten => 101,1,Dial(SIP/101) > exten => 102,1,Dial)SIP/102) > > I can dial back and forth between the two phones. > > When I switch it to use the stdexten macro and change the extension like > such > > exten => 101,1,Macro(stdexten,101,sip/101) > exten => 102,1,Macro(stdexten,102,sip/102) > > I can not dial each extension and this is what reports on asterisk cli: > > -- SIP Seeding peer from astdb: '102' at 102@209.33.206.3:5060 for 3600 > -- SIP Seeding peer from astdb: '101' at 101@209.33.206.3:1093 for 3600 > -- Executing Macro("SIP/101-081a7f90", "stdexten,102,sip/102") > Jul 24 10:36:37 WARNING[23358]: app_macro.c:149 macro_exec: No such > context 'macro-stdexten,102,sip/102' for macro 'stdexten,102,sip/102' > == Auto fallthrough, channel 'SIP/101-081a7f90' status is 'UNKNOWN' > -- SIP Seeding peer from astdb: '101' at 101@209.33.206.3:1093 for 3600 > > My question is what has to be in the mysql extenstions_table to get the > macro to work? > > Here is what is in my extensions_table: > > mysql> select * from extensions_table; > +----+---------+-------+----------+-------+----------------------+ > | id | context | exten | priority | app | appdata | > +----+---------+-------+----------+-------+----------------------+ > | 1 | default | 101 | 1 | Macro | stdexten,101,sip/101 | > | 2 | default | 102 | 1 | Macro | stdexten,102,sip/102 | > > Thanks in advance for any help. > > */Jon Scottorn/* > /Systems Administrator/ > /The Possibility Forge, Inc./ > /http://www.possibilityforge.com/ > /435.635.0591 x.1004/You must use "|" as the separator instead of "," in the realtime engine so stdexten,101,sip/101 should be stdexten|101|sip/101 etc. - -- Ron Wellsted ron@wellsted.org.uk http://www.wellsted.org.uk N 52.567623, W 2.137621 Linux Counter No. 202120 FWD:519961 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRMUa2ktP/KMNOfRbAQKNKgf/bblsYjx5HqyALKj5Z2vLcGqbox1ObHiP TXVkNsKrdinR9K3NzkB5XXltQrHvorGytTURS4lOX7CbbI3t4EGPxZudFZBrxnVP wDrbRIhWIz4Pkj+BtARHxna7RIJlw/fUz/QcSViE8oetZBE6fPNo/vCxeT0exFIm /GxhC9vMiYRjcW2yC9pnSFrk3mpLVo/9tTNDh0Ku2/8ZyySobfqSWIU4ng6qavbX Ls5GkD9tBZF9ttl5K1/nPGKCjbE0bVH7PBo0aS+616XGD3jQXjVYOfd5QondK7xF DOXkpDjKzjsdmqWUOKgqGTjVHh/PYyDIm4055oRt/UopoZQPvgI/Bw==k+nH -----END PGP SIGNATURE-----