TECH7Fox / sip-hass-card

A SIP client inside home assistant!
MIT License
189 stars 39 forks source link

How to register on existing asterisk server #91

Closed robertoswald closed 1 year ago

robertoswald commented 1 year ago

I have an existing asterisk server how to register the sip card to an extension on it? I cannot get it working. Where to configure the extension and secret for registering.

Thanks a lot for help.

TECH7Fox commented 1 year ago

Under extensions you can create a extension for a person to use. Here is a small example in the docs: https://tech7fox.github.io/sip-hass-docs/docs/tutorial/card

For the endpoint you do need a wss config. You can look at the add-on code for the settings: https://github.com/TECH7Fox/asterisk-hass-addons/blob/main/asterisk/rootfs/usr/share/tempio/pjsip_default.conf.gtpl

robertoswald commented 1 year ago

Thanks for your answer but I still don´t get it. My asterisk is running on a different machine where to enter its hostname or ip? Assumed I have a spare extension "100" on the asterisk and I want to make a sip call through it via home assistant. How to configure sip-hass-card for that?

regards Robert

TECH7Fox commented 1 year ago

In server you set your asterisk IP address. Look at the docs and try some settings out. In your browser console you can see if there are any problems. Here is the full config example: https://tech7fox.github.io/sip-hass-docs/docs/card/settings