Sip -> openser -> asterisk -> pstn

Hi all,

I’m very new to SIP/Asterisk and was hoping I could get some help setting up the conf files to forward SIP calls onto the PSTN.

I currently have a basic OpenSER setup which allows any SIP client on my network to make and receive calls. I’m not using any authentication for simplicity. This seems to work fine.

Next, I have Asterisk installed on the same box as OpenSER. I would like to know if and how I can configure OpenSER to forward calls beginning with a ‘9’ to the Asterisk server, which in turn would dial the number and make the call using the PSTN. Please note that the ‘9’ digit is used to get an external line on our phone system here. Also, I do not require authentication on the Asterisk box, as this is only a test system.

I’ve had a look at quite a few examples listed in this forum and on the voip-info wiki, but I haven’t had much luck so far.

Any help would be greatly appreciated.

Thanks in advance,

Vinny.

I am unsure how to have OpenSER send the 9 but you can send the call to asterisk and have asterisk send the 9. You can do.
Exten => _X.,1,Dial(ZAP/1/9${EXTEN})

Thanks, I will try that out.

If anyone has any other suggestions, I’d really appreciate it!

So, I ended up using a fresh Trixbox install. I set up the Trixbox -> PSTN config with no problems - I can now make and receive calls via the PSTN.

My only issue with the setup is that the IM feature of the CounterPath X-Lite/eyeBeam does not work. I am aware that this is a problem with the core Asterisk tech and cannot be patched, so I would like to use OpenSER for this functionality. Has anyone successfully implemented this?

I think it would be a better idea to ask on the openSer forums, mailing lists and in irc. voipuser.org/forum_view_24.html

–Double Post–

I don’t think intall OpenSER and Asterisk in one box is a good Idea.

OK, thanks for your replies.