Server SDKs
Build AI agents, control calls, send messages, and more
Add a hangup verb to the main section. Ends the current call.
hangup
Reason for the hangup. Valid values: "hangup", "busy", "decline".
"hangup"
"busy"
"decline"
Self — The builder instance for method chaining.
Self
1from signalwire import SWMLService, SWMLBuilder23service = SWMLService(name="ivr")4builder = SWMLBuilder(service)56doc = (7 builder8 .answer()9 .play(url="https://example.com/goodbye.mp3")10 .hangup(reason="Call completed")11 .build()12)13print(doc)