Hello everybody.
I’m new in Asterisk world, and I have a question.
I want to have an Asterisk PBX which will be connected to another running Asterisk PBX (from my phone provider).
As my phone provider don’t want to deliver a SIP trunk for me, I want to rgister three or four SIP extensions on my PBX as SIP client and forward each one for diferent incoming contexts.
It is possible?
Actually, I have:
[quote]in sip.conf:
[general]
register => op1_line_user:op1_line_password@op_domain
register => op2_line_user:op2_line_password@op_domain
…
[conex-line1]
type=friend
host=xxx
username=yyy
secret=zzz
qualify=yes
insecure=invite
dtmfmode=auto
disallow=all
allow=alaw
canreinvite=no
context=IncomingLine1Context
[conex-line2]
type=friend
host=xxx
username=yyy
secret=zzz
qualify=yes
insecure=invite
dtmfmode=auto
disallow=all
allow=alaw
canreinvite=no
context=IncomingLine2Context
…
In extensions.conf:
[IncomingLine1Context]
exten => s,1,Verbose(2,Any text…)
same => n,GotoIfTime(,,1,jan?label1)
;more priorities for the s extension in IncomingLine1Context
…
[IncomingLine2Context]
exten => s,1,Verbose(2,Any text…)
same => n,GotoIfTime(,,1,jan?label2)
;more priorities for the s extension in IncomingLine2Context
…[/quote]
Is this configuration OK?
Is not possible to have the s extension in both incoming contexts??
I don’t know which is the problem, but any call incoming to the PBX (indiferent to the incoming channel) go always to the first incoming context.
Thanks in advanced!
Regards.