Skip to content

Panic when sending DTMF [v1.13.0-17-gc57d3a7] #30

Description

@kgolding

Hello, I'm getting a panic when sending 4 or more DTMF tones. Sometimes up to 7 tones work, but 10 digits always fail when it gets to the fifth digit.

$ gophone dial -l 192.168.100.98:56789 -dtmf=1234567890 sip:100@192.168.100.250:5060 
Jun 11 09:41:20.707 INF Dial > Response call_id=834af2f0-0d38-481c-91cc-b0ab02385ae5 event=SIP response="SIP/2.0 100 Trying"
Jun 11 09:41:20.722 INF Dial > Response call_id=834af2f0-0d38-481c-91cc-b0ab02385ae5 event=SIP response="SIP/2.0 180 Ringing"
Jun 11 09:41:21.726 INF Dial > Response call_id=834af2f0-0d38-481c-91cc-b0ab02385ae5 event=SIP response="SIP/2.0 200 OK"
Use ^C to HANGUP call
Jun 11 09:41:21.726 INF Starting media context=invite laddr=192.168.100.98:39748 media=log raddr=192.168.100.250:52290
Jun 11 09:41:22.727 INF Sending DTMF dtmf=1
Jun 11 09:41:22.727 INF Sending DTMF dtmf=2
Jun 11 09:41:22.867 INF Sending DTMF dtmf=3
Jun 11 09:41:23.008 INF Sending DTMF dtmf=4
Jun 11 09:41:23.149 INF Sending DTMF dtmf=5
Jun 11 09:41:23.202 INF Dial > Dialog closed. Exiting... call-id=834af2f0-0d38-481c-91cc-b0ab02385ae5
Jun 11 09:41:23.202 INF Dial > Hanguping... call-id=834af2f0-0d38-481c-91cc-b0ab02385ae5
Jun 11 09:41:23.202 INF Dial > Closing dialog
panic: send on closed channel

goroutine 37 [running]:
github.com/emiago/gophone.(*DTMFPipeReader).WriteDTMF(0xc0000a2250, {0xfd6f18, 0xc0000cb280}, {0x7ffd84df7b9a, 0xa}, 0x0)
        /home/emia/Projects/mystuf/gophone/rtp_send.go:56 +0x1cf
main.dial.func12()
        /home/emia/Projects/mystuf/gophone/cmd/gophone/main.go:822 +0x65
created by main.dial in goroutine 1
        /home/emia/Projects/mystuf/gophone/cmd/gophone/main.go:820 +0x2d70

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions