[asterisk-users] tcp version of toronto - osaka doesn't work

sean darcy seandarcy2 at gmail.com
Sun Jan 1 22:34:46 CST 2012


I'm trying to setup a simple tcp sip connection based on the toronto 
osaka example in the Asterisk book.

On the remote box (osaka) (1.8.9.0-rc1):

[toronto]
type=friend
transport=tcp
secret=welcome
context=toronto_incoming
host=dynamic
disallow=all
allow=ulaw

  sip show peer toronto


   * Name       : toronto
   Secret       : <Set>
   MD5Secret    : <Not set>
   Remote Secret: <Not set>
   Context      : toronto_incoming
........
   Useragent    : Asterisk PBX 10.1.0-rc1
   Reg. Contact : sip:osaka@<toronto>:5060;transport=TCP


On the home box (toronto) (10.1.0-rc1):

register => tcp://toronto:welcome@officePBX/osaka
[osaka]
type=friend
transport=tcp
secret=welcome
context=incoming
host=dynamic
disallow=all
allow=ulaw

But make a call from the remote Dial(SIP/toronto) , and the home cli shows:

Call from '' (<remote>:5060) to extension 'osaka' rejected because 
extension not found in context 'default'.

which makes no sense to me at all. Doesn't the string after the "/" in 
register refer to the user/device on the box doing the register? Doesn't 
it tell the device on the remote host which local device to connect to? 
i.e., toronto at remote > osaka at home ?? And where's context "default" 
coming from?

Is the book just out of date? Or is tcp not ready?

sean




More information about the asterisk-users mailing list