Using Asterisk to make webrtc calls to An IVR System

Hello Everyone,
I have installed an Asterisk Server on Ubuntu Machine. I want to make use of a browser to make calls to my ivr system. The Cisco call manager is provding the IVR function. Hence, i will be setting up sip trunk between Asterisk and the cucm. my ivr no is 7100@domain.com (sip address)
Users will click on this call link “7100@domain.com”. can someone guide me on the steps to set up the javascript code , the sip trunk and route pattern on Asterisk

Thank you in anticipation

Collins

The Cisco SIP trunk is just a SIP endpoint to Asterisk. Cisco can do IP authentication, so just set it up like an IP authenticated provider (no type=register or type=auth sections, for the Cisco).

I don’'t know what you mean by route pattern, unless you are talking about some Asterisk based system that provides a GUI, in which case you need to ask on their support channels.

On Asterisk, all you need to do is define an extension 7100, in the context associated with the WebRTC endpoint, and all that needs to do is to call dial for the Cisco endpoint, passing any digits required by the Cisco. If the digits are the same, you can use PJSIP/${EXTEN}@name-of-cisco-endpoint

I’m sorry, but I don’t know anything about the browser scripting, and that isn’t really an Asterisk question.

Thank you so much for your swift response.What i mean by route patten is to forward all calls destined for 7100 to the cucm end point.
is it in pjsip that i will set up the ip authentication between Asterisk and Cisco ?

I have some javaacript codes which have sucessfully esatblished websocket connection to asterisk but it closes abruptly

I await your kind response.

pjsip.conf is where you define how to connect to an endpoint.