Hi,
I’d like to configure a vocal server but it only work from internal phone.
I must have missed a configuration somewhere.
When I call 6100 from internal phone directly with the extension I get the message from the server and when I type an other extension at the end of the call I succeed to reach an other phone.
But when I call from external phone I get the message from the server but impossible to reach a phone with its extension it hangup directly at the end of the message from the server vocal.
Here is my extension.conf :
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
[globals]
CONSOLE=Console/dsp ; Console interface for demo
IAXINFO=guest ; IAXtel username/password
TRUNK=Zap/g2 ; Trunk interface
TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0)[nimi]
include => parkedcalls
exten => 6100,1,Answer()
exten => 6100,2,Set(TIMEOUT(response)=10)
exten => 6100,n,WaitExten()
exten => 6100,3,Playback(/var/lib/asterisk/sounds/fr/NimiExtCustom01)
exten => 6100,n,WaitExten()
exten => _6XXX,n,Dial(SIP/${EXTEN},20)
exten => 6100,n,Dial(SIP/6000&SIP/6034&SIP/6004,12,tkTK)
exten => 6100,n,Hangup()exten => 6200,1,Answer()
exten => 6200,n,Dial(SIP/6007,5,tkTK)
exten => 6200,n,Dial(SIP/6003&SIP/6007,30,tkTK)
exten => 6200,n,Hangup()exten => 6033,1,Dial(SIP/6033&SIP/6050,60,tkTK)
exten => 6033,n,Hangup()
exten => _60XX,1,Dial(SIP/${EXTEN},60,tkTK)
exten => _60XX,n,Hangup()
exten => _[012345789].,1,Set(CALLERID(all)=“Nimi” <0033562922381>)exten => _[012345789].,n,PlayBack(/var/lib/asterisk/sounds/fr/silence/1)
exten => _[012345789].,n,Dial(SIP/${EXTEN}@forfait-ovh,180,tkTK)
exten => _[012345789].,n,Hangup()[macro-fromexter]
exten => s,1,Answer()
exten => s,n,Set(TIMEOUT(response)=20)
exten => s,n,Playback(/var/lib/asterisk/sounds/fr/NimiExtCustom01)
exten => s,n,WaitExten()
exten => _6XXX,n,Dial(SIP/${EXTEN},20)
exten => s,n,Wait(1)
exten => s,n,Dial(SIP/6100,12,tkTK)
exten => s,n,Dial(SIP/6000&SIP/6034&SIP/6004,12,tkTK)
exten => s,n,Dial(SIP/6035,5,tkTK)
exten => s,n,Dial(SIP/6034&SIP/6004,60,tkTK)
exten => s,n,Hangup()[ovh-sip]
exten => 0033972470892,1,Macro(fromexter)
exten => 0972470892,1,Macro(fromexter)
exten => 0033562922381,1,Macro(fromexter)
exten => 0562922381,1,Macro(fromexter)
exten => 0033972563452,1,Macro(fromexteradmise)
exten => 0972563452,1,Macro(fromexteradmise)
here is part of the sip.conf:
[general]
context=default
language=fr
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
canreinvite=no
defaultexpiry=1800
registertimeout=30
registerattempts=0
disallow=all
;allow=ulaw
allow=alaw
;allow=g722
allowguest=yes
nat=force_rport,comedia
callcounter=yesregister => 0033972470891:p
register => 0033972563451:p[forfait-ovh]
type=friend
host=sip.ovh.fr
fromdomain=sip.ovh.fr
context=ovh-sip
language=fr
insecure=invite,port
username=0033972470891
fromuser=0033972470891
secret=pwd
nat=force_rport,comedia
qualify=yes
dtmfmode=rfc2833
;disallow=all
;allow=ulaw
;allow=alaw
;allow=g722
canreinvite=no
video=no
restrictcid=no
amaflags=default
call-limit=4
If anyone have an idea of the parameters to look into, it would be great.
Kindly
Pierre