Kenny Chua wrote:
Hello, I was wondering, how should I implement this. I would like the user to press the #key first if they would like to dial SIP 2 SIP calls and just leave PSTN calls as it is? How am I suppose to do that?


we have a similar logic of pressing '9' for outgoing PSTN calls, you
can try this in the main routing logic of openser.cfg:


                # PSTN gateway
                else if (uri=~"sip:[EMAIL PROTECTED]") {

                        # PSTN access requires authentication
                        if (!www_authorize("domain", "subscriber")) {
                                www_challenge("domain", "0");
                                break;
                        };

                        rewritehost("pstngw.domain");
                }


/alfred


_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to