# Fast question: mysql and outbound\_proxy for pjsip

**URL:** <https://community.asterisk.org/t/fast-question-mysql-and-outbound-proxy-for-pjsip/106475>\
**Category:** Asterisk SIP\
**Created:** [January 21, 2025, 9:21am UTC](https://community.asterisk.org/t/fast-question-mysql-and-outbound-proxy-for-pjsip/106475 "2025-01-21T09:21:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pnirru](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@pnirru](https://community.asterisk.org/u/pnirru)\
**Post date:** [January 21, 2025, 9:21am UTC](https://community.asterisk.org/t/fast-question-mysql-and-outbound-proxy-for-pjsip/106475/1 "2025-01-21T09:21:18Z")

</div>

I need to configure pjsip with outbound\_proxy (needed for voip isp)  
I know how to do if proxy is one, but my isp use two sip proxy (one with priority 10, other with 20).  
This line is ok for one

insert into ps\_aors (id, contact, max\_contacts, qualify\_frequency, outbound\_proxy) values (‘tim’, ‘sip:mynumber@myprov:5060’, 1, 60, ‘1.2.3.4.5’);

for two values?  
Is ok something like this?  
insert into ps\_aors (id, contact, max\_contacts, qualify\_frequency, outbound\_proxy) values (‘tim’, ‘sip:mynumber@myprov:5060’, 1, 60, ‘1.2.3.4.5;5.4.3.2.1’);

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [January 21, 2025, 9:23am UTC](https://community.asterisk.org/t/fast-question-mysql-and-outbound-proxy-for-pjsip/106475/2 "2025-01-21T09:23:20Z")

</div>

There is no support for specifying multiple outbound proxies. A provider should instead do DNS using SRV and optionally NAPTR, to give load balancing/failover.

---

<div class="post-metadata">

**Author:** ![PitzKey](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/pitzkey/32/5827_2.png) [@PitzKey](https://community.asterisk.org/u/PitzKey)\
**Post date:** [January 21, 2025, 9:26am UTC](https://community.asterisk.org/t/fast-question-mysql-and-outbound-proxy-for-pjsip/106475/3 "2025-01-21T09:26:08Z")

</div>

Tip: If your provider doesn’t have these DNS records, you can create them on your own.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [February 20, 2025, 9:26am UTC](https://community.asterisk.org/t/fast-question-mysql-and-outbound-proxy-for-pjsip/106475/4 "2025-02-20T09:26:11Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
