<HTML>
<HEAD>
<META content="text/html; charset=big5" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<p><font face="arial,helvetica,sans-serif" size="2">Hello,
<br />
<br />I just setup the Asterisk to integrate with Panasonic legacy PBX. Config as followings,</font></p>
<p><font face="Arial" size="2">PSTN <-- PanasonicPBX--TDM400P(FXO)--AsteriskPC --> Internet
<br />
<br />* is for AA / Voicemail and VOIP in/out
<br />
<br />Currently the AA / Voicemail function for incoming PSTN calls are working well.
<br />My problem is for the incoming VOIP call. It can ring my internal extensions and talk without problem.
<br />But it's all :-( I can not monitor the calling progress and handle it with * because of something wrong with
<br /></font><font face="Arial" size="2">the "Dial" command. For example, ring forever if nobody answer the call, the call just be disconnected if
<br /></font><font face="Arial" size="2">called extension busy, etc.
<br />
<br /></font><font face="Arial" size="2">The code is as followings. Incoming VOIP call get into [via-net], then go to [test] to dial the extension.
<br />From the console, I can see the "Dial" command is excuted and always stay there if nobody answer the call.
<br />
<br />1.Why no dial timeout? I doubt if it's because the TDM400P FXO is connected to the extension port of
<br />Panasonic PBX, so that it's recognized as "answered" just while DTMF tone is sent. Is it true?
<br />
<br />2.MusicOn Hold can be heard but stop right away while extension is ringing. Seems "answered" even still
<br /></font><font face="Arial" size="2">nobody pickup the phone.
<br />
<br />3.My Panasonic can sent the DTMF tone to indicate the status(called extension is ringback, busy, etc)
<br />I have used this good function to finish AA for incoming PSTN call. But here I can do nothing since it stay
<br />on the "Dial" application and not continue (if in "Background", I can detect the tone).
<br />I even use the option M(macro) try to catch the tone send from Panasonic, but failed also. Anybody can
<br />give me your comment? Thanks!
<br />
<br />BR, Dominic
<br />
<br />----------------------------------------
<br />[via-net]
<br />exten => _1XX,1,Answer
<br />exten => _1XX,2,SetVar(called_ext=${EXTEN})
<br />exten => _1XX,3,Goto(test,s,1)
<br />
<br />[test]
<br />exten => s,1,Background(transfer)
<br />exten => s,2,Dial(Zap/g1/${called_ext}|10|m)
<br />exten => s,3,NoOp
<br /></font><font face="Arial" size="2">------------------------------------------
<br />Message on console while FOREVER ringing,
<br />-- Executing Dial("<a href="mailto:IAX2/dominic@dominic/1">IAX2/dominic@dominic/1</a>", "Zap/g1/102|10|m") in new stack
<br />-- Called g1/102
<br />-- Started music on hold, class 'default', on <a href="mailto:IAX2/dominic@dominic/1">IAX2/dominic@dominic/1</a>
<br />-- Zap/1-1 answered <a href="mailto:IAX2/dominic@dominic/1">IAX2/dominic@dominic/1</a>
<br />-- Stopped music on hold on <a href="mailto:IAX2/dominic@dominic/1">IAX2/dominic@dominic/1</a>
<br /></font>
<br /></p>
</BODY>
</HTML>