<span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt">verify your codec are the same on both trunks. make sure the both trunks are using the same codec. make sure you have the correct ports open. make sure you force all udp traffic to flow through your astrisk switch as well.<br />
<br />
<div id="divSignature">Thanks<br />
<br />
Bryant Zimmerman (ZK Tech Inc.)<br />
616-855-1030 Ext. 2003</div>
<br />
<br />
<span style="font-size: 10pt; font-family: tahoma,arial,sans-serif;"><hr align="center" width="100%" size="2" />
<strong>From</strong>: "Sebastian Arcus" <shop@open-t.co.uk><br />
<strong>Sent</strong>: Sunday, October 02, 2011 11:20 AM<br />
<strong>To</strong>: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com><br />
<strong>Subject</strong>: [asterisk-users] Sipgate trunk doesn't bridge with other trunk, but works with local extensions</span><br />
<br />
Hello list,<br />
<br />
My setup is as follows:<br />
<br />
Trunks: 2 sip trunks, one with voipcheap.co.uk, one with sipgate.co.uk<br />
Extensions: 1 hardware sip phone<br />
Asterisk: 1.8.7.0<br />
<br />
Everything is working fine, except bridging between the sipgate and <br />
voipcheap trunks. I'll explain:<br />
<br />
1. If I call from an external phone my sipgate landline number, it <br />
connects to my internal hardware sip phone/extension and works fine.<br />
2. If I use my hardware sip phone to make outgoing calls through the <br />
voipcheap.co.uk trunk - it all works fine.<br />
3. However, I want the call coming in through the sipgate trunk to call <br />
my mobile phone through the voipcheap trunk - this is not working. It <br />
will ring the mobile number, but when I answer there is no sound at <br />
either end.<br />
<br />
I assume it is not:<br />
<br />
1. A NAT problem, otherwise it would cause problems when making calls <br />
through voipcheap, or receiving through sipgate (but I could be wrong).<br />
2. A codec problem - as I've forced everything on alaw<br />
<br />
I can't see any errors in the console either. Please find below my <br />
sip.conf, extensions.conf:<br />
<br />
#/etc/asterisk/sip.conf<br />
<br />
[general]<br />
<br />
canreinvite=no<br />
disallow=all<br />
allow=alaw<br />
allowguest=no<br />
externip=111.222.333.444<br />
localnet=192.168.16.0/255.255.255.0<br />
<br />
tos_sip=cs3 ; Sets TOS for SIP packets.<br />
tos_audio=ef ; Sets TOS for RTP audio packets.<br />
<br />
registerattempts=0<br />
<br />
register => 1234567:my_password@sipgate.co.uk/1234567<br />
<br />
[sipgate]<br />
type = friend<br />
host=sipgate.co.uk<br />
fromdomain=sipgate.co.uk<br />
disallow=all<br />
allow=alaw<br />
qualify=yes<br />
nat=yes<br />
canreinvite=no<br />
<br />
[voipcheap]<br />
type=peer<br />
username=my_username<br />
fromdomain=sip.voipcheap.co.uk<br />
realm=sip.voipcheap.co.uk<br />
secret=my_password<br />
host=sip.voipcheap.co.uk<br />
disallow=all<br />
allow=alaw<br />
canreinvite=no<br />
<br />
[20]<br />
type=friend<br />
username=20<br />
secret=my_password<br />
host=dynamic<br />
context=from_internal_sip<br />
qualify=yes<br />
<br />
<br />
<br />
#/etc/asterisk/extensions.conf<br />
[general]<br />
static=yes<br />
writeprotect=yes<br />
autofallthrough=yes<br />
priorityjumping=no<br />
<br />
<br />
[from_internal_sip]<br />
exten => _9.,1,Dial(SIP/${EXTEN:1}@voipcheap)<br />
exten => _9.,n,HangUp()<br />
<br />
<br />
[from_sipgate]<br />
<br />
exten => 6012878,1,Dial(SIP/0794012345@voipcheap)<br />
exten => 6012878,n,HangUp()<br />
<br />
Any suggestions would be appreciated<br />
<br />
Sebastian<br />
<br />
--<br />
_____________________________________________________________________<br />
-- Bandwidth and Colocation Provided by http://www.api-digital.com --<br />
New to Asterisk? Join us for a live introductory webinar every Thurs:<br />
http://www.asterisk.org/hello<br />
<br />
asterisk-users mailing list<br />
To UNSUBSCRIBE or update options visit:<br />
http://lists.digium.com/mailman/listinfo/asterisk-users<br /></span>