problem with sip trunk
Posted: Thu Mar 11, 2010 9:57 am
I have two servers VICIDIAL and I create a sip trunk between the two servers but I can not effectier a call between the server via the SIP trunk and below the configuration of two servers:
server 1:
Carrier ID: VICITRUNK
Carrier Name: VICITRUNK TEST
register => vicitrunk:VicT1234@192.168.1.a
[vicitrunk]
type=friend
disallow=all
allow=ulaw
allow=alaw
username=vicitrunk
secret=VicT1234
host=dynamic
dtmfmode=inband
qualify=yes
context=trunkinbound
insecure=very
permit=0.0.0.0/0.0.0.0
Protocol: SIP
Globals String: TRUNK = SIP/vicitrunk
exten => _9XX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9XX.,2,Dial(${TRUNK}/${EXTEN:1},55,tTo)
exten => _9XX.,3,Hangup
server 2:
Carrier ID: VICITRUNK
Carrier Name: VICITRUNK TEST
register => vicitrunk:VicT1234@192.168.1.b
[vicitrunk]
type=friend
disallow=all
allow=ulaw
allow=alaw
username=vicitrunk
secret=VicT1234
host=dynamic
dtmfmode=inband
qualify=yes
context=trunkinbound
insecure=very
permit=0.0.0.0/0.0.0.0
Protocol: SIP
Globals String: TRUNK = SIP/vicitrunk
exten => _9XX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9XX.,2,Dial(${TRUNK}/${EXTEN:1},55,tTo)
exten => _9XX.,3,Hangup
les deux trunk sont bien enregistrés.
SIP 101 in server 1
SIP160 in server 2
lorsque je fait un appel de 106(serveur 2 au serveur 1) au 101 j'ai les messages suivant sur la consol de deux serveur asterisk:
###serveur 2:
--executing AGI("SIP/cc160-087c3598","agi://127.0.0.1:4577/call_log") in new stack
--Called vicitrunk/101
--SIP/vicitrunk-087cb6f8 answered SIP/cc160-087c3598
==Spawn extension (default, 9101, 2) exited non-zero on 'SIP/cc160-087c3598'
--Executing DeadAGI("SIP/cc160-087c3598","agi//127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----8-----6") in new stack
--AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---8-----6 completes, returning 0
###serveur 1:
WARNING[5278]: channel.c:780 channel_find_locked: Avoided initial deadlock for '0xb6e27d30', 9 retries!
--Executing AGI("SIP/vicitrunk-b6e01f00","agi-DID_route.agi") in new stack
--Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi
--AGI Script agi-DID_route.agi completed, returning 0
--Executing Wait("SIP/vicitrunk-b6e01f00", "2") in new stack
--Executing Answer("SIP/vicitrunk-b6e01f00", "") in new stack
--Executing Playback("SIP/vicitrunk-b6e01f00", "ss-noservice") in new stack
--Playing 'ss-noservice' (language 'fr')
--Executing Playback("SIP/vicitrunk-b6e01f00", "vm-goodbye") in new stack
--Playing 'vm-goodbye' (language 'fr')
--Executing Hangup("SIP/vicitrunk-b6e01f00", "") in new stack
I need help I 1 months and I can not make a call between two servers thxxx
server 1:
Carrier ID: VICITRUNK
Carrier Name: VICITRUNK TEST
register => vicitrunk:VicT1234@192.168.1.a
[vicitrunk]
type=friend
disallow=all
allow=ulaw
allow=alaw
username=vicitrunk
secret=VicT1234
host=dynamic
dtmfmode=inband
qualify=yes
context=trunkinbound
insecure=very
permit=0.0.0.0/0.0.0.0
Protocol: SIP
Globals String: TRUNK = SIP/vicitrunk
exten => _9XX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9XX.,2,Dial(${TRUNK}/${EXTEN:1},55,tTo)
exten => _9XX.,3,Hangup
server 2:
Carrier ID: VICITRUNK
Carrier Name: VICITRUNK TEST
register => vicitrunk:VicT1234@192.168.1.b
[vicitrunk]
type=friend
disallow=all
allow=ulaw
allow=alaw
username=vicitrunk
secret=VicT1234
host=dynamic
dtmfmode=inband
qualify=yes
context=trunkinbound
insecure=very
permit=0.0.0.0/0.0.0.0
Protocol: SIP
Globals String: TRUNK = SIP/vicitrunk
exten => _9XX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9XX.,2,Dial(${TRUNK}/${EXTEN:1},55,tTo)
exten => _9XX.,3,Hangup
les deux trunk sont bien enregistrés.
SIP 101 in server 1
SIP160 in server 2
lorsque je fait un appel de 106(serveur 2 au serveur 1) au 101 j'ai les messages suivant sur la consol de deux serveur asterisk:
###serveur 2:
--executing AGI("SIP/cc160-087c3598","agi://127.0.0.1:4577/call_log") in new stack
--Called vicitrunk/101
--SIP/vicitrunk-087cb6f8 answered SIP/cc160-087c3598
==Spawn extension (default, 9101, 2) exited non-zero on 'SIP/cc160-087c3598'
--Executing DeadAGI("SIP/cc160-087c3598","agi//127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----8-----6") in new stack
--AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---8-----6 completes, returning 0
###serveur 1:
WARNING[5278]: channel.c:780 channel_find_locked: Avoided initial deadlock for '0xb6e27d30', 9 retries!
--Executing AGI("SIP/vicitrunk-b6e01f00","agi-DID_route.agi") in new stack
--Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi
--AGI Script agi-DID_route.agi completed, returning 0
--Executing Wait("SIP/vicitrunk-b6e01f00", "2") in new stack
--Executing Answer("SIP/vicitrunk-b6e01f00", "") in new stack
--Executing Playback("SIP/vicitrunk-b6e01f00", "ss-noservice") in new stack
--Playing 'ss-noservice' (language 'fr')
--Executing Playback("SIP/vicitrunk-b6e01f00", "vm-goodbye") in new stack
--Playing 'vm-goodbye' (language 'fr')
--Executing Hangup("SIP/vicitrunk-b6e01f00", "") in new stack
I need help I 1 months and I can not make a call between two servers thxxx