[asterisk-users] Convert SIP to PJSIP

sean darcy seandarcy2 at gmail.com
Wed Sep 26 09:13:00 CDT 2018


On 9/24/18 2:57 PM, John T. Bittner wrote:
> Hello all,
> 
> I am having some trouble converting this setup from SIP to PJSIP. Any 
> help is much appreciated.
> 
> I used the converter script and get most of it but don’t see a 
> registration entry.
> 
> How do you convert this entry into PJSIP.
> 
> This working sip config.
> 
> register => 
> 17185553321 at sip.ringcentral.com:ARi4uYb2Mz:332940285773 at sip12.ringcentral.com:5090/17185553321 
> <mailto:17185553321 at sip.ringcentral.com:ARi4uYb2Mz:332940285773 at sip12.ringcentral.com:5090/17185553321>
> 
> [17185553321]
> 
> type = peer
> 
> host = sip.ringcentral.com
> 
> transport=udp
> 
> defaultuser=332940285773       ; Authentication username for outbound 
> proxies
> 
> username = 332940285773
> 
> fromuser=17185553321           ; Many SIP providers require this
> 
> fromdomain=sip.ringcentral.com
> 
> secret = ARi4uYb2Mz
> 
> canreinvite = no
> 
> disallow = all
> 
> allow = ulaw
> 
> nat = yes
> 
> dtmfmode = auto
> 
> rfc2833compensate = yes
> 
> trustrpid = yes
> 
> usereqphone = yes              ; This provider requires ";user=phone" on URI
> 
> callcounter = yes              ; Enable call counter for parallel 
> outbound calls
> 
> busylevel = 2                  ; Signal busy at 2 or more calls (feel 
> free to adjust)
> 
> outboundproxy=sip12.ringcentral.com:5090
> 
> This is what it was converted too: But nothing for the registration ?
> 
> [17185553321]
> 
> type = aor
> 
> contact = sip:332940285773 at sip.ringcentral.com
> 
> [17185553321]
> 
> type = identify
> 
> endpoint = 17185553321
> 
> match = sip.ringcentral.com
> 
> [17185553321]
> 
> type = auth
> 
> username = 17185553321
> 
> password = ARi4uYb2Mz
> 
> [17185553321]
> 
> type = endpoint
> 
> dtmf_mode = none
> 
> disallow = all
> 
> allow = ulaw
> 
> rtp_symmetric = yes
> 
> rewrite_contact = yes
> 
> outbound_proxy = sip12.ringcentral.com:5090
> 
> direct_media = no
> 
> from_user = 17185553321
> 
> from_domain = sip.ringcentral.com
> 
> device_state_busy_at = 2
> 
> auth = 17185553321
> 
> outbound_auth = 17185553321
> 
> aors = 17185553321
> 

I'd try the convert script again and make sure the input file is 
sip.conf. A lot of this pjsip config doesn't make sense.

And I hope these numbers and passwords are fake !





More information about the asterisk-users mailing list