On 13-04-01 03:16 PM, Dmitriy Serov wrote:
31.03.2013 23:15, Barry Flanagan ?????:
On 31 March 2013 18:11, Dmitriy Serov <[email protected]
<mailto:[email protected]>> 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/[email protected]
    <mailto:[email protected]>,60,r)

    [peer1]
    type=friend
    host=domain1.com <http://domain1.com>
    fromdomain=domain1.com <http://domain1.com>

    As a result in SIP packet uri: [email protected]@domain1.com
    <http://domain1.com>
    I need: [email protected] <mailto:[email protected]>

    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/[email protected]
<mailto:[email protected]> ?
-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/[email protected],60,rS(1200))

INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 109.60.163.xx:5060;branch=z9hG4bK60e845b5;rport
Max-Forwards: 70
From: "demon" <sip:[email protected]>;tag=as518b59df
To: <sip:[email protected]>

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

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

Dmitriy.

How about:

exten =>22,n,Dial(SIP/[email protected],60,rS(1200))

--
Paul Belanger | PolyBeacon, Inc.
Jabber: [email protected] | IRC: pabelanger (Freenode)
Github: https://github.com/pabelanger | Twitter: https://twitter.com/pabelanger

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to