[asterisk-users] Feature request: Need to INVITE to peer with other domain without peer domain addition
Dmitriy Serov
serov.d.p at gmail.com
Mon Apr 1 14:16:03 CDT 2013
31.03.2013 23:15, Barry Flanagan ?????:
> On 31 March 2013 18:11, Dmitriy Serov <serov.d.p at gmail.com
> <mailto:serov.d.p at gmail.com>> wrote:
>
> Hi, asterisk admin and users.
>
> I need to SIP INVITE uri with domain via peer. And uri domain
> differ then peer domain.
> dialplan:
> exten => s,n,Dial(SIP/peer1/number at domain2.com
> <mailto:number at domain2.com>,60,r)
>
> [peer1]
> type=friend
> host=domain1.com <http://domain1.com>
> fromdomain=domain1.com <http://domain1.com>
>
> As a result in SIP packet uri: number at domain2.com@domain1.com
> <http://domain1.com>
> I need: number at domain2.com <mailto:number at domain2.com>
>
> I can't use "SIP uri dial", i need authorization (peer1)
>
>
> I think asterisk can't do that. Is where work around?
>
>
>
> Would it work if you created a sip peer [domain2.com
> <http://domain2.com>] and set outboundproxy=domain1.com
> <http://domain1.com> then sent the call to SIP/number at domain2.com
> <mailto:number at domain2.com> ?
> -Barry
>
does not matter.
[skype.ippi.com](srv-options-common)
type=friend
secret=xxx
host=ippi.fr
fromdomain=ippi.fr
outboundproxy=ippi.fr
exten => 22,n,Dial(SIP/login at skype.ippi.com,60,rS(1200))
INVITE sip:login at ippi.fr SIP/2.0
Via: SIP/2.0/UDP 109.60.163.xx:5060;branch=z9hG4bK60e845b5;rport
Max-Forwards: 70
From: "demon" <sip:username at ippi.fr>;tag=as518b59df
To: <sip:login at ippi.fr>
and
exten => 22,n,Dial(SIP/skype.ippi.com/login at skype.ippi.com,60,rS(1200))
do:
INVITE sip:login at skype.ippi.com@ippi.fr SIP/2.0
I studied the source code and found no ways to implement it :(
Dmitriy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130401/cb74dbb4/attachment.htm>
More information about the asterisk-users
mailing list