In addition: I tried adding Playback(hello) to the 123 extension, before the SayDigits. Then everything is being played perfectly.<div><br></div><div>Also when I park a call to 700, I cannot hear the playback of the parking lot. I do see this in the logs though, so I can pickup the call then, but it should be played back to the one who is parking of course.</div>
<div><br></div><div>So something seems to be wrong with SayDigits?</div><div><br><br><div class="gmail_quote">On Mon, Jan 16, 2012 at 4:02 PM, Rolandow <span dir="ltr"><<a href="mailto:xiphias@rolandow.com">xiphias@rolandow.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>I have this wierd problem where SayDigits does work when I execute it via a menu, but not when calling directly. In my extensions, I have this setup:</div>
<div><br></div><div><div>exten => 200,1,Answer()</div>
<div> same => n,Background(main-menu)</div><div> same => n,WaitExten(5)</div></div><div><br></div><div><div>exten => 123,1,Wait(2)</div><div> same => n,SayDigits(${EXTEN})</div></div><div><br></div><div><br>
</div><div>Now when I call 200, I hear the menu, and then when I press 123, it plays back one two three. Everything is OK.</div><div><br></div><div>When I call 123 from the same phone, I do see that the sound files are being played to me, but I don't hear any sound.</div>
<div><br></div><div>In Asterisk CLI I see this:</div><div><br></div><div><div>[Jan 16 15:54:15] == Extension Changed 137[StumpelZwaag] new state InUse for Notify User 001565150F04.1</div><div>[Jan 16 15:54:15] -- Executing [123@StumpelZwaag:1] Wait("SIP/000B822FD265-0000003d", "2") in new stack</div>
<div>[Jan 16 15:54:17] -- Executing [123@StumpelZwaag:2] SayDigits("SIP/000B822FD265-0000003d", "123") in new stack</div><div>[Jan 16 15:54:17] -- <SIP/000B822FD265-0000003d> Playing 'digits/1.gsm' (language 'nl')</div>
<div>[Jan 16 15:54:17] -- <SIP/000B822FD265-0000003d> Playing 'digits/2.gsm' (language 'nl')</div><div>[Jan 16 15:54:18] -- <SIP/000B822FD265-0000003d> Playing 'digits/3.gsm' (language 'nl')</div>
<div>[Jan 16 15:54:18] -- Auto fallthrough, channel 'SIP/000B822FD265-0000003d' status is 'UNKNOWN'</div><div>[Jan 16 15:54:18] == Extension Changed 137[StumpelZwaag] new state Idle for Notify User 001565150F04.1</div>
</div><div><br></div><div>This is the call that doesn't work. Then when I call 200, I see this:</div><div><br></div><div><div>[Jan 16 15:54:29] == Using SIP RTP CoS mark 5</div><div>[Jan 16 15:54:29] == Extension Changed 137[StumpelZwaag] new state InUse for Notify User 001565150F04.1</div>
<div>[Jan 16 15:54:29] -- Executing [200@StumpelZwaag:1] Answer("SIP/000B822FD265-0000003e", "") in new stack</div><div>[Jan 16 15:54:29] -- Executing [200@StumpelZwaag:2] BackGround("SIP/000B822FD265-0000003e", "main-menu") in new stack</div>
<div>[Jan 16 15:54:29] -- <SIP/000B822FD265-0000003e> Playing 'main-menu.gsm' (language 'nl')</div><div>[Jan 16 15:54:30] -- Executing [200@StumpelZwaag:3] WaitExten("SIP/000B822FD265-0000003e", "5") in new stack</div>
<div>[Jan 16 15:54:34] == CDR updated on SIP/000B822FD265-0000003e</div><div>[Jan 16 15:54:34] -- Executing [123@StumpelZwaag:1] Wait("SIP/000B822FD265-0000003e", "2") in new stack</div><div>[Jan 16 15:54:36] -- Executing [123@StumpelZwaag:2] SayDigits("SIP/000B822FD265-0000003e", "123") in new stack</div>
<div>[Jan 16 15:54:36] -- <SIP/000B822FD265-0000003e> Playing 'digits/1.gsm' (language 'nl')</div><div>[Jan 16 15:54:36] -- <SIP/000B822FD265-0000003e> Playing 'digits/2.gsm' (language 'nl')</div>
<div>[Jan 16 15:54:37] -- <SIP/000B822FD265-0000003e> Playing 'digits/3.gsm' (language 'nl')</div><div>[Jan 16 15:54:37] -- Auto fallthrough, channel 'SIP/000B822FD265-0000003e' status is 'UNKNOWN'</div>
<div>[Jan 16 15:54:37] == Extension Changed 137[StumpelZwaag] new state Idle for Notify User 001565150F04.1</div></div><div><br></div><div>This call works perfectly. What am I missing?</div><div><br></div><div>In my sip.conf I have:</div>
<div><br></div><div><div>[stumpel-zwaag](!) ; create template for our devices</div><div>type=friend ; the channel driver will mathc on username first, IP second</div>
<div>context=StumpelZwaag ; this is where calls from the device will enter the dialplan</div><div>host=dynamic ; the device will register with asterisk</div><div>
;nat=yes ; assume the device is behind nat</div><div>secret=xxx ; a secure password for this device</div><div>dtmfmode=auto ; accept touch-tones from devices, negotiated automatically</div>
<div>disallow=all ; reset with voice codecs to accept from, and request to, the device</div><div>allow=alaw ; which audio codecs we accept from</div>
<div>canreinvite=nonat</div></div><div><br></div>
</blockquote></div><br></div>