[Asterisk-Users] IVR menus on different DIDs

Christian Gansberger c.gansberger at gmail.com
Sat Jul 1 04:40:08 MST 2006


So here is the full log:
at the end i have 3 ivr in my config
first DID = 10
second DID = 20
third DID = 0

i can hear the right message for my choices, but when i press 1 i always get
the file from my third ivr menu


First-ivr: logs

Jul  1 13:27:21 VERBOSE[17872] logger.c:     -- Accepting AUTHENTICATED call
from 213.235.242.217:
       > requested format = alaw,
       > requested prefs = (),
       > actual format = alaw,
       > host prefs = (alaw|ulaw|gsm),
       > priority = mine
Jul  1 13:27:22 VERBOSE[18125] logger.c:     -- Executing
NoOp("IAX2/wuk-bony-iax-sil-5", "Dialed number was: 1236300010") in new
stack
Jul  1 13:27:22 VERBOSE[18125] logger.c:     -- Executing
Answer("IAX2/wuk-bony-iax-sil-5", "") in new stack
Jul  1 13:27:22 DEBUG[17852] channel.c: Avoiding initial deadlock for
'IAX2/wuk-bony-iax-sil-5'
Jul  1 13:27:22 VERBOSE[18125] logger.c:     -- Executing
Set("IAX2/wuk-bony-iax-sil-5", "TIMEOUT(digit)=2") in new stack
Jul  1 13:27:22 VERBOSE[18125] logger.c:     -- Digit timeout set to 2
Jul  1 13:27:22 VERBOSE[18125] logger.c:     -- Executing
Set("IAX2/wuk-bony-iax-sil-5", "TIMEOUT(response)=10") in new stack
Jul  1 13:27:22 VERBOSE[18125] logger.c:     -- Response timeout set to 10
Jul  1 13:27:22 VERBOSE[18125] logger.c:     -- Executing
BackGround("IAX2/wuk-bony-iax-sil-5", "/var/lib/asterisk/sounds/new-mexico")
in new stack
Jul  1 13:27:22 DEBUG[18125] channel.c: Scheduling timer at 160 sample
intervals
Jul  1 13:27:22 VERBOSE[18125] logger.c:     -- Playing
'/var/lib/asterisk/sounds/new-mexico' (language 'de')
Jul  1 13:27:22 DEBUG[17872] chan_iax2.c: Ooh, voice format changed to 8
Jul  1 13:27:23 DEBUG[18125] channel.c: Scheduling timer at 0 sample
intervals
Jul  1 13:27:23 DEBUG[18125] channel.c: Scheduling timer at 0 sample
intervals
Jul  1 13:27:27 VERBOSE[18125] logger.c:   == CDR updated on
IAX2/wuk-bony-iax-sil-5
Jul  1 13:27:27 VERBOSE[18125] logger.c:     -- Executing
Set("IAX2/wuk-bony-iax-sil-5", "COUNT=1") in new stack
Jul  1 13:27:27 VERBOSE[18125] logger.c:     -- Executing
BackGround("IAX2/wuk-bony-iax-sil-5",
"/var/lib/asterisk/sounds/sound.gyn/MP3verh/F_Einleitung4") in new stack
Jul  1 13:27:27 DEBUG[18125] channel.c: Scheduling timer at 160 sample
intervals
Jul  1 13:27:27 VERBOSE[18125] logger.c:     -- Playing
'/var/lib/asterisk/sounds/sound.gyn/MP3verh/F_Einleitung4' (language 'de')
Jul  1 13:27:31 DEBUG[17870] chan_sip.c: Scheduled a registration timeout
for sip1.sil.at id  #2716
Jul  1 13:27:31 DEBUG[17870] chan_sip.c: (Provisional) Stopping
retransmission (but retaining packet) on '
10dc3af6455f81d512b7e7ea0d83154f at 213.129.253.253' Request 128: Found
Jul  1 13:27:31 DEBUG[17870] chan_sip.c: Stopping retransmission on '
10dc3af6455f81d512b7e7ea0d83154f at 213.129.253.253' of Request 128: Match
Found
Jul  1 13:27:31 DEBUG[17870] chan_sip.c: Registration successful
Jul  1 13:27:31 DEBUG[17870] chan_sip.c: Cancelling timeout 2716
Jul  1 13:27:34 DEBUG[17872] chan_iax2.c: Immediately destroying 5, having
received hangup
Jul  1 13:27:34 DEBUG[18125] channel.c: Scheduling timer at 0 sample
intervals
Jul  1 13:27:34 VERBOSE[18125] logger.c:   == Spawn extension (iax, 1, 2)
exited non-zero on 'IAX2/wuk-bony-iax-sil-5'
Jul  1 13:27:34 DEBUG[18125] cdr_addon_mysql.c: cdr_mysql: inserting a CDR
record.
Jul  1 13:27:34 DEBUG[18125] cdr_addon_mysql.c: cdr_mysql: SQL command as
follows: INSERT INTO cdr
(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode)
VALUES ('2006-07-01 13:27:22','\"crs at sojus\"
<+4312361899201>','+4312361899201','1','iax',
'IAX2/wuk-bony-iax-sil-5','','BackGround','/var/lib/asterisk/sounds/sound.gyn/MP3verh/F_Einleitung4',12,12,'ANSWERED',3,'')
Jul  1 13:27:34 DEBUG[18125] chan_iax2.c: We're hanging up
IAX2/wuk-bony-iax-sil-5 with cause 16 now...
Jul  1 13:27:34 DEBUG[18125] chan_iax2.c: Really destroying
IAX2/wuk-bony-iax-sil-5 now...
Jul  1 13:27:34 VERBOSE[18125] logger.c:     -- Hungup
'IAX2/wuk-bony-iax-sil-5'

Second IVR: log

Jul  1 13:28:58 VERBOSE[17872] logger.c:     -- Accepting AUTHENTICATED call
from 213.235.242.217:
       > requested format = alaw,
       > requested prefs = (),
       > actual format = alaw,
       > host prefs = (alaw|ulaw|gsm),
       > priority = mine
Jul  1 13:28:58 VERBOSE[18145] logger.c:     -- Executing
NoOp("IAX2/wuk-bony-iax-sil-10", "Dialed number was: 1236300020") in new
stack
Jul  1 13:28:58 VERBOSE[18145] logger.c:     -- Executing
Answer("IAX2/wuk-bony-iax-sil-10", "") in new stack
Jul  1 13:28:58 DEBUG[17852] channel.c: Avoiding initial deadlock for
'IAX2/wuk-bony-iax-sil-10'
Jul  1 13:28:58 VERBOSE[18145] logger.c:     -- Executing
Set("IAX2/wuk-bony-iax-sil-10", "TIMEOUT(digit)=2") in new stack
Jul  1 13:28:58 VERBOSE[18145] logger.c:     -- Digit timeout set to 2
Jul  1 13:28:58 VERBOSE[18145] logger.c:     -- Executing
Set("IAX2/wuk-bony-iax-sil-10", "TIMEOUT(response)=10") in new stack
Jul  1 13:28:58 VERBOSE[18145] logger.c:     -- Response timeout set to 10
Jul  1 13:28:58 VERBOSE[18145] logger.c:     -- Executing
BackGround("IAX2/wuk-bony-iax-sil-10", "/var/lib/asterisk/sounds/illinois")
in new stack
Jul  1 13:28:58 DEBUG[18145] channel.c: Scheduling timer at 160 sample
intervals
Jul  1 13:28:58 VERBOSE[18145] logger.c:     -- Playing
'/var/lib/asterisk/sounds/illinois' (language 'de')
Jul  1 13:28:58 DEBUG[17872] chan_iax2.c: Ooh, voice format changed to 8
Jul  1 13:28:59 DEBUG[18145] channel.c: Scheduling timer at 0 sample
intervals
Jul  1 13:28:59 DEBUG[18145] channel.c: Scheduling timer at 0 sample
intervals
Jul  1 13:29:02 VERBOSE[18145] logger.c:   == CDR updated on
IAX2/wuk-bony-iax-sil-10
Jul  1 13:29:02 VERBOSE[18145] logger.c:     -- Executing
Set("IAX2/wuk-bony-iax-sil-10", "COUNT=1") in new stack
Jul  1 13:29:02 VERBOSE[18145] logger.c:     -- Executing
BackGround("IAX2/wuk-bony-iax-sil-10",
"/var/lib/asterisk/sounds/sound.gyn/MP3verh/F_Einleitung4") in new stack
Jul  1 13:29:02 DEBUG[18145] channel.c: Scheduling timer at 160 sample
intervals
Jul  1 13:29:02 VERBOSE[18145] logger.c:     -- Playing
'/var/lib/asterisk/sounds/sound.gyn/MP3verh/F_Einleitung4' (language 'de')
Jul  1 13:29:10 DEBUG[17872] chan_iax2.c: Immediately destroying 10, having
received hangup
Jul  1 13:29:10 DEBUG[18145] channel.c: Scheduling timer at 0 sample
intervals
Jul  1 13:29:10 VERBOSE[18145] logger.c:   == Spawn extension (iax, 1, 2)
exited non-zero on 'IAX2/wuk-bony-iax-sil-10'
Jul  1 13:29:10 DEBUG[18145] cdr_addon_mysql.c: cdr_mysql: inserting a CDR
record.
Jul  1 13:29:10 DEBUG[18145] cdr_addon_mysql.c: cdr_mysql: SQL command as
follows: INSERT INTO cdr
(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode)
VALUES ('2006-07-01 13:28:58','\"crs at sojus\"
<+4312361899201>','+4312361899201','1','iax',
'IAX2/wuk-bony-iax-sil-10','','BackGround','/var/lib/asterisk/sounds/sound.gyn/MP3verh/F_Einleitung4',12,12,'ANSWERED',3,'')
Jul  1 13:29:10 DEBUG[18145] chan_iax2.c: We're hanging up
IAX2/wuk-bony-iax-sil-10 with cause 16 now...
Jul  1 13:29:10 DEBUG[18145] chan_iax2.c: Really destroying
IAX2/wuk-bony-iax-sil-10 now...
Jul  1 13:29:10 VERBOSE[18145] logger.c:     -- Hungup
'IAX2/wuk-bony-iax-sil-10'
Jul  1 13:29:15 DEBUG[17870] chan_sip.c: Stopping retransmission on '
55e2b4541b5c85d97eef3f2e7e531b40 at 213.129.253.253' of Request 102: Match
Found
Jul  1 13:29:15 DEBUG[17870] chan_sip.c: Stopping retransmission on '
6cbb26cc64ea35b6378686610efd675c at 213.129.253.253' of Request 102: Match
Found
Jul  1 13:29:16 DEBUG[17872] chan_iax2.c: Peer lastms 1, historicms 1, maxms
5000

third ivr: log

Jul  1 13:33:33 VERBOSE[17872] logger.c:     -- Accepting AUTHENTICATED call
from 213.235.242.217:
       > requested format = alaw,
       > requested prefs = (),
       > actual format = alaw,
       > host prefs = (alaw|ulaw|gsm),
       > priority = mine
Jul  1 13:33:33 VERBOSE[18198] logger.c:     -- Executing
Answer("IAX2/wuk-bony-iax-sil-17", "") in new stack
Jul  1 13:33:33 DEBUG[17852] channel.c: Avoiding initial deadlock for
'IAX2/wuk-bony-iax-sil-17'
Jul  1 13:33:33 VERBOSE[18198] logger.c:     -- Executing
Set("IAX2/wuk-bony-iax-sil-17", "TIMEOUT(digit)=2") in new stack
Jul  1 13:33:33 VERBOSE[18198] logger.c:     -- Digit timeout set to 2
Jul  1 13:33:33 VERBOSE[18198] logger.c:     -- Executing
Set("IAX2/wuk-bony-iax-sil-17", "TIMEOUT(response)=10") in new stack
Jul  1 13:33:33 VERBOSE[18198] logger.c:     -- Response timeout set to 10
Jul  1 13:33:33 VERBOSE[18198] logger.c:     -- Executing
BackGround("IAX2/wuk-bony-iax-sil-17",
"/var/lib/asterisk/sounds/sound.gyn/TelefonansageWAV/F_Telefonansage4") in
new stack
Jul  1 13:33:33 DEBUG[18198] channel.c: Scheduling timer at 160 sample
intervals
Jul  1 13:33:33 VERBOSE[18198] logger.c:     -- Playing
'/var/lib/asterisk/sounds/sound.gyn/TelefonansageWAV/F_Telefonansage4'
(language 'de')
Jul  1 13:33:33 DEBUG[17872] chan_iax2.c: Ooh, voice format changed to 8
Jul  1 13:33:48 DEBUG[18198] channel.c: Scheduling timer at 0 sample
intervals
Jul  1 13:33:48 DEBUG[18198] pbx.c: Oooh, got something to jump out with
('1')!
Jul  1 13:33:50 VERBOSE[18198] logger.c:   == CDR updated on
IAX2/wuk-bony-iax-sil-17
Jul  1 13:33:50 VERBOSE[18198] logger.c:     -- Executing
Set("IAX2/wuk-bony-iax-sil-17", "COUNT=1") in new stack
Jul  1 13:33:50 VERBOSE[18198] logger.c:     -- Executing
BackGround("IAX2/wuk-bony-iax-sil-17",
"/var/lib/asterisk/sounds/sound.gyn/MP3verh/F_Einleitung4") in new stack
Jul  1 13:33:50 DEBUG[18198] channel.c: Scheduling timer at 160 sample
intervals
Jul  1 13:33:50 VERBOSE[18198] logger.c:     -- Playing
'/var/lib/asterisk/sounds/sound.gyn/MP3verh/F_Einleitung4' (language 'de')
Jul  1 13:34:00 DEBUG[17872] chan_iax2.c: Immediately destroying 17, having
received hangup
Jul  1 13:34:00 DEBUG[18198] channel.c: Scheduling timer at 0 sample
intervals
Jul  1 13:34:00 VERBOSE[18198] logger.c:   == Spawn extension (iax, 1, 2)
exited non-zero on 'IAX2/wuk-bony-iax-sil-17'
Jul  1 13:34:00 DEBUG[18198] cdr_addon_mysql.c: cdr_mysql: inserting a CDR
record.
Jul  1 13:34:00 DEBUG[18198] cdr_addon_mysql.c: cdr_mysql: SQL command as
follows: INSERT INTO cdr
(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode)
VALUES ('2006-07-01 13:33:33','\"crs at sojus\"
<+4312361899201>','+4312361899201','1','iax',
'IAX2/wuk-bony-iax-sil-17','','BackGround','/var/lib/asterisk/sounds/sound.gyn/MP3verh/F_Einleitung4',27,27,'ANSWERED',3,'')
Jul  1 13:34:00 DEBUG[18198] chan_iax2.c: We're hanging up
IAX2/wuk-bony-iax-sil-17 with cause 16 now...
Jul  1 13:34:00 DEBUG[18198] chan_iax2.c: Really destroying
IAX2/wuk-bony-iax-sil-17 now...
Jul  1 13:34:00 VERBOSE[18198] logger.c:     -- Hungup
'IAX2/wuk-bony-iax-sil-17'

for completness here is the context of the third ivr:

[infosys-gynmus-verh]

exten => ${GYN_NR_VERH},1,Answer
exten => ${GYN_NR_VERH},2,Set(TIMEOUT(digit)=2)
exten => ${GYN_NR_VERH},3,Set(TIMEOUT(response)=10)
exten =>
${GYN_NR_VERH},4,Background(/var/lib/asterisk/sounds/sound.gyn/TelefonansageWAV/F_Telefonansage4)

exten => 0,1,Goto(${GYN_NR_VERH}|2)

exten => 1,1,Set(COUNT=1)
exten => 1,2,Background(${GYN_FILE_VERH_PANEL1})

exten => 2,1,Set(COUNT=2)
exten => 2,2,Background(${GYN_FILE_VERH_PANEL2})

exten => 3,1,Set(COUNT=3)
exten => 3,2,Background(${GYN_FILE_VERH_PANEL3})

exten => 4,1,Set(COUNT=4)
exten => 4,2,Background(${GYN_FILE_VERH_PANEL4})

exten => 5,1,Set(COUNT=5)
exten => 5,2,Background(${GYN_FILE_VERH_PANEL5})

exten => 6,1,Set(COUNT=6)
exten => 6,2,Background(${GYN_FILE_VERH_PANEL6})

exten => 7,1,Set(COUNT=7)
exten => 7,2,Background(${GYN_FILE_VERH_PANEL7})

exten => 8,1,Set(COUNT=8)
exten => 8,2,Background(${GYN_FILE_VERH_PANEL8})

;vorheriges anhoeren
exten => *,1,Set(GOTO=$[${COUNT}-1])
exten => *,2,Goto(${GOTO}|1)

;naechstes anhoeren
exten => #,1,Set(GOTO=$[${COUNT}+1])
exten => #,2,Goto(${GOTO}|1)

exten => i,1,Set(LANGUAGE()=de)
exten => i,2,Playback(pbx-invalid)
exten => i,3,Goto(${GYN_NR_VERH}|4)



On 7/1/06, Maxim Vexler <hq4ever at gmail.com> wrote:
>
> On 7/1/06, Christian Gansberger <c.gansberger at gmail.com> wrote:
> >
> > Hi all,
> >
> > So the first ivr-menu  is  reached with 123456-10 and the context is
> "first-ivr"
> >
> > [first-ivr]
> > exten => 12345610,1,Answer
> > exten => 12345610,2,Set(TIMEOUT(digit)=2)
> > exten => 12345610,3,Set(TIMEOUT(response)=10)
> > exten => 12345610,4,Background(${FIRST_IVR_MENU_SELECTION_MSG})
> >
> > exten => 1,1,Noop(First IVR-Menu point 1 was selected)
> > exten => 2,1,Noop(First IVR-Menu point 2 was selected)
> > exten => 3,1,Noop(First IVR-Menu point 3 was selected)
> >
> > So everythin is fine, i can make my choice and the right Noop is shown
> in CLI.
> >
> >
> > [second-ivr]
> > exten => 12345620,1,Answer
> >  exten => 12345620,2,Set(TIMEOUT(digit)=2)
> >  exten => 12345620,3,Set(TIMEOUT(response)=10)
> >  exten => 12345620,4,Background(${SECOND_IVR_MENU_SELECTION_MSG})
> >
> > exten => 1,1,Noop(Second IVR-Menu point 1 was selected)
> >  exten => 2,1,Noop(Second IVR-Menu point 2 was selected)
> >  exten => 3,1,Noop(Second IVR-Menu point 3 was selected)
> >
> > When i call the 12345620 i hear the right Background message, but when i
> press button 1 - the CLI shows up
> > the "Noop(First IVR-Menu point 1 was selected)". So that is the wrong
> one.
> >
> > Is this the right behaviour of asterisk, so i can only have one IVR-menu
> for a Telefonnr?
> >
> > thanks
> >
> >
> > Christian Gansberger
> > Asterisk version  1.2.7.1
> >
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> >
> >
>
> No it is not.
> Please attach the relevant part of the log from /var/log/asterisk/full.
>
> Also, as a reference, you might wish to check FreePBX project can
> generate IVR dial logic using a simple web management interface.
>
> --
> Cheers,
> Maxim Vexler
>
> "Free as in Freedom" - Do u GNU ?
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060701/c4c40f4c/attachment.htm


More information about the asterisk-users mailing list