Skip to content

Commit

Permalink
fix missing hangup
Browse files Browse the repository at this point in the history
as of [1] we have to issue a hangup action to terminate the call

[1] https://freeswitch.org/confluence/display/FREESWITCH/mod_spandsp#mod_spandsp-Forreceivingafax
  • Loading branch information
sjaeckel committed Oct 23, 2017
1 parent 59ca3d0 commit f1ef125
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gofaxd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ func (e *EventSocketServer) handler(c *eventsocket.Connection) {
}
c.Execute("set", fmt.Sprintf("fax_ident=%s", csi), true)
c.Execute("rxfax", filenameAbs, true)
c.Execute("hangup", "", false)

result := gofaxlib.NewFaxResult(channelUUID, sessionlog)
es := gofaxlib.NewEventStream(c)
Expand Down

0 comments on commit f1ef125

Please sign in to comment.