Our telco has setup toll access account codes for outgoing calls. I would like to include these account codes in the dialplan for certain extensions (fax lines, modems) so that they are not prompted for the 4 digit code when making a toll call. I have played around with the 'w' command with ZAP channels, commas, and DISA, all with no success. I see a lot of examples of Asterisk with account codes, but they are all using internal codes, not those setup by a telco. Has anyone set this up successfully or can point me in the right direction? Thanks, Josh
Here is an example of my dialplan, where 1234 is the account code required by my telco for a toll access call. exten => _91NXXNXXXXXX,1,Dial(Zap/g1/${EXTEN:1}wwww1234} exten => _91NXXNXXXXXX,2,Congestion When I include the wwww1234, with any variation of www before the code, I get a "Reorder" error on my Cisco 7940 talking SIP. Asterisk CLI spits this out: Jun 24 12:07:34 WARNING[1234455344]: pbx.c:1215 pbx_extension_helper: No applic ation 'Dial(Zap/g1/${EXTEN:1}wwww1234}' for extension (test, 919074749606, 1) == Spawn extension (test, 919074749606, 1) exited non-zero on 'SIP/4299-cee1' If I take out the www1234, I can complete the call, but have to enter in the account code by hand. Any ideas? Thanks, Josh -----Original Message----- From: Josh Reineke Sent: Thursday, June 24, 2004 9:40 AM To: 'asterisk-users@lists.digium.com' Subject: toll access - account code Our telco has setup toll access account codes for outgoing calls. I would like to include these account codes in the dialplan for certain extensions (fax lines, modems) so that they are not prompted for the 4 digit code when making a toll call. I have played around with the 'w' command with ZAP channels, commas, and DISA, all with no success. I see a lot of examples of Asterisk with account codes, but they are all using internal codes, not those setup by a telco. Has anyone set this up successfully or can point me in the right direction? Thanks, Josh
Hi!> Our telco has setup toll access account codes for outgoing calls. I would > like to include these account codes in the dialplan for certain extensions > (fax lines, modems) so that they are not prompted for the 4 digit code when > making a toll call.Look at Dial() with option D: D(digits): After the called party answers, send digits as a DTMF stream, then connect the call to the originating channel. (in CVS since May 2004?) Cheers, Philipp
Sorry for thinking out loud here. The bracket at the end of the first line should have been a parantheses. -- Executing Dial("SIP/4299-cf70", "Zap/g1/19074749606wwww1234") in new stack -- Called g1/19074749606wwww1234 -- Hungup 'Zap/1-1' Now I get the prompt for the access code, but it doesn't appear to dial the wwww1234 to complete the dial string. ? -----Original Message----- From: Josh Reineke Sent: Thursday, June 24, 2004 12:15 PM To: 'asterisk-users@lists.digium.com' Subject: RE: toll access - account code Here is an example of my dialplan, where 1234 is the account code required by my telco for a toll access call. exten => _91NXXNXXXXXX,1,Dial(Zap/g1/${EXTEN:1}wwww1234} exten => _91NXXNXXXXXX,2,Congestion When I include the wwww1234, with any variation of www before the code, I get a "Reorder" error on my Cisco 7940 talking SIP. Asterisk CLI spits this out: Jun 24 12:07:34 WARNING[1234455344]: pbx.c:1215 pbx_extension_helper: No applic ation 'Dial(Zap/g1/${EXTEN:1}wwww1234}' for extension (test, 919074749606, 1) == Spawn extension (test, 919074749606, 1) exited non-zero on 'SIP/4299-cee1' If I take out the www1234, I can complete the call, but have to enter in the account code by hand. Any ideas? Thanks, Josh -----Original Message----- From: Josh Reineke Sent: Thursday, June 24, 2004 9:40 AM To: 'asterisk-users@lists.digium.com' Subject: toll access - account code Our telco has setup toll access account codes for outgoing calls. I would like to include these account codes in the dialplan for certain extensions (fax lines, modems) so that they are not prompted for the 4 digit code when making a toll call. I have played around with the 'w' command with ZAP channels, commas, and DISA, all with no success. I see a lot of examples of Asterisk with account codes, but they are all using internal codes, not those setup by a telco. Has anyone set this up successfully or can point me in the right direction? Thanks, Josh
>The last char on the line needs to be a ) not a } > >"w" only works on ANALOG PSTN ports. > >Recent CVS -head has an option to send digits after the remote sideanswers. See "show application dial" I'm running Asterisk CVS-HEAD-06/15/04-17:27:40 I now have this in my dialplan: exten => _91NXXNXXXXXX,1,Dial(Zap/g1/${EXTEN:1},,D(1234)) exten => _91NXXNXXXXXX,2,Congestion With the results: -- Executing Dial("SIP/4299-5393", "Zap/g1/19074749606||D(1234)") in new stack -- Called g1/19074749606 Still get the prompt for the access code. I have relaxdtmf set to yes in zapata.conf? I can't do a complete restart of asterisk until off hours, but will try setting it to no to see if it makes a difference. Thanks guys, Josh