<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks. I want to dial-out to PSTN using Asterisk Server via Avaya
Phone using Cordia VoIP Service provider. How can I achieve it using
the same code below? <br>
<br>
Regards,<br>
Malvin<br>
<br>
On 7/13/2011 4:59 PM, DHAVAL INDRODIYA wrote:
<blockquote
cite="mid:CAE8gfe-Pz0VpfhiRicEj1frOBMoTN7V=FG7kKiZzH20OWyDmdA@mail.gmail.com"
type="cite">you can edit dial-plan by adding following lines to
your code<br>
<br>
[internal]<br>
<br>
exten => s,1,Dial(SIP/1000)<br>
exten => s,2,HangUp()<br>
<br>
<br>
exten => 1000,1,Dial(SIP/1000)<br>
exten => 1000,2,HangUp()<br>
<br>
exten => _XXXX,1,Dial(H323/${EXTEN}@
<div bgcolor="#ffffff">Avaya)<br>
exten => _XXXXXXXXXXX,1,Dial(H323/${EXTEN}@Avaya)<br>
exten => _XXXXXXXXXX,1,Dial(H323/${EXTEN}@Avaya)<br>
</div>
<br>
<br>
<div class="gmail_quote">On Wed, Jul 13, 2011 at 1:35 PM, Malvin
Rito <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:mrito@mail.altcladding.com.ph">mrito@mail.altcladding.com.ph</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> How do I write it on my
code?
<div>
<div class="h5"><br>
<br>
On 7/13/2011 4:04 PM, Warren Selby wrote:
<blockquote type="cite">
<div>Looks like you need an 's' exten in your
[internal] context. <br>
<br>
Thanks,
<div>--Warren Selby, dCAP</div>
</div>
<div><br>
On Jul 13, 2011, at 2:02 AM, Malvin Rito <<a
moz-do-not-send="true"
href="mailto:mrito@mail.altcladding.com.ph"
target="_blank">mrito@mail.altcladding.com.ph</a>>
wrote:<br>
<br>
</div>
<blockquote type="cite">
<div> Hi List,<br>
<br>
I have another issue on allowing outgoing calls to
PSTN on Asterisk via Avaya Phones, I hope that
anyone could help me fix this issue:<br>
<br>
<b>When I dial through Avaya phone i just here a
"good bye message" reply from asterisk server.
And here is the log:</b><br>
<br>
== Starting OOH323/(null)-b7db8aa0 at
internal,s,1 failed so falling back to exten 's'<br>
== Starting OOH323/(null)-b7db8aa0 at
internal,s,1 still failed so falling back to
context 'default'<br>
-- Executing [s@default:1]
Playback("OOH323/(null)-b7db8aa0", "vm-goodbye")
in new stack<br>
-- <OOH323/(null)-b7db8aa0> Playing
'vm-goodbye.ulaw' (language 'en')<br>
-- Executing [s@default:2]
Macro("OOH323/(null)-b7db8aa0", "hangupcall") in
new stack<br>
-- Executing [s@macro-hangupcall:1]
GotoIf("OOH323/(null)-b7db8aa0", "1?skiprg") in
new stack<br>
-- Goto (macro-hangupcall,s,4)<br>
-- Executing [s@macro-hangupcall:4]
GotoIf("OOH323/(null)-b7db8aa0", "1?skipblkvm") in
new stack<br>
-- Goto (macro-hangupcall,s,7)<br>
-- Executing [s@macro-hangupcall:7]
GotoIf("OOH323/(null)-b7db8aa0", "1?theend") in
new stack<br>
-- Goto (macro-hangupcall,s,9)<br>
-- Executing [s@macro-hangupcall:9]
Hangup("OOH323/(null)-b7db8aa0", "") in new stack<br>
== Spawn extension (macro-hangupcall, s, 9)
exited non-zero on 'OOH323/(null)-b7db8aa0' in
macro 'hangupcall'<br>
== Spawn extension (default, s, 2) exited
non-zero on 'OOH323/(null)-b7db8aa0'<br>
-- Executing [h@default:1]
Macro("OOH323/(null)-b7db8aa0", "hangupcall,") in
new stack<br>
-- Executing [s@macro-hangupcall:1]
GotoIf("OOH323/(null)-b7db8aa0", "1?skiprg") in
new stack<br>
-- Goto (macro-hangupcall,s,4)<br>
-- Executing [s@macro-hangupcall:4]
GotoIf("OOH323/(null)-b7db8aa0", "1?skipblkvm") in
new stack<br>
-- Goto (macro-hangupcall,s,7)<br>
-- Executing [s@macro-hangupcall:7]
GotoIf("OOH323/(null)-b7db8aa0", "1?theend") in
new stack<br>
-- Goto (macro-hangupcall,s,9)<br>
-- Executing [s@macro-hangupcall:9]
Hangup("OOH323/(null)-b7db8aa0", "") in new stack<br>
== Spawn extension (macro-hangupcall, s, 9)
exited non-zero on 'OOH323/(null)-b7db8aa0' in
macro 'hangupcall'<br>
== Spawn extension (default, h, 1) exited
non-zero on 'OOH323/(null)-b7db8aa0'<br>
<br>
<b>Here is also the content of my
extensions_custom.conf:</b><br>
[general]<br>
static=yes<br>
autofallthrough=yes<br>
<br>
[internal]<br>
exten => 1000,1,Dial(SIP/1000)<br>
exten => 1000,2,HangUp()<br>
<br>
exten => _XXXX,1,Dial(H323/${EXTEN}@Avaya)<br>
exten =>
_XXXXXXXXXXX,1,Dial(H323/${EXTEN}@Avaya)<br>
exten =>
_XXXXXXXXXX,1,Dial(H323/${EXTEN}@Avaya)<br>
<br>
<b>Here is also the content of my ooh323.conf:</b><br>
[general]<br>
faststart=yes<br>
h245tunneling=yes<br>
gatekeeper=DISABLE<br>
bindaddr=10.1.129.231<br>
port=1720<br>
callerID="ALT Asterisk PBX"<br>
progress_setup=8<br>
progress_alert=8<br>
disallow=all<br>
allow=all<br>
dtmfmode=inband<br>
faststart=yes<br>
context=internal<br>
<br>
[Avaya]<br>
type=friend<br>
context=internal<br>
host=10.1.129.247<br>
port=1720<br>
canreinvite=no<br>
disallow=all<br>
allow=alaw<br>
dtmfmode=inband<br>
<br>
<b>Here is also the content of sip_custom.conf:</b><br>
[general]<br>
context=internal<br>
videosupport=yes<br>
allow=h261<br>
allow=h263<br>
allow=h263p<br>
bindaddr=10.1.129.231<br>
srvlookup=yes<br>
conreinvitte=no<br>
<br>
[1000]<br>
type=friend<br>
secret=malvin123<br>
host=dynamic<br>
dtmfmode=inband<br>
disallow=all<br>
allow=all<br>
nat=yes<br>
<br>
<br>
Thanks & regards,<br>
Malvin<br>
</div>
</blockquote>
<blockquote type="cite">
<div><span>--</span><br>
<span>_____________________________________________________________________</span><br>
<span>-- Bandwidth and Colocation Provided by <a
moz-do-not-send="true"
href="http://www.api-digital.com"
target="_blank">http://www.api-digital.com</a>
--</span><br>
<span>New to Asterisk? Join us for a live
introductory webinar every Thurs:</span><br>
<span> <a moz-do-not-send="true"
href="http://www.asterisk.org/hello"
target="_blank">http://www.asterisk.org/hello</a></span><br>
<span></span><br>
<span>asterisk-users mailing list</span><br>
<span>To UNSUBSCRIBE or update options visit:</span><br>
<span> <a moz-do-not-send="true"
href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></span></div>
</blockquote>
<pre><fieldset></fieldset>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a moz-do-not-send="true" href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
<a moz-do-not-send="true" href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a>
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a moz-do-not-send="true" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
</blockquote>
</div>
</div>
</div>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a
moz-do-not-send="true" href="http://www.api-digital.com"
target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every
Thurs:<br>
<a moz-do-not-send="true"
href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a moz-do-not-send="true"
href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote>
</div>
<br>
</blockquote>
</body>
</html>