Feature Request: Need To INVITE To Peer With Other Domain Without Peer Domain Addition

Home » Asterisk Users » Feature Request: Need To INVITE To Peer With Other Domain Without Peer Domain Addition
Asterisk Users 4 Comments

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@domain2.com,60,r)

[peer1]
type=friend host=domain1.com fromdomain=domain1.com

As a result in SIP packet uri: number@domain2.com@domain1.com I need: number@domain2.com

I can’t use “SIP uri dial”, i need authorization (peer1)

I think asterisk can’t do that. Is where work around?

Dmitriy Serov.

4 thoughts on - Feature Request: Need To INVITE To Peer With Other Domain Without Peer Domain Addition

  • Would it work if you created a sip peer [domain2.com] and set outboundproxydomain1.com then sent the call to SIP/number@domain2.com ?

    -Barry

  • 31.03.2013 23:15, Barry Flanagan ?????:

    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@skype.ippi.com,60,rS(1200))

    INVITE sip:login@ippi.fr SIP/2.0
    Via: SIP/2.0/UDP 109.60.163.xx:5060;branch=z9hG4bK60e845b5;rport Max-Forwards: 70
    From: “demon” ;tag=as518b59df To:

    and exten => 22,n,Dial(SIP/skype.ippi.com/login@skype.ippi.com,60,rS(1200))
    do:
    INVITE sip:login@skype.ippi.com@ippi.fr SIP/2.0

    I studied the source code and found no ways to implement it 🙁

    Dmitriy.

  • 01.04.2013 23:52, Paul Belanger пишет:

    As a result:
    INVITE sip:username@ippi.fr SIP/2.0
    Via: SIP/2.0/UDP 109.60.163.76:5060;branch=z9hG4bK1ba0386c;rport Max-Forwards: 70
    From: “demon” ;tag=as4c2fa5f4
    To:

    Field “To” is correct! But INVITE uri is incorrect.