[asterisk-users] Asterisk Realtime Macros

Benchev bbench at mail.bg
Mon Jul 24 12:00:46 MST 2006


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



More information about the asterisk-users mailing list