Use
t_reply() instead of sl_send_reply() and ds_select_domain() instead of
ds_select_dst():
ds_select_domain("1","4");
t_reply("301","redirected");
Let me know if this works.
Regards,
Bogdan
[EMAIL PROTECTED] wrote:
> I invoked the dispatcher, but it doesn't appear anything was set. My
> flow is currently:
>
>
> ds_select_dst("1","4");
> sl_send_reply("301","redirected");
>
>
>
> INVITE sip:[EMAIL PROTECTED] SIP/2.0
> Via: SIP/2.0/UDP 10.2.252.190:5060;branch=z9hG4bK62554e20;rport
> From: "Geoff" <sip:[EMAIL PROTECTED]>;tag=as1d87dcd5
> To: <sip:[EMAIL PROTECTED]>
> Contact: <sip:[EMAIL PROTECTED]>
> Call-ID: [EMAIL PROTECTED]
> CSeq: 102 INVITE
> User-Agent: G-Tel v1.0
> Max-Forwards: 70
> Date: Tue, 11 Nov 2008 15:03:34 GMT
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
> Supported: replaces
> Content-Type: application/sdp
> Content-Length: 240
>
> SIP/2.0 301 redirected
> Via: SIP/2.0/UDP 10.2.252.190:5060;branch=z9hG4bK62554e20;rport=5060
> From: "Geoff" <sip:[EMAIL PROTECTED]>;tag=as1d87dcd5
> To:
> <sip:[EMAIL PROTECTED]>;tag=b7b83ebb8b164c9706593e1cbef4dcee.af60
> Call-ID: [EMAIL PROTECTED]
> CSeq: 102 INVITE
> Server: OpenSIPS (1.4.2-notls (x86_64/linux))
> Content-Length: 0
>
>
>
> On Nov 11, 2008 9:59am, Bogdan-Andrei Iancu <[EMAIL PROTECTED]>
> wrote:
> > Well, after the new RURI was set with dispatcher, do
> sl_send_reply("301","redirected");
> >
> >
> > Automatically, the RURI will be placed as contact in 3xx reply.
> >
> >
> >
> >
> >
> > Regards,
> >
> >
> > Bogdan
> >
> >
> >
> >
> >
> > Jeff Pyle wrote:
> >
> >
> >
> >
> > Figures you would ask that. Ha! I'm not sure. I'm quite new to
> >
> >
> > Opensips, and haven't made it to the dispatcher module yet.
> >
> >
> >
> >
> >
> > Anyone? Buehler?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > - Jeff
> >
> >
> >
> >
> >
> > -----Original Message-----
> >
> >
> > From: Geoffrey Mina [mailto:[EMAIL PROTECTED] Sent: Tuesday,
> November 11, 2008 9:36 AM
> >
> >
> > To: Jeff Pyle
> >
> >
> > Cc: [email protected]
> >
> >
> > Subject: Re: [OpenSIPS-Users] Input on my loadbalancer configuration
> >
> >
> >
> >
> >
> > well.. that would just be too simple!! How would I integrate sending a
> >
> >
> > 302 with the dispatcher module?
> >
> >
> >
> >
> >
> > thanks for the out-of-the-box idea!
> >
> >
> >
> >
> >
> > -Geoff
> >
> >
> >
> >
> >
> > On Tue, Nov 11, 2008 at 9:13 AM, Jeff Pyle [EMAIL PROTECTED]>
> >
> >
> > wrote:
> >
> >
> >
> >
> >
> >
> >
> > What if instead of routing the INVITE, Opensips returned a 302 to
> the originator, redirecting them to the Asterisk server(s) of choice
> for that call?
> >
> >
> >
> >
> >
> >
> >
> >
> > - Jeff
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> >
> > Users mailing list
> >
> >
> > [email protected]
> >
> >
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users