[Asterisk-Users] New Asterisk bounty: SIP simultaneous
Girish Gopinath
gopinath_girish at hotmail.com
Tue Jul 13 02:32:24 MST 2004
Hello,
>From: Sunrise Ltd <stsltdtyo at yahoo.co.jp>
>Subject: Re: [Asterisk-Users] New Asterisk bounty: SIP simultaneous
>Date: Tue, 13 Jul 2004 16:31:58 +0900 (JST)
<snip>
>If Asterisk is directed to speak SIP on port 5061 and SER
>remains on port 5060, then how do you get Asterisk to talk
>to SER and vice versa?
>
>Would you care to share this with us?
It is something like this:
Asterisk extensions.conf:
[globals]
SERADDRESS=XXX.XXX.XXX.XXX:5060
[context]
exten => <yourexten>,1,Dial(SIP/${EXTEN}@${SERADDRESS},20,r)
In ser.cfg:
if (method == "INVITE") {
if (uri =~ "sip:1[0-9]{10}@*"){
log(1, "Forwarding to Asterisk\n");
rewritehostportt("XXX.XXX.XXX.XXX:5061");
t_relay();
break;
}
}
>rgds
>benjk
Regards, Girish
_________________________________________________________________
Earn without investing. http://go.msnserver.com/IN/52048.asp Sell anything
under the sun.
More information about the asterisk-users
mailing list