How do i simulate a SIP over Asterisk!

i have a plane for simulation SIP!But i don’t known steps to do this.Can you get for me ducuments,please?

start here :

forums.digium.com/viewtopic.php?t=12318

Hi i do not have much experience but i did this with my sip iax extensions and zaptel modules and it worked, enjoy

[extattionsx]

include =>outbooooundiax
include =>outbooooundsip
include =>LOOOCAL_EXTTENS
include =>outbooooundzaptel
include =>applications
include =>outbooooundpri

[LOOOCAL_EXTTENS]
;exten => 701,1,Dial(ZAP/32,5)
;exten => 701,n,Voicemail(701,u)

exten =>701,1,Macro(dialtexten,ZAP/32,701,20)
exten =>702,1,Macro(dialtexten,SIP/702,702,20)

exten => _70[23],1,Dial(SIP/${EXTEN},5)
exten => _70[23],n,Voicemail(${EXTEN},u)

exten => _66.,1,Answer()
exten => _66.,n,Wait(1)
exten => _66.,n,Playback(${EXTEN:2})
exten => _66.,n,Set(COUNTER=0)
exten => _66.,n(menu),Set(COUNTER=$[${COUNTER}+1]}
exten => _66.,n,Playback(${EXTEN:2})
exten => _66.,n,Wait(1)
exten => _66.,n,GotoIf($[${COUNTER}<3]?menu)
exten => _66.,n,(hangup),Hangup()

exten => 250,1,Answer()
exten => 250,n,Wait(3)
exten => 250,n,Record(menu.wav)
exten => 250,n,Hangup()

exten => 800,1,Goto(interactivevoiceresponse,s,1)
exten => 801,1,Goto(interactivevoiceresponse,5,1)

exten => *95,1,Answer()
exten => *95,2,VoiceMailMain()
exten => *95,3,Hangup()

[interactivevoiceresponse]
exten => s,1,Answer()
exten => s,n,Wait(1)
exten => s,n,Set(COUNTER=0)
exten => s,n(menu),Set(COUNTER=$[${COUNTER}+1]}
exten => s,n,Background(menu)
exten => s,n,WaitExten(3)
exten => s,n,GotoIf($[${COUNTER}<3]?menu)
exten => s,n(hangup),Hangup()

exten => 1,1,Dial(ZAP/32)
exten => 2,1,Dial(SIP/702)

exten => i,1,Playback(pbx-invalid)
exten => i,n,Goto(s,menu)

exten => 0,1,GotoIfTime(09:00-18:15,mon-fri,,?operator)
exten => 0,n,Playback(nbdy-avail0to-take-call)
exten => 0,n,Goto(s,menu)
exten => 0,n(operator),Set(CALLERID(name)=OPR ${CALLERID(name)})
exten => 0,n,Dial(SIP/702)

[macro-dialtexten]

exten =>s,1,GotoIf($["${DB_EXISTS(${ARG2}/fwd}"=“1”]?s-FORWARD,1)
exten =>s,n,GotoIf($["${DB_EXISTS(${ARG2}/dnd}"=“1”]?s-BUSY,1)
exten =>s,n,Dial(${ARG1},${ARG3})
exten =>s,n,Goto(s-${DIALSTATUS},1)

exten =>s-FORWARD,1,Dial(LOCAL/${DB(${ARG2}/fwd)}@default)
exten =>s-FORWARD,n,Goto(s-${DIALSTATUS},1)

exten =>s-NOANSWER,1,Voicemail(${ARG2},u)
exten =>s-NOANSWER,n,Goto(interactivevoiceresponse-menu,s,1)

exten =>s-BUSY,1,Vocemail(${ARG2},b)
exten =>s-BUSY,n,Goto(interactivevoiceresponse-menu,s,1)

exten =>_s-.,1,Goto(s-NOANSWER,1)
exten =>a,1,VoicemailMain(${ARG2})

[applications]

exten =>*999,1,GotoIf($["${DB_EXISTS(${CALLERID(num)}/dnd)}"=“1”]?deactivate)
exten =>*999,n(activate),Set(DB($(CALLERID(num)}/dnd)=1)
exten =>*999,n,Answer
exten =>*999,n,Playback(do-not-disturb)
exten =>*999,n,Playback(for)
exten =>*999,n,Playback(extension)
exten =>*999,n,Saydigits(${CALLERID(num)})
exten =>*999,n,Playback(enabled)
exten =>*999,n,Hangup
exten =>*999,n,Answer
exten =>*999,n,Playback(do-not-disturb)
exten =>*999,n,Playback(for)
exten =>*999,n,Playback(extension)
exten =>*999,n,Saydigits(${CALLERID(num)})
exten =>*999,n,Playback(disabled)
exten =>*999,n,Hangup

exten =>*888.,1,Set(DB($(CALLERID(num)}/fwd)=${EXTEN:3})
exten =>*888.,n,Answer
exten =>*888.,n,Playback(call-forward)
exten =>*888.,n,Playback(for)
exten =>*888.,n,Playback(extension)
exten =>*888.,n,Saydigits(${CALLERID(num)})
exten =>*888.,n,Playback(is-set-to)
exten =>*888.,n,Saydigits(${DB(${CALLERID(num)}/fwd)})
exten =>*888.,n,Hangup

exten =>*6666,1,DBDel(${CALLERID(num)}/fwd)
exten =>*6666,n,Answer
exten =>*6666,n,Playback(call-forward)
exten =>*6666,n,Playback(for)
exten =>*6666,n,Playback(extension)
exten =>*6666,n,Saydigits(${CALLERID(num)})
exten =>*6666,n,Playback(disabled)
exten =>*6666,n,Hangup

[outbooooundzaptel]

exten => _90[1-8]XXXXXXXXX,1,Dial(ZAP/35/${EXTEN:1})

[iiiiboundzaptel]

exten => s,1,Goto(interactivevoiceresponse,5,1)

[iiiiboundiax]

exten =>_XXX,1,Goto(LOOOCAL_EXTTENS,${EXTEN},1)

[outbooooundiax]

exten =>_80[1-8]XXXXXXXXX,1,Set(CALLERID(num)=06055568${CALLERID(num)})
exten =>_80[1-8]XXXXXXXXX,n,Set(CALLERID(name)=IPIP)
exten =>_80[1-8]XXXXXXXXX,n,Dial(IAX2/iax556/${EXTEN:1})
;exten =>_8.,1,Dial(IAX2/test/${EXTEN:1})

[iiiiboundsip]
exten => _XXX,1,Goto(LOOOCAL_EXTTENS,${EXTEN},1)

[outbooooundsip]
exten =>_70[1-8]XXXXXXXXX,1,Set(CALLERID(num)=06055568${CALLERID(num)})
exten =>_70[1-8]XXXXXXXXX,n,Set(CALLERID(name)=IPIP)
exten =>_70[1-8]XXXXXXXXX,n,Dial(SIP/${EXTEN:1}@sip556)

[iiiiboundpri]
exten =>_XXX,1,Goto(LOOOCAL_EXTTENS,${EXTEN},1)

[outbooooundpri]
exten =>_60[1-8]XXXXXXXXX,1,Set(CALLERID(num)=06055568${CALLERID(num)})
exten =>_60[1-8]XXXXXXXXX,n,Set(CALLERID(name)=IPIP)
exten =>_60[1-8]XXXXXXXXX,n,Dial(ZAP/G1/${EXTEN:1})

cd /usr/src
tar zxvf asterisk-1.2.10.tar.gz
tar zxvf asterisk-sounds-1.2.1.tar.gz
tar zxvf libpri-1.2.3.tar.gz
tar zxvf zaptel-1.2.7.tar.gz
cd zaptel make clean make install
cd libpri make clean make install
cd asterisk make clean make install make samples
cd asterisk sounds
make install

zaptel.conf

span=1,1,0,ccs,hdb3,crc4
bchan=1-15
dchan=16
bchan=17-31

fxoks=32 fxsks=35 loadzone=uk defaultzone=uk

zapata.conf

[channels]
signalling=pri_cpe
switchtype=euroisdn
group=1
context=iiiiboundpri
channel => 1-15,17-31

context=extattionsx
signalling=fxo_ks
usecallerid=yes
callerid=“Zap Phone”<701>
group=2
channel =>32

context=iiiiboundzaptel
signalling=fxs_ks
usecallerid=yes
callerid=asreceived
rxgain=0.0
txgain=0.0
channel =>35

modprobe zaptel
modprobe wctdm
zctfg -vv

rmmod wctdm
rmmod wcte11xp
modprobe wcte11xp
modprobe wctdm

sip.conf

[general]

register =>sip556:secrett@10.168.0.100/sip556

[702]
type=friend
secret=secrett
host=dynamic
callerid=“Sip Phone 1”<702>
disallow=all
allow=ulaw
context=extattionsx
mailbox=702
[203]
type=friend
secret=secrett
host=dynamic
callerid=“Sip Phone 2”<203>
disallow=all
allow=ulaw
context=extattionsx

[sip556]

type=friend
context=iiiiboundsip
username=sip556
fromuser=sip556
sendrpid=yes
trustrpid=yes
secret=secrett
host=10.168.0.100
disallow=all
allow=ulaw
canreinvite=no

IAX.conf

[general]
register =>iax556:secrett@10.168.0.100
bandwidth=low
jitterbuffer=no
forcejitterbuffer=no
tos=lowdelay
autokill=yes

[iax556]
type=friend
context=iiiiboundiax
host=10.168.0.100
secret=secrett
auth=md5
disallow=all
allow=ulaw

voicemail.conf

701 => 4545,Zap Phone
702 => 4545,SIP Phone 1,1@m.com,attach=yes
203 => 4545,SIP Phone 2

9 60 85XX N (9an 8 iax 7 sip 6 isdn pri) XXX
reload chap_zap.so