I can dial out with not problem, just having trouble with the inbound.
Out bout is assigned to context default.
I am trying to create and inbound context.
Obviously this has to be a different context.
I would just throw the outbound under globals, but where I am going with this, that would not be a good idea so I am trying to understand how to make it work
- Without outbound being in the globals context.
- Without it being in the same context as inbound.
Can I include 2 context in my sip.conf?
Context=outbound
Context=inbound
And then just create those two in extensions?
I will get into arguments later is my learning progresses, I am just taking baby steps in my learning phase.
I am doing a ton of reading but finding everything “but” what I am looking for.
Here are my configs. (I know dial is in the context now, I need to get it out of there!)
Extensions.conf
[default]
exten => 100,1,Wait(1)
exten => 100,2,Answer
exten => 100,3,Playback(tt-weasles)
exten => 100,4,Voicemail(44)
exten => 100,4,Hangup
exten => 8005181896,2,DIAL(SIP/100,20)
exten => _1XXXXXXXXXX,1,DIAL(SIP/teliax/${EXTEN},30,tr)
exten => _XXXXXXXXXX,1,DIAL(SIP/teliax/${EXTEN},30,tr)
sip.conf
[100]
context=default
type=friend
nat=no
host=dynamic
canreinvite=no
seceret=welcome
mailbox=100
callerid=“Brad Sumrall”