Moderators: muppetmaster, Moderator, Support
ambiorixg12 wrote:The must basic could be :
exten=>_x.,1,Dial(SIP/${mytrunk}/${yourcellpone},25)
exten => 1017,1,Dial(SIP/117,20)
exten => 1017,n,Dial(DAHDI/g4/${4165551212},25)
exten => 1017,n,Goto(default,s,4,3)
exten => 1017,n,VoiceMail(117@VoiceMail)
exten => 1017,n,VoiceMail()
exten => s,4,Background(2)aristech wrote:ambiorixg12 wrote:The must basic could be :
So by adding this line to my extensions.conf should be fine?
- Code: Select all
exten => 1017,1,Dial(SIP/117,20)
exten => 1017,n,Dial(DAHDI/g4/${4165551212},25)
exten => 1017,n,Goto(default,s,4,3)
exten => 1017,n,VoiceMail(117@VoiceMail)
exten => 1017,n,VoiceMail()
This is what the third line means
- Code: Select all
exten => s,4,Background(2)
johnkiniston wrote:aristech wrote:ambiorixg12 wrote:The must basic could be :
So by adding this line to my extensions.conf should be fine?
- Code: Select all
exten => 1017,1,Dial(SIP/117,20)
exten => 1017,n,Dial(DAHDI/g4/${4165551212},25)
exten => 1017,n,Goto(default,s,4,3)
exten => 1017,n,VoiceMail(117@VoiceMail)
exten => 1017,n,VoiceMail()
This is what the third line means
- Code: Select all
exten => s,4,Background(2)
The third line in your [code] block is a Goto not a Background and it's malformed at that. You have too many options to your Goto.
Also your second Dial statement is invalid unless you have a variable named 4165551212 storing the number to call.
Try
[code]
exten => 1017,1,Dial(SIP/117,20)
exten => 1017,n,Dial(DAHDI/g4/4165551212,25)
exten => 1017,n,Playback(vm-leavemsg)
exten => 1017,n,VoiceMail(117@VoiceMail)
exten => 1017,n,Hangup()
aristech wrote:Thanks I am going to try it and let you know.
I will not be able to try until after hours. Would this be the same as the Followme Feature? Or does this ring both phones simultaneously? Or does it ring the extension then the External number and if no one picks up either it defaults back to the asterisk voice mail?
exten => 1017,1,Dial(SIP/117,20)
exten => 1017,n,Dial(DAHDI/g4/4155551212,25)
exten => 1017,n,Playback(vm-leavemsg)
exten => 1017,n,VoiceMail(117@VoiceMail)
exten => 1017,n,Hangup() Called SIP/117
-- SIP/117-00000011 is ringing
-- Nobody picked up in 20000 ms
-- Executing [1017@Incoming:2] Dial("DAHDI/i1/6505554980-26", "DAHDI/g4/4155551212,25") in new stack
-- Called DAHDI/g4/4155551212
-- DAHDI/29-1 answered DAHDI/i1/6505554980-26
-- Native bridging DAHDI/i1/6505554980-26 and DAHDI/29-1
-- Span 1: Channel 0/1 got hangup request, cause 16
-- Hanging up on 'DAHDI/29-1'
-- Hungup 'DAHDI/29-1'
== Spawn extension (Incoming, 4017, 2) exited non-zero on 'DAHDI/i1/6505554980-26'
-- Hungup 'DAHDI/i1/6505554980-26'Users browsing this forum: No registered users and 14 guests