Re: [asterisk-users] PJSIP Dial via IP fails

2014-06-26 Thread Joshua Colp

CDR wrote:

Dear friends
This is my simple dialplan

[demopjsip]
exten =>  _X.,1,Dial(PJSIP/${EXTEN}@10.10.10.2)
exten =>  _X.,n,Hangup()


Currently the default outbound endpoint is only used for messaging. This 
may change in the future but as of right now it is not used for 
sessions. You will therefore have to explicitly specify it:


Dial(PJSIP/default_outbound_endpoint/sip:${EXTEN}@10.10.10.2)

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_
-- 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


[asterisk-users] PJSIP Dial via IP fails

2014-06-25 Thread CDR
Dear friends
This is my simple dialplan

[demopjsip]
exten => _X.,1,Dial(PJSIP/${EXTEN}@10.10.10.2)
exten => _X.,n,Hangup()

I need to dial out via an IP address, not using an endpoint, as shown above.
It fails with
 Executing [1957408@demopjsip:3] Dial("PJSIP/federico-0002",
"PJSIP/195XXX7408@10.10.10.2") in new stack
[Jun 26 00:39:00] ERROR[10136]: chan_pjsip.c:1722 request: Unable to
create PJSIP channel - endpoint '10.10.10.2' was not found
[Jun 26 00:39:00] WARNING[10167][C-0002]: app_dial.c:2421
dial_exec_full: Unable to create channel of type 'PJSIP' (cause 3 - No
route to destination)

I remember that this Dial format was possible with regular SIP. The IP
address is routable, so there is no specific network issue.

In my pjsip.coonf I defined a default outbound endpoint

[global]
default_outbound_endpoint=default_outbound_endpoint

In that default endpoint defined, I did not add any IP address,
because I want to keep it generic and dial any IP address with the
same settings,
Is this possible?

-- 
_
-- 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