Contact us for peer whitelisting
Currently, we are whitelisting SIP peers at our firewall level. Contact us at hi@goguava.ai to get your source IPs whitelisted. The following providers are already whitelisted. If your SIP calls originate from one of them, you can skip this step.- Twilio
Check connectivity
Once whitelisted, try to make anOPTIONS ping to our SIP trunk at sip.goguava.ai. If the check fails, see our guide below on firewall configuration.
Create a SIP code
Every SIP integration requires aguavasip code, which you can create in the Guava dashboard. guavasip codes work just like registered phone numbers — agents can listen to them and peers can dial them.
- Open the SIP page in the dashboard.
- Click Create SIP Code.
- Take note of both the SIP code and the termination URI.
Attach your agent to the SIP code
Next, start an agent usingagent.listen_sip("guavasip-xxx"). This is the SIP equivalent of agent.listen_phone(...) — Guava forwards every call addressed to that code to your agent.
main.py
To connect an agent to both a phone number and a SIP code simultaneously, see the documentation for guava.Runner.
Dial your agent
The last step is to dial your agent using the termination URI (e.g.sip:guavasip-xxx@sip.goguava.ai). If you’re having trouble connecting to your agent, please contact us at hi@goguava.ai.