Hi to everyone!
I’m trying to set up asterisk to make inbound and outbound calls, without good results…
Here’s my sip.conf
[code][40]
type = friend
host = dynamic
port = 5060
context = out
secret = password
nat = yes
canreinvite = no
dtmfmode = rfc2833
mailbox = 40
deny = 0.0.0.0/0.0.0.0
permit = 192.168.1.0/255.255.255.0
[41]
type = friend
host = dynamic
port = 5060
context = out
secret = password
nat = yes
canreinvite = no
dtmfmode = rfc2833
mailbox = 41
deny = 0.0.0.0/0.0.0.0
permit = 192.168.1.0/255.255.255.0[/code]
and here my extensions.conf
[code]
[general]
static = yes
writeprotect = no
autofallthrough = no
[default]
; Segreteria Telefonica
exten => 777,1,VoiceMailMain(${EXTEN@default})
exten => 777,2,Hangup()
; Definizione interni
exten => 40,1,Macro(intcall,40);
exten => 41,1,Macro(intcall,41);
[from-pstn]
exten=> s,1,Answer()
exten=> s,2,Dial(SIP/${ARG1})
[macro-intcall]
exten => s,1,Dial(SIP/${ARG1},30)
exten => s,2,VoiceMail(${ARG1})
exten => s,3,Hangup() [/code]
*Note that there isn’t an outbound rule, because i’m setting up the inbound rules; if you now how to setu up it help me *
Can you help me with this issues?
I’m new with asterisk!
Can you post the right code? I would like only to make and receive calls…
Thank you so much!
Ale