{"id":38352257,"url":"https://github.com/gbazil/sipd","last_synced_at":"2026-01-17T03:11:42.674Z","repository":{"id":57529677,"uuid":"161154373","full_name":"gbazil/sipd","owner":"gbazil","description":"Lite SIP Server","archived":false,"fork":false,"pushed_at":"2019-05-21T06:17:46.000Z","size":20,"stargazers_count":25,"open_issues_count":0,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-20T19:16:03.139Z","etag":null,"topics":["asterisk","freepbx","sip","voip"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gbazil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-10T10:02:52.000Z","updated_at":"2024-04-03T08:14:46.000Z","dependencies_parsed_at":"2022-08-26T05:10:38.199Z","dependency_job_id":null,"html_url":"https://github.com/gbazil/sipd","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gbazil/sipd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbazil%2Fsipd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbazil%2Fsipd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbazil%2Fsipd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbazil%2Fsipd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gbazil","download_url":"https://codeload.github.com/gbazil/sipd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbazil%2Fsipd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asterisk","freepbx","sip","voip"],"created_at":"2026-01-17T03:11:42.605Z","updated_at":"2026-01-17T03:11:42.663Z","avatar_url":"https://github.com/gbazil.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sipd\n\n## Description\n\nSipd - SIP server with registrar functions and PBX features (forwarding, interception and transfer of calls, the calls by short number, voice guidance).\n\n## Setting\n\nSipd is controlled by only one configuration file sip.conf, which should be in the working directory of the server, and by the flags of the program start.\n\nFlag | Description\n-|-\n-a | print about\n-b | listen address (default \"127.0.0.1:5060\")\n-c | current country code (default \"7\")\n-cc | current city code (default \"495\")\n-d | The debug mode outputs to the current terminal all SIP messages of the server\n-s directory | the server's working directory (default .)\n-r | reloads data from sip.conf\n-v | outputs name, version of the program, current hostname (realm)\n\nThe sip.conf file is structured text, broken up using headers in square brackets into sections, which in turn describe the parameters of one of the SIP clients served on the server. The header itself is the name of the client. Followed lines in the format key=value are it's parameters. All lines beginning with a semicolon (;) character are comments and are ignored when the configuration is loaded.\n\nExample of sip.conf file contents:\n\n    ; sip.conf\n    ;\n\n    [foo]\n    accountcode=FOOBAR\n    context=domestic\n    secret=abc\n    permit=192.168/16,10/8\n    ; short phone number\n    exten=1001\n\n    [bar]\n    accountcode=FOOBAR\n    host=192.168.1.129:5060\n    context=international\n    secret=cba\n    permit=192.168.1.129/32\n    exten=1002\n\n    [siphone1]\n    accountcode=HOME\n    dialplan=.+\n    secret=12345\n    exten=1001(2)\n\n    [siphone2]\n    accountcode=HOME\n    dialplan=.+\n    secret=4321\n    ; long, short and call forward phone numbers\n    exten=4999876543#1002=4991234567\n\n    [GATE1]\n    accountcode=gateways\n    host=192.168.1.200:5060\n    exten=9995999 ; gateway prefix when accountcode is gateways\n\n    [GATE2]\n    accountcode=gateways\n    host=192.168.1.201:5060\n    exten=9\n\n    [MEDIAGATE]\n    accountcode=mediagates\n    host=192.168.1.100:5070\n\n    ; EOF\n\n\nA section can contains the following keys.\n\nKey | Description | Default value\n-|-|-\naccountcode | the client group ID combines them for calls by short numbers and pickups in the limits of this group |\nsecret | password for this SIP client (its name is indicated in the square brackets of the section header) |\npermit | comma separated IP (CIDR) addresses from which the client's requests can arrive |\nhost | static client IP address (no registration) |\nexten | telephone number of the client in the format L#S(N)=F for connecting with him by phone number L or short number S, or transferring the connection, if not available, to another client under the serial number N in the side of the group (accountcode), or forwarding to the phone number F (if redirection is needed \"on unavailable\", then the symbol ~ is used instead of the symbol =) |\ncallerid | identifier of the calling channel for substitution, if necessary\ndialplan | a standard regular expression (PCRE) that limits the range of called telephone numbers for a given SIP client (the call will take place if the dialed phone number matches this regular expression, otherwise it does not) | .+\ncontext | It is used when there is no dialplan key and is replaced by it with a value according to the value of this context key (for example, context=em is perceived as dialplan=^7495\\d{2,3}$)\n\n## Exploitation\n\nStarting the server from its working directory is performed by the command:\n\n    $ sipd \u0026\n\nAfter the changes made in the sip.conf file, you must tell the running SIP server to overload the configuration. This will not affect the current state of the connections served by the server.\n\n    $ sipd -r\n\nThe server stops using the CLI command:\n\n    $ pkill sipd\n\n## PBX features\n\nA registered customer can use the following built-in PBX services by dialing the following command combinations on his phone:\n\nCommand | Service\n-|-\n*11 | Interception of a call (ring) from a nearby phone with the same accountcode\n*72XXXXXXXXXX | Setting call forwarding to a number XXXXXXXXXX\n*71XXXXXXXXXX | Setting call forwarding to a number XXXXXXXXXX if the base number will be not available (off, busy etc)\n*72 | Check current forwarding. The response will be dictated by the number of forwarding, if the media gateway is configured (silence if not)\n*73 | Remove current call forwarding\n\n## License\n\nSipd server is distributed under license [MIT](https://github.com/gbazil/sipd/blob/master/LICENSE)\n\n## Author\n\nVasily Suvorov (gbazil)\n\n---\n[gbazil](https://gbazil.github.io) Moscow 2018\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbazil%2Fsipd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgbazil%2Fsipd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbazil%2Fsipd/lists"}