On 01/21/08 00:52, Iñaki Baz Castillo wrote:
El Domingo, 20 de Enero de 2008, Daniel-Constantin
Mierla escribió:
Hello,
you can write your defines in between:
divert(-1)
divert
Thanks Daniel, it works... it looks a bit "horrible" but it works :-p
you do not need 'dnl' and lot of diverts, just include all defines,
comments, empty lines in between of one set of:
divert(-1)
divert
It will look nicer.
Daniel
divert(-1) ### IP's.
divert(0)dnl
define(`MY_IP', `88.95.0.110')dnl
define(`ASTERISK_MEDIA_IP', `88.95.0.114')dnl
dnl
divert(-1) ### Routes:
divert(0)dnl
define(`FLAG_IN_DIALOG', `1')dnl
define(`FLAG_TO_PSTN', `2')dnl
define(`FLAG_NAT_CALLER', `5')dnl
define(`BFLAG_NAT_CALLED', `6')dnl
define(`BFLAG_NAT_PING', `7')dnl
define(`BFLAG_RTPPROXY', `8')dnl
dnl
divert(-1) ### Flags:
divert(0)dnl
define(`ROUTE_DEFAULT', `1')dnl
define(`ON_BRANCH_DEFAULT', `1')dnl
define(`ON_REPLY_DEFAULT', `1')dnl
define(`ON_FAILURE_DEFAULT', `1')dnl
define(`ROUTE_REGISTER', `2')dnl
Thanks a lot.