Hi all
My sip provider is controlling with ip address for phone number.
No need username and password
How can I setup trunk in asterisk?
pls instruction me for also outgoing
Hi all
My sip provider is controlling with ip address for phone number.
No need username and password
How can I setup trunk in asterisk?
pls instruction me for also outgoing
Are you using a GUI or straight asterisk ? Do you have the IP that they are sending you the traffic from as well as where you are sending it to ?
I am using text base asterisk
my sip.conf is
[outgoing]
host=203.XXX.XXX.XXX
type=friend
qualify=yes
I got incoming
Thanks
Ok. So what is your issue ? You can use the same entry in sip.conf for both: e.g.
[carrier-1]
type=friend
context=from-external
host=XXX.XXX.XXX.XXX
nat=no
dtmfmode=rfc2833
disallow=all
allow=g729
allow=ulaw
allow=gsm
You set in extensions.conf the context from-external to set where the calls from for context (in our example from-external). To make a call in extensions.conf you would have something like:
Exten => _X.,1,Dial(SIP/${EXETEN}@carrier-1)
Make sure that you separate your incoming and outgoing context’s so that people don’t abuse your system and make free calls.