WARNING: this is an automatic post retrieved from the Asterisk-Users Mailing List, not an authored post
Mailing-list Collector
January 02, 2012
Asterisk Users
Tags: asterisk, home, HOST, osaka osaka, rc1, sip, useragent
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 :
MD5Secret :
Remote Secret:
Context : toronto_incoming
……..
Useragent : Asterisk PBX 10.1.0-rc1
Reg. Contact : sip:osaka@: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 ” (: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@remote > osaka@home ?? And where’s context “default”
coming from?
Is the book just out of date? Or is tcp not ready?
sean