[asterisk-users] PJSIP configuration question

George Joseph george.joseph at fairview5.com
Wed Dec 10 14:40:01 CST 2014


On Wed, Dec 10, 2014 at 1:27 PM, Dan Cropp <dan at amtelco.com> wrote:

> Not sure why, but Vitelity changed the settings to IP based authentication
> on me.  Here's the new sip.conf settings they sent me.
>
> type=friend
> dtmfmode=auto
> host=64.2.142.93
> allow=all
> nat=yes
> canreinvite=no
> trustrpid=yes
> sendrpid=yes
>
> When I use these settings to originate calls using the sip.conf they sent
> me, everything works.
>
> Action: Originate
> ActionID: S8
> Channel: SIP/outbound.vitelity.net/8005555555
> Exten: createcall
> Context: TestApp
> Priority: 1
> Timeout: 60000
> CallerID: John Doe <1234>
> Variable: CALLERID(num-pres)=allowed_passed_screened
> Async: true
>
>
> I translated those settings to the following for pjsip.conf...
>
> [transport1]
> type = transport
> bind = 0.0.0.0
> protocol = udp
>
> [outbound.vitelity.net]
> type = aor
> remove_existing = yes
> contact = sip:64.2.142.93 at 5060
>

You might want to set a qualify_frequency here  to see if the server
responds to OPTIONS messages.  Also 64.2.142.93 isn't currently one of
their outbound servers.  Are you using one of their inbound* servers as
outbound?  IIRC unless you ask them, they don't allow it.

>
> [outbound.vitelity.net]
> type = endpoint
> context = TestApp
> transport = transport1
> aors = outbound.vitelity.net
> dtmf_mode = rfc4733
> force_rport = yes
> rtp_symmetric = yes
> rewrite_contact = yes
> send_rpid = yes
> trust_id_inbound = yes
> allow = all
> direct_media = no
>
> [identify1]
> type = identify
> endpoint = outbound.vitelity.net
> match = 64.2.142.93
>
> When I attempt to use AMI Originate, it's failing.  I am not seeing
> anything with pjsip logging turned on, so it seems to be something with the
> settings.
>
> Action: Originate
> ActionID: S8
> Channel: PJSIP/outbound.vitelity.net/8005555555
> Exten: createcall
> Context: TestApp
> Priority: 1
> Timeout: 60000
> CallerID: John Doe <1234>
> Variable: CALLERID(num-pres)=allowed_passed_screened
> Async: true
>
> NOTE: I am able to use AMI Originate to other PJSIP endpoints.
>
> Action: Originate
> ActionID: S9
> Channel: PJSIP/1003/1003
> Exten: createcall
> Context: TestApp
> Priority: 1
> Timeout: 60000
> CallerID: John Doe <1234>
> Variable: CALLERID(num-pres)=allowed_passed_screened
> Async: true
>
> Anyone have any suggestions as to what I am doing wrong?
>
> Have a great day!
>
> Dan
>
> --
> _____________________________________________________________________
> -- 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20141210/6c8e1285/attachment.html>


More information about the asterisk-users mailing list