Priority 103 should be dial and not hangup, that way it will do the
voicemail stuff with the wait as well.
On 10/11/05, Zack Odell <dabigshiznizzle@sctelcom.net>
wrote:>
> Greetings,
>
> I have implemented the following command to allow CNAM to be delivered to
my
> users.
>
> exten => 9969,1,Wait(1)
>
> This works great!
>
> However it has spawned a new problem. When this is implemented into a full
> dial plan. If a user is set to DND or sends a call to Voicemail by hitting
> deny the caller gets a busy. Below is a result of the calls.
>
> With the Wait(1) statement
> -- Executing Wait("Zap/1-1", "1") in new stack
> -- Accepting call from '3169321000' to '9969' on
channel 0/1, span 1
> -- Executing Dial("Zap/1-1", "SIP/9969|20") in new
stack
> -- Called 9969
> -- Got SIP response 486 "Do Not Disturb" back from
192.168.1.100
> -- SIP/9969-d492 is busy
> == Everyone is busy/congested at this time
> -- Executing Hangup("Zap/1-1", "") in new stack
> == Spawn extension (default, 9969, 103) exited non-zero on
'Zap/1-1'
> -- Hungup 'Zap/1-1'
>
>
>
> Without the Wait(1) statement
> -- Executing Dial("Zap/1-1", "SIP/9969|20") in new
stack
> -- Called 9969
> -- Accepting call from '3169321000' to '9969' on
channel 0/1, span 1
> -- Got SIP response 486 "Do Not Disturb" back from
192.168.1.100
> -- SIP/9969-0c98 is busy
> == Everyone is busy/congested at this time
> -- Executing VoiceMail2("Zap/1-1", "b9969") in new
stack
> -- Playing 'voicemail/default/9969/busy' (language
'en')
> -- Playing 'vm-intro' (language 'en')
> -- Channel 0/1, span 1 got hangup
>
>
>
>
> This is the full dialplan for this extension -
>
> exten => 9969,1,Wait(1)
> exten => 9969,2,Dial(SIP/9969,20)
> exten => 9969,3,Setvar(NewCaller=${CALLERIDNUM})
> exten => 9969,4,SetCIDNum(${CALLERIDNUM})
> exten => 9969,5,Dial(Zap/g1/13169321000,10,m)
> exten => 9969,6,SetCIDNum(${NewCaller})
> exten => 9969,7,Voicemail2(u9969)
> exten => 9969,102,Voicemail2(b9969)
> exten => 9969,103,Hangup
>
>
> Now the CNAM is very important and I would love for this to work, so if
> anyone has suggestions, please help.
>
> Asterisk 1.0.5
> Gentoo 2005.1
> Quad-PRI card
>
>
>
>
>
>
>
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
>
> Asterisk-Users mailing list
> Asterisk-Users@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>