Stagg,

You would need to conditionally forward the request to a particular server 
based on the "uri" variable in your route() block.

For instance:

-snip-

If(uri=~"sip:[EMAIL PROTECTED]")
{
        Forward("server1.yourdomain.com");
}

If(uri=~"sip:[EMAIL PROTECTED]")
{
        Forward("server2.yourdomain.com");
}

-snip-

Depending on your setup, you may or may not need to call 
"rewritehost("server1.yourdomain.com")" before calling forward.

Other people may recommend using "t_relay()" instead of forward.

This is definitely not a complete example, just something to get you started.

Review this for the builtin functions and variables: 
http://openser.org/dokuwiki/doku.php/core-cookbook:devel

This is a very helpful resource.

Hope this helps,

Travis

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stagg Shelton
Sent: Friday, June 13, 2008 9:18 AM
To: [email protected]
Subject: [OpenSER-Users] Incoming call routing from a SIP Provider

Hello,

I have just started investigating OpenSER, and am looking for some  
guidance.  I have several Asterisk PBX's registered to OpenSER and  
each can make outgoing calls to my sip provider without any issue.  I  
have not figured out how to route incoming calls based on DID to the  
appropriate PBX.

Should I be looking at aliases, or carrierroute, or something else  
entirely.  I would appreciate any help you can give for this newbie  
question.

Thank You
Stagg Shelton
www.sheltonjohns.com

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

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

Reply via email to