Paging across two asterisk servers

I have SIP phones on two asterisk servers. Phones can dial each other no problem. However, when dialing the page extension, phones on the other server fail. Phones dialing the paging extension successfully reach all phones on the same server.

[May 10 09:59:43] – Executing [5000@default:2] Page(“SIP/2124-00000000”, “SIP/2241&SIP/2173&SIP/2171&SIP/2414,qA(beep)n,15”) in new stack
[May 10 09:59:43] WARNING[1391][C-00000000]: chan_sip.c:6036 create_addr: Purely numeric hostname (2241), and not a peer–rejecting!
[May 10 09:59:43] WARNING[1391][C-00000000]: chan_sip.c:6036 create_addr: Purely numeric hostname (2173), and not a peer–rejecting!
[May 10 09:59:43] WARNING[1391][C-00000000]: chan_sip.c:6036 create_addr: Purely numeric hostname (2171), and not a peer–rejecting!
[May 10 09:59:43] WARNING[1391][C-00000000]: chan_sip.c:6036 create_addr: Purely numeric hostname (2414), and not a peer–rejecting!

Dialplan entry is:

exten => 5000,1,SIPAddHeader(“Alert-Info: intercom”)
exten => 5000,n,Page(SIP/2241&SIP/2173&SIP/2171&SIP/2414,qA(beep)n,15)
exten => 5000,n,Hangup

Any help would be appreciated.

It will not work because the remote extensions are not present in you sip.conf file thus asterisk cannot “see” them and page them. Try to page them using a Local channel.

exten => 5000,n,Page(SIP/2241&Local/2173@my-local-context&Local/2171@my-local-context&Local/2414@my-local-context,qA(beep)n,15)

You replace my-local-context with your context.

How do I make server 2 (initiating the page) “see” the phones on server 1? The best I can do is make the phones on server 1 ring. They don’t page.

Did you try to change the diaplan entry that you posted with the one that I wrote for you? Replace the Page command and just reload asterisk.

I did yes. But the phones on the other server just ring instead of page.

Copy your dialplan that pages the phones to the remote server changing the extension number that you are using from 5000 to something else.

In your local server change your diaplan making possible a local extension to call the remote paging extension that you insert in the previous step.

Finally change your diaplan at your local server paging the local extension and the remote paging extension

exten => 5000,n,Page(SIP/2241&Local/6000@my-local-context,qA(beep)n,15)

Replace 6000 with the remote paging extension.