Hello all,
I registrered a simple SIP with voipbuster:
register => username:secret@sip.voipbuster.com
[trunk_1]
type=friend
context=incoming_trunk_1
host = sip.voipbuster.com
username = username
fromuser = username
secret = secret
[incoming_trunk_1]
exten => s,1,Answer()
exten => s,n,Playback(hello-world)
exten => s,n,Hangup()
This does not work somehow? It refuses to go to the incoming_trunk_1 context straight away.
But if I do this:
[default]
include => incoming_trunk_1
It does work
Why doesn’t the SIP.conf context point the incoming calls straight to the incoming_trunk_1 context in extensions.conf?
Thanks!
Raffles
November 23, 2008, 3:53pm
2
Strange one.
It is obviously going to the [default] context - and not the proper one.
Try ‘register => username:secret@sip.voipbuster.com /trunk_1 ’ and see where that goes.
Hm when I read your reply, I thought, ohh ofcourse! I mixed up the outgoing and incoming context.
But even this:
register => username:secret@sip.voipbuster.com /trunk_1
or
register => username:secret@sip.voipbuster.com /incoming_trunk_1
Gives me the error:
chan_sip.c:14383 handle_request_invite: Call from ‘’ to extension ‘trunk_1’ rejected because extension not found.
(or incoming_trunk_1)
Strange error I cannot really place…
Hi
The /xyz123 at the end of a register line is a extension not context.
the context is defined in the genral section and the the /xyz123 need to be an extension in it.
Ian
Raffles
November 24, 2008, 2:43pm
5
…in other words…
sip.conf
context = incoming_trunk_1
register => username:secret@sip.voipbuster.com /9876
extensions.conf
[incoming_trunk_1]
exten => 9876,1,Answer()
exten => 9876,n,Playback(tt-monkeys)
exten => 9876,n,Hangup()