've three servers:
1 - Govoipporto - version 1.2.10
2 - servirtporto - version 11.2.1
3 - viriato - version 13.10
Each time a call comes from servirtporto, the call goes successfully to the incoming-iax context.
But the calls form govoipporto goes always to default context and I wonder why?!
The Trunksips between Govoipporto and servirtporto are working well, and outgoing calls work fine.
Configuration of Trunksip to Viriato in Govoipporto and General section:
[general]
realm=Jar209Reftel.refertelecom.pt
context=default
allowoverlap=yes
srvlookup=yes
defaultexpiry=90
;qualify=yes
videosupport=yes
notifyringing = yes
notifyhold = yes
callcounter = yes
counteronpeer = yes
alwaysauthreject = yes
allowguest=no
disallow=all
allow = alaw
allow = ulaw
allow = g729
allow = gsm
rtptimeout=300
nat=no
bindaddr=0.0.0.0
bindport=5060
tos=0xb8
[TRUNKSIP-VIRIATO]
type=peer
host=10.192.230.231
context=incoming-iax
disallow=all
allow = ulaw
dtmfmode=inband
canreinvite=no
qualify=yes
nat=no
deny=0.0.0.0/0.0.0.0
permit=10.192.23.231/255.255.255.255
And in servirtporto:
[general]
realm=Jar209Reftel.refertelecom.pt
context=default
allowoverlap=yes
srvlookup=yes
defaultexpiry=90
;qualify=8000
videosupport=yes
notifyringing = yes
notifyhold = yes
callcounter = yes
counteronpeer = yes
alwaysauthreject = yes
allowguest=no
disallow=all
allow = alaw
allow = ulaw
allow = g722
allow = g729
allow = gsm
rtptimeout=300
nat=no
bindaddr=0.0.0.0
bindport=5060
tos=0xb8
[TRUNKSIP-VIRIATO]
type=peer
host=10.192.230.231
context=incoming-iax
disallow=all
allow = ulaw
dtmfmode=inband
canreinvite=no
qualify=8000
nat=no
deny=0.0.0.0/0.0.0.0
permit=10.192.230.231/255.255.255.255
And in side of viriato:
[general]
realm=Jar209Reftel.refertelecom.pt
context=default
allowoverlap=yes
srvlookup=yes
defaultexpiry=90
;qualify=8000
videosupport=yes
notifyringing = yes
notifyhold = yes
callcounter = yes
counteronpeer = yes
alwaysauthreject = yes
;allowguest=no
disallow=all
allow = alaw
allow = ulaw
;allow = g722
allow = g729
allow = gsm
rtptimeout=300
nat=no
bindaddr=0.0.0.0
bindport=5060
tos=0xb8
[TRUNKSIP-GOVOIPPORTO]
type=peer
host=10.128.9.60
context=incoming-iax
disallow=all
allow = ulaw
dtmfmode=inband
;canreinvite=no
qualify=yes
nat=no
deny=0.0.0.0/0.0.0.0
permit=10.128.9.60/255.255.255.255
[TRUNKSIP-SERVIRTPORTO]
type=peer
host=10.131.10.10
context=incoming-iax
disallow=all
allow = ulaw
dtmfmode=inband
canreinvite=no
qualify=8000
nat=no
deny=0.0.0.0/0.0.0.0
permit=10.131.10.10/255.255.255.255
Example of calls:
From Govoipporto and in Viriato:
Connected to Asterisk 13.10.0 currently running on viriato (pid = 20431)
== Using SIP RTP CoS mark 5
– Executing [27757@default:1] Ringing(“SIP/10.128.8.250-00003928”, “”) in new stack
– Executing [27757@default:2] Set(“SIP/10.128.8.250-00003928”, “numero=”) in new stack
– Executing [27757@default:3] GotoIf(“SIP/10.128.8.250-00003928”, “1?6:4”) in new stack
– Goto (default,27757,6)
– Executing [27757@default:6] Dial(“SIP/10.128.8.250-00003928”, “SIP/27757,60,tT”) in new stack
== Using SIP RTP CoS mark 5
– Called SIP/27757
From servirtporto and in Viriato
Using SIP RTP CoS mark 5
– Executing [27757@incoming-iax:1] Ringing(“SIP/TRUNKSIP-SERVIRTPORTO-0000393a”, “”) in new stack
– Executing [27757@incoming-iax:2] Set(“SIP/TRUNKSIP-SERVIRTPORTO-0000393a”, “numero=”) in new stack
– Executing [27757@incoming-iax:3] GotoIf(“SIP/TRUNKSIP-SERVIRTPORTO-0000393a”, “1?6:4”) in new stack
– Goto (incoming-iax,27757,6)
– Executing [27757@incoming-iax:6] Dial(“SIP/TRUNKSIP-SERVIRTPORTO-0000393a”, “SIP/27757,60,tT”) in new stack
== Using SIP RTP CoS mark 5
– Called SIP/27757
– SIP/27757-0000393b is ringing