Hi Friends, Hope you would help me out here, I have searched the asterisk user list for hours and also read the readme and test files that comes with the driver. I need a very simple scenario. I have SIP clients and want to use oh323 to dial out to PSTN using a h323 gateway. a)If I set the extention.conf like this: exten => _87.,1,Dial(OH323/16.52.153.206) oh323 dials out (I can ring a netmeeting client at 16.52.153.206). (b)But if I set it like this, oh323 will not dials out ? exten => _87.,1,Dial(OH323/${EXTEN:1}@16.52.153.206) In summary what I am trying to achieve is the following; Lets say Sip user dial 915105418168, then I want 9 to be dropped and the extension information to be send to the g/w at 16.52.153.206. Isn't exten => _9xxxxxxxxx,1,Dial(OH323/${EXTEN:1}@16.52.153.206) is the right way ?. Why is this not working ? I must be doing a wrong syntaxt, but couldnt find where I go wrong. I am attaching the trace for above two cases, please help ? Cheers Sathya Traces for both cases are given below; 0:00.076 OpenH323 Wrapper OpenH323 Wrapper Version 0.0alpha 0 by inAccess Networks (www.inaccessnetworks.com) on Unix Linux (2.4.20-8-i686) at 2003/11/26 20:15:07.622 0:00.078 OpenH323 Wrapper H323 Created endpoint. 0:00.078 H323 Cleaner H323 Started cleaner thread 0:00.212 OpenH323 Wrapper H323 Started listener Listener[ip$*:1720] 0:00.214 H323 Listener:8115c18 H323 Awaiting TCP connections on port 1720 0:00.214 OpenH323 Wrapper H323UDP Binding to interface: 0.0.0.0:10000 0:00.243 OpenH323 Wrapper H323 Added capability: G.711-ALaw-64k{hw} <1> 0:00.279 OpenH323 Wrapper H323 Added capability: UserInput/hookflash <2> 0:00.279 OpenH323 Wrapper H323 Added capability: UserInput/basicString <3> 0:00.279 OpenH323 Wrapper H323 Added capability: UserInput/dtmf <4> 0:00.279 OpenH323 Wrapper H323 Added capability: UserInput/RFC2833 <5> 4:00.687 ThreadID=0x4a774440 H323 Making call to: 729@16.52.153.20.6 4:00.688 ThreadID=0x4a774440 H323 Attempt to use invalid URL "729@16.52.153.206" 4:00.688 ThreadID=0x4a774440 H323 Could not parse "729@16.52.153.2.06" 4:00.757 ClearCallT...d:0812ab10 H323 Attempt to clear unknown call 8:14.840 ThreadID=0x4a774440 H323 Making call to: 16.52.153.206 8:14.904 ThreadID=0x4a774440 H323 Added capability: G.711-ALaw-64k{hw} <1> 8:14.905 ThreadID=0x4a774440 H323 Added capability: UserInput/hookflash <2> 8:14.905 ThreadID=0x4a774440 H323 Added capability: UserInput/basicString <3> 8:14.905 ThreadID=0x4a774440 H323 Added capability: UserInput/dtmf <4> 8:14.905 ThreadID=0x4a774440 H323 Added capability: UserInput/RFC2833 <5> 8:14.905 ThreadID=0x4a774440 H323 Found capability: G.711-ALaw-64k{hw} <1> 8:14.905 ThreadID=0x4a774440 H323 Found capability: UserInput/hookflash <2> 8:14.905 ThreadID=0x4a774440 H323 Found capability: UserInput/basicString <3> 8:14.906 ThreadID=0x4a774440 H323 Found capability: UserInput/dtmf <4> 8:14.906 ThreadID=0x4a774440 H323 Found capability: UserInput/RFC2833 <5> 8:14.906 ThreadID=0x4a774440 RFC2833 Handler created 8:14.906 ThreadID=0x4a774440 H323 Added capability: G.711-ALaw-64k{hw} <1> 8:14.907 ThreadID=0x4a774440 H323 Created new connection: ip$localhost/25259 8:14.908 H225 Caller:80f4688 H225 Started call thread 8:15.064 H225 Caller:80f4688 H323TCP Could not connect to 16.52.153.2 06:1720 (local port=10000) - No route to host(113) 8:15.065 H225 Caller:80f4688 H323 Clearing connection ip$localhost /25259 reason=EndedByConnectFail 8:15.065 H225 Caller:80f4688 H323 Call end reason for ip$localhost /25259 set to EndedByConnectFail 8:15.066 H225 Caller:80f4688 H225 Sending release complete PDU: ca llRef=25259 8:15.200 H225 Caller:80f4688 H323 Clearing connection ip$localhost /25259 reason=EndedByTransportFail 8:15.200 H323 Cleaner H323 Cleaning up connections 8:15.201 H323 Cleaner H323 Connection ip$localhost/25259 cl osing: connectionState=NoConnectionActive 8:15.201 H323 Cleaner H323 H323Transport::Close 8:15.201 H323 Cleaner H323 H323Transport::CleanUpOnTerminat ion for H225 Caller:80f4688 8:15.201 H323 Cleaner H323 Connection ip$localhost/25259 te rminated. 8:15.203 H323 Cleaner H323 Connection ip$localhost/25259 de leted. 8:15.204 H323 Cleaner H323 Cleaning up connections 8:15.369 ClearCallT...d:080f1a48 H323 Attempt to clear unknown call ip $localhost/25259
exten => _0119XXXXXXXXX,1,Congestion exten => _011[0-8]XXXXXXXXX,1,Dial(Somechannel,${EXTEN}) See page 27 of the Asterisk Handbook, version 2 for further details. Steve. On Friday 28 November 2003 01:53, Isamar Maia wrote:> Hi Folks, > > I already know how to make a simple dialplan to specific number pattern. > Now, I need the following: > > Calls to 0119XXXXXXX -> Blocked the calls > Calls to 011XXXXXXXX -> Route the calls > > > How can the first exception be done? > > Isamar > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users
exten => _0119.,1,blah exten => _011.,1,blah would that work? On Fri, 28 Nov 2003, Isamar Maia wrote:> > Hi Folks, > > I already know how to make a simple dialplan to specific number pattern. > Now, I need the following: > > Calls to 0119XXXXXXX -> Blocked the calls > Calls to 011XXXXXXXX -> Route the calls > > > How can the first exception be done? > > Isamar > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
On Thu, 2003-11-27 at 19:17, Brian West wrote:> exten => _0119.,1,blah > exten => _011.,1,blah > > would that work?Unless you are in a location that needs to support varying length outbound phone numbers, you should really fully define the pattern. This will let asterisk know ahead of time how many digits it is expected to get from the user before commencing with the dialing.> On Fri, 28 Nov 2003, Isamar Maia wrote: > > > > > Hi Folks, > > > > I already know how to make a simple dialplan to specific number pattern. > > Now, I need the following: > > > > Calls to 0119XXXXXXX -> Blocked the calls > > Calls to 011XXXXXXXX -> Route the calls > > > > > > How can the first exception be done? > > > > Isamar > > > > > > _______________________________________________ > > Asterisk-Users mailing list > > Asterisk-Users@lists.digium.com > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users-- Steven Critchfield <critch@basesys.com>
Yes I recall simlar from the handbook. bkw exten => _0119XXXXXXXXX,1,Congestion exten => _011[0-8]XXXXXXXXX,1,Dial(Somechannel,${EXTEN}) On Thu, 27 Nov 2003, Steven Critchfield wrote:> On Thu, 2003-11-27 at 19:17, Brian West wrote: > > exten => _0119.,1,blah > > exten => _011.,1,blah > > > > would that work? > > Unless you are in a location that needs to support varying length > outbound phone numbers, you should really fully define the pattern. This > will let asterisk know ahead of time how many digits it is expected to > get from the user before commencing with the dialing. > > > On Fri, 28 Nov 2003, Isamar Maia wrote: > > > > > > > > Hi Folks, > > > > > > I already know how to make a simple dialplan to specific number pattern. > > > Now, I need the following: > > > > > > Calls to 0119XXXXXXX -> Blocked the calls > > > Calls to 011XXXXXXXX -> Route the calls > > > > > > > > > How can the first exception be done? > > > > > > Isamar > > > > > > > > > _______________________________________________ > > > Asterisk-Users mailing list > > > Asterisk-Users@lists.digium.com > > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > _______________________________________________ > > Asterisk-Users mailing list > > Asterisk-Users@lists.digium.com > > http://lists.digium.com/mailman/listinfo/asterisk-users > -- > Steven Critchfield <critch@basesys.com> > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
anyone who can shed some light ? Or oh323 is completely dumped and I should go to chan_h323 ?> -----Original Message----- > From: SW [mailto:sathyaw@sbcglobal.net] > Sent: Thursday, November 27, 2003 8:28 AM > To: Asterisk-Users@Lists. Digium. Com > Subject: Help for oh323 > > > Hi Friends, > > Hope you would help me out here, I have searched the asterisk > user list for hours and also read the readme and test files that > comes with the driver. I need a very simple scenario. I have SIP > clients and want to use oh323 to dial out to PSTN using a h323 gateway. > > a)If I set the extention.conf like this: > > exten => _87.,1,Dial(OH323/16.52.153.206) > oh323 dials out (I can ring a netmeeting client at 16.52.153.206). > > (b)But if I set it like this, oh323 will not dials out ? > exten => _87.,1,Dial(OH323/${EXTEN:1}@16.52.153.206) > > In summary what I am trying to achieve is the following; > Lets say Sip user dial 915105418168, then I want 9 to be dropped > and the extension information to be send to the g/w at > 16.52.153.206. Isn't exten => > _9xxxxxxxxx,1,Dial(OH323/${EXTEN:1}@16.52.153.206) is the right > way ?. Why is this not working ? > > I must be doing a wrong syntaxt, but couldnt find where I go wrong. > > I am attaching the trace for above two cases, please help ? > > Cheers > > Sathya > > > Traces for both cases are given below; > > 0:00.076 OpenH323 Wrapper OpenH323 Wrapper > Version 0.0alpha > 0 by inAccess Networks (www.inaccessnetworks.com) on Unix Linux > (2.4.20-8-i686) > at 2003/11/26 20:15:07.622 > 0:00.078 OpenH323 Wrapper H323 Created endpoint. > 0:00.078 H323 Cleaner H323 Started cleaner thread > 0:00.212 OpenH323 Wrapper H323 Started listener > Listener[ip$*:1720] > 0:00.214 H323 Listener:8115c18 H323 Awaiting TCP > connections on port 1720 > 0:00.214 OpenH323 Wrapper H323UDP Binding to > interface: 0.0.0.0:10000 > 0:00.243 OpenH323 Wrapper H323 Added capability: > G.711-ALaw-64k{hw} <1> > 0:00.279 OpenH323 Wrapper H323 Added capability: > UserInput/hookflash <2> > 0:00.279 OpenH323 Wrapper H323 Added capability: > UserInput/basicString <3> > 0:00.279 OpenH323 Wrapper H323 Added capability: > UserInput/dtmf <4> > 0:00.279 OpenH323 Wrapper H323 Added capability: > UserInput/RFC2833 <5> > > 4:00.687 ThreadID=0x4a774440 H323 Making call to: > 729@16.52.153.20.6 > 4:00.688 ThreadID=0x4a774440 H323 Attempt to use > invalid URL "729@16.52.153.206" > 4:00.688 ThreadID=0x4a774440 H323 Could not parse > "729@16.52.153.2.06" > 4:00.757 ClearCallT...d:0812ab10 H323 Attempt to clear > unknown call > > > 8:14.840 ThreadID=0x4a774440 H323 Making call to: > 16.52.153.206 > 8:14.904 ThreadID=0x4a774440 H323 Added capability: > G.711-ALaw-64k{hw} <1> > 8:14.905 ThreadID=0x4a774440 H323 Added capability: > UserInput/hookflash <2> > 8:14.905 ThreadID=0x4a774440 H323 Added capability: > UserInput/basicString <3> > 8:14.905 ThreadID=0x4a774440 H323 Added capability: > UserInput/dtmf <4> > 8:14.905 ThreadID=0x4a774440 H323 Added capability: > UserInput/RFC2833 <5> > 8:14.905 ThreadID=0x4a774440 H323 Found capability: > G.711-ALaw-64k{hw} <1> > 8:14.905 ThreadID=0x4a774440 H323 Found capability: > UserInput/hookflash <2> > 8:14.905 ThreadID=0x4a774440 H323 Found capability: > UserInput/basicString <3> > 8:14.906 ThreadID=0x4a774440 H323 Found capability: > UserInput/dtmf <4> > 8:14.906 ThreadID=0x4a774440 H323 Found capability: > UserInput/RFC2833 <5> > 8:14.906 ThreadID=0x4a774440 RFC2833 Handler created > 8:14.906 ThreadID=0x4a774440 H323 Added capability: > G.711-ALaw-64k{hw} <1> > 8:14.907 ThreadID=0x4a774440 H323 Created new > connection: ip$localhost/25259 > 8:14.908 H225 Caller:80f4688 H225 Started call thread > 8:15.064 H225 Caller:80f4688 H323TCP Could not connect > to 16.52.153.2 > 06:1720 (local port=10000) - No route to host(113) > 8:15.065 H225 Caller:80f4688 H323 Clearing > connection ip$localhost > /25259 reason=EndedByConnectFail > 8:15.065 H225 Caller:80f4688 H323 Call end reason > for ip$localhost > /25259 set to EndedByConnectFail > 8:15.066 H225 Caller:80f4688 H225 Sending release > complete PDU: ca > llRef=25259 > 8:15.200 H225 Caller:80f4688 H323 Clearing > connection ip$localhost > /25259 reason=EndedByTransportFail > 8:15.200 H323 Cleaner H323 Cleaning up connections > 8:15.201 H323 Cleaner H323 Connection > ip$localhost/25259 cl > osing: connectionState=NoConnectionActive > 8:15.201 H323 Cleaner H323 H323Transport::Close > 8:15.201 H323 Cleaner H323 > H323Transport::CleanUpOnTerminat > ion for H225 Caller:80f4688 > 8:15.201 H323 Cleaner H323 Connection > ip$localhost/25259 te > rminated. > 8:15.203 H323 Cleaner H323 Connection > ip$localhost/25259 de > leted. > 8:15.204 H323 Cleaner H323 Cleaning up connections > 8:15.369 ClearCallT...d:080f1a48 H323 Attempt to clear > unknown call ip > $localhost/25259
Hi Folks, I already know how to make a simple dialplan to specific number pattern. Now, I need the following: Calls to 0119XXXXXXX -> Blocked the calls Calls to 011XXXXXXXX -> Route the calls How can the first exception be done? Isamar