Здравствуйте, у меня возникла проблема,не как не могу подключить межгород через сипнет,вроде все достаточно просто,но у меня никак не выходит.
вот конфиги:
[trunk_1]
register=xxx:xxx@sipnet
host=sipnet.ru
username=xxx
fromusername=xxx
type=peer
secret=xxx
trunkname=sipnet
context=DID_trunk_1
hasexten=no
hasiax=no
contact=
hassip=yes
hassiax=no
registeriax=no
registersip=yes
insecure=no
nat=yes
usereqphone=yes
canreinvite=nonat
disallow=all
allow=ulaw,alaw,gsm,g726
[6000]
username=6000
type=friend
fullname=dlink
host=dynamic
context=DLPN_DialPlan1
cid_number=6000
canreinvite=no
callerid="User1" <6000>
nat=yes
dtmfmode=rfc2833
callcounter=yes
hasvoicemail=yes
vmsecret=xxx
threewaycalling=no
hasdirectory=no
callwaiting=yes
hasmanager=no
hasagent=no
hassip=yes
hasiax=no
secret=
insecure=no
pickupgroup=
macaddress=6000
autoprov=yes
label=6000
linenumber=
LINEKEYS=1
call-limit=100
callgroup=1
pickupgroup=1
email=
disallow=all
allow=gsm,ulaw,alaw,h263
[6001]
username=6001
type=friend
fullname=linksys
host=dynamic
context=DLPN_DialPlan1
cid_number=6001
canreinvite=no
callerid="User2" <6001>
nat=yes
dtmfmode=rfc2833
callcounter=yes
hasvoicemail=yes
vmsecret=xxx
email=
threewaycalling=no
hasdirectory=no
callwaiting=no
hasmanager=no
hasagent=no
hassip=yes
hasiax=no
secret=
insecure=no
call-limit=100
macaddress=6001
autoprov=yes
label=6001
linenumber=
LINEKEYS=1
callgroup=1
pickupgroup=1
disallow=all
allow=gsm,ulaw,alaw,h263
[DLPN_DialPlan1]
exten=6000,1, Macro(stdexten,6000,SIP/6000)
exten=user1, 1, Goto(6000|1)
exten=6001,1, Macro(stdexten,6001,SIP/6001)
exten=user2, 1, Goto(6001|1)
exten=_8495XXXXXXX,1,Macro(trunkdial-failover-0.3,${trunk_1}/${EXTEN:0},,trunk_1,,6001)
exten=_8495XXXXXXX,1,Macro(trunkdial-failover-0.3,${trunk_1}/${EXTEN:0},,trunk_1,,6000)
include=demo
include=CallingRule_sipnet
include=default
include=parkedcalls
include=conferences
include=ringgroups
include=voicemenus
include=queues
include=voicemailgroups
include=directory
include=pagegroups
include=page_an_extension
[DID_trunk_1]
include=default
exten=_6000,1,Goto(default|6000|1)
exten=_6001,1,Goto(default|6001|1)
include=CallingRule_sipnet
include=parkedcalls
include=conferences
include=ringgroups
include=voicemenus
include=queues
include=voicemailgroups
include=directory
include=pagegroups
include=page_an_extension
include=DID_trunk_1_default
при звонке...(((и куча не понятных ошибок
[Mar 9 06:58:00] WARNING[13282]: chan_iax2.c:3092 reload_firmware: Error opening firmware directory '/var/lib/asterisk/firmware/iax': Nuch file or directory
[Mar 9 06:58:00] WARNING[13282]: pbx.c:7540 add_pri_lockopt: Unable to register extension 'a', priority 1 in 'default', already in use
[Mar 9 06:58:00] WARNING[13282]: pbx.c:7540 add_pri_lockopt: Unable to register extension '_8495XXXXXXX', priority 1 in 'CallingRule_sit', already in use
[Mar 9 06:58:00] WARNING[13282]: pbx.c:7540 add_pri_lockopt: Unable to register extension '_8495XXXXXXX', priority 1 in 'DLPN_DialPlan1already in use
[Mar 9 06:58:00] NOTICE[13282]: pbx_ael.c:122 pbx_load_module: Starting AEL load process.
[Mar 9 06:58:00] NOTICE[13282]: pbx_ael.c:135 pbx_load_module: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'
[Mar 9 06:58:00] NOTICE[13282]: pbx_ael.c:138 pbx_load_module: AEL load process: checked config file name '/etc/asterisk/extensions.ael
[Mar 9 06:58:00] NOTICE[13282]: pbx_ael.c:145 pbx_load_module: AEL load process: compiled config file name '/etc/asterisk/extensions.ae
[Mar 9 06:58:00] NOTICE[13282]: pbx_ael.c:150 pbx_load_module: AEL load process: merged config file name '/etc/asterisk/extensions.ael'
[Mar 9 06:58:00] NOTICE[13282]: pbx_ael.c:153 pbx_load_module: AEL load process: verified config file name '/etc/asterisk/extensions.ae