[Asterisk-Users] dial an IP address

Asterisk asterisk at govarion.com
Fri May 21 07:01:03 MST 2004


Hi Chris,

Here is a copy of the extensions.conf logic I use to accomplish this.

exten => 300,1,Playback,sipextn
exten => 300,2,Read(DSTNE||8)
exten => 300,3,Playback,sipip
exten => 300,4,Read(DSTNI||15)
exten => 300,5,Playback,sipport
exten => 300,6,Read(DSTNP||4)
exten => 300,7,Cut(DSTNI1=DSTNI,*,1)
exten => 300,8,Cut(DSTNI2=DSTNI,*,2)
exten => 300,9,Cut(DSTNI3=DSTNI,*,3)
exten => 300,10,Cut(DSTNI4=DSTNI,*,4)
exten => 300,11,Dial,SIP/${DSTNE}@${DSTNI1}.${DSTNI2}.${DSTNI3}.${DSTNI4}:${DSTNP}

sipextn.gsm says "Please enter the SIP extension you wish to dial"
sipip.gsm says "Enter the SIP IP seperated by stars"
sipport.gsm says "Enter the SIP Port Number"

User dials in and types
102#
192*168*0*6#
5060

and is connected with SIP/102 at 192.168.0.6:5060


Far from perfect, but it works for me.  Doesn't support non-numerical extensions, however.

Best Regards,
Ben

--------- Original Message ---------
From: Chris Stenton
To: <asterisk-users at lists.digium.com>
Subject: [Asterisk-Users] dial an IP address
Sent: 5/21/2004 7:48:18 AM

Anyone written an extension that will take a 12 digit number, convert it to
an IP address so that you can make a sip call to it.

Chris



_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

This message was checked by MailScan for WorkgroupMail.
www.workgroupmail.com 




More information about the asterisk-users mailing list