asterisk.sn 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ## For more information about scenarios, please refer to the Programmer's Guide
  2. # user's parameters (like ANSI-C #define)
  3. %%domain octavius.inet.org
  4. %%user user2
  5. %%pwd 1234
  6. %%proxy_ip octavius.i6net.org # IP address or FQDN
  7. %%proxy_port 5060
  8. %%proxy_trans udp # udp, tcp, tls or sctp
  9. %%expires 300 # expires used by all dialogs
  10. %%sleep-sec 1.0 # number of seconds to wait before sending next sip message
  11. %%reg-sid
  12. %%sub-reg-sid
  13. %%sub-pres-sid
  14. %%pub-sid
  15. %%inv_audio_sid
  16. # Configure the stack
  17. # Realm, IMPI and IMPU are mandatory
  18. ++cst --realm $$(domain) --impi $$(user) --impu sip:$$(user)@$$(domain) --pwd $$(pwd) \
  19. --pcscf-ip $$(proxy_ip) --pcscf-trans $$(proxy_trans) \
  20. --header Privacy=none --header Allow=INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER \
  21. --header P-Access-Network-Info=ADSL;utran-cell-id-3gpp=00000000 \
  22. --header User-Agent=IM-client/OMA1.0 doubango/v1.0.0 # last should not have backslash
  23. # Run the engine
  24. ++r
  25. # OPTIONS to hack AOR
  26. #++opt
  27. #++sleep --sec $$(sleep-sec)
  28. # REGISTER
  29. ++reg --xp $$(expires) --caps +g.oma.sip-im --caps +g.3gpp.smsip --caps language="en,fr" \
  30. --header Action-Header=Myheader-value @@action \
  31. >>(reg-sid)
  32. # Press ENTER
  33. ++sleep --sec -1
  34. #++av --to sip:2233392625@$$(domain) \
  35. # --header Action-Header=Myheader-value @@action \
  36. # >>(inv_audio_sid)
  37. #++sleep --sec -1
  38. #++hu --sid $$(inv_audio_sid)
  39. # Exit the application
  40. ++e