123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- ## For more information about scenarios, please refer to the Programmer's Guide
- # user's parameters (like ANSI-C #define)
- %%domain open-ims.test
- %%user popo
- %%pwd popo
- %%proxy_ip 192.168.0.10 # IP address or FQDN
- %%proxy_port 5060
- %%proxy_trans udp # udp, tcp, tls or sctp
- %%expires 60 # expires used by all dialogs
- %%sleep-sec 1.0 # number of seconds to wait before sending next sip message
- %%reg-sid
- %%sub-reg-sid
- %%sub-pres-sid
- %%pub-sid
- %%inv_audio_sid
- %%inv_file_sid
-
- # Configure the stack
- # Realm, IMPI and IMPU are mandatory
- #--stun-ip numb.viagenie.ca --stun-port 3478 --stun-usr $$(user)@$$(domain) --stun-pwd $$(pwd)
- ++cst --realm $$(domain) --impi $$(user)@$$(domain) --impu sip:$$(user)@$$(domain) --pwd $$(pwd) \
- --pcscf-ip $$(proxy_ip) --pcscf-port $$(proxy_port) --pcscf-trans $$(proxy_trans) \
- --header Privacy=none --header Allow=INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER \
- --header P-Access-Network-Info=ADSL;utran-cell-id-3gpp=00000000 \
- --header User-Agent=IM-client/OMA1.0 doubango/v1.0.0 # last should not have backslash
-
- # Run the engine
- ++r
- # OPTIONS to hack AOR
- #++opt
- #++sleep --sec $$(sleep-sec)
- # REGISTER
- ++reg --xp $$(expires) --caps +g.oma.sip-im --caps +g.3gpp.smsip --caps language="en,fr" \
- --header Action-Header=Myheader-value @@action \
- >>(reg-sid)
- # sleep
- ++sleep --sec $$(sleep-sec)
- # SUBSCRIBE to reg event package (silent hangup)
- #++sub --to sip:$$(user)@$$(domain) --xp $$(expires) --silent --header Event=reg --header Accept=application/reginfo+xml \
- # --header Allow-Events=refer, presence, presence.winfo, xcap-diff, conference >>(sub-reg-sid)
- #SUBSCRIBE to presence event package (alice)
- #++sub --to sip:alice@$$(domain) --xp $$(expires) --header Event=presence --header Supported=eventlist\
- # --header Accept=multipart/related, application/rlmi+xml, application/pidf+xml, application/rpid+xml, application/xcap-diff+xml, message/external-body \
- # --header Allow-Events=refer, presence, presence.winfo, xcap-diff, conference >>(sub-pres-sid)
- #PUBLISH
- #++sn --path ./publish.sn
- #send Pager Mode IM
- #++m --to sip:alice@$$(domain) \
- # --header NS=imdn <urn:ietf:params:imdn> \
- # --header imdn.Message-ID=34jk324j \
- # --header DateTime=2006-04-04T12:16:49-05:00 \
- # --header imdn.Disposition-Notification=positive-delivery, negative-delivery \
- # --header Content-Type=text/plain \
- # --pay Hello World
-
- #Send Binary SMS (RP-DATA)
- #++sms --smsc sip:+33185145269@$$(domain);user=phone;npi=ISDN --to sip:+33685214585@$$(domain);user=phone \
- # --header Content-Type=application/vnd.3gpp.sms \
- # --header Transfer-Encoding=binary \
- # --pay hello world
- #send INVITE
- #++av --to sip:bob@$$(domain) \
- # --header Action-Header=Myheader-value @@action \
- # >>(inv_audio_sid)
- #++hu --sid $$(inv_audio_sid)
- ++file --to sip:bob@$$(domain) --path ./core-micromethod.sn \
- --header Action-Header=Myheader-value @@action \
- >>(inv_file_sid)
- ++sleep --sec -1
- #++sleep --sec -1
- #++ho --sid $$(inv_audio_sid)
- #++sleep --sec -1
- #++res --sid $$(inv_audio_sid)
- #++sleep --sec -1
- #++ect --sid $$(inv_audio_sid) --to alice@$$(domain)
- #++sleep --sec -1
- #++dtmf --sid $$(inv_audio_sid) --event 1
- # Press ENTER
- ++sleep --sec -1
- # unsunscribe (reg and pres)
- #++hu --sid $$(sub-reg-sid)
- #++hu --sid $$(sub-pres-sid)
- #++hu --sid $$(pub-sid)
- # sleep
- #++sleep --sec $$(sleep-sec)
- # unregister
- #++hu --sid $$(reg-sid)
- # sleep
- #++sleep --sec $$(sleep-sec)
- # Exit the application
- ++e
|