1. [general]
  2. context=users ; Default context for incoming calls
  3. allowoverlap=no ; Disable overlap dialing support. (Default is yes)
  4. udpbindaddr=0.0.0.0 ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)
  5. tcpenable=no ; Enable server for incoming TCP connections (default is no)
  6. tcpbindaddr=0.0.0.0 ; IP address for TCP server to bind to (0.0.0.0 binds to all interfaces)
  7. srvlookup=yes ; Enable DNS SRV lookups on outbound calls
  8. sendrpid=yes
  9. trustrpid=yes
  10. [authentication]
  11. [basic-options](!) ; a template
  12. dtmfmode=rfc2833
  13. context=from-office
  14. type=friend
  15. [natted-phone](!,basic-options) ; another template inheriting basic-options
  16. nat=yes
  17. directmedia=no
  18. host=dynamic
  19. [public-phone](!,basic-options) ; another template inheriting basic-options
  20. nat=no
  21. directmedia=yes
  22. [my-codecs](!) ; a template for my preferred codecs
  23. disallow=all
  24. allow=ulaw
  25. allow=alaw
  26. allow=g729
  27. allow=ilbc
  28. allow=gsm
  29. allow=g723
  30. [ulaw-phone](!) ; and another one for ulaw-only
  31. disallow=all
  32. allow=ulaw
  33. [3137](my-codecs)
  34. secret=xxx
  35. type=friend
  36. host=dynamic
  37. context=users
  38. canreinvite=no
  39. qualify=yes
  40. callerid="Galaxy 3137" <3137>
  41. [3140](my-codecs)
  42. secret=xxx
  43. type=friend
  44. host=dynamic
  45. context=users
  46. canreinvite=no
  47. qualify=yes
  48. callerid="InTouch 3140" <3140>

sip.conf