I have installed an asterisk in the Ubuntu server and I have the following SIP configuration. The sip service is up and running
[general]context=default ; Default context for incoming callsallowoverlap=no ; Disable overlap dialingudpbindaddr=0.0.0.0 ; Bind to all IP addressestcpbindaddr=0.0.0.0 ; Bind to all IP addresses (if using TCP)tcpenable=no ; Enable TCP if neededsrvlookup=yes ; Enable DNS SRV lookups on outbound calls[linphone]type=friendcontext=from-linphone ; Context for incoming calls from Linphonehost=10.0.2.15 ; IP address is dynamicsecret=yourpassword ; Password for this userdtmfmode=rfc2833 ; DTMF modecanreinvite=no ; Disable direct media pathqualify=yes ; Check the peer's statusnat=yes ; Handle NAT traversalcallgroup=1 ; Call group for grouping with other devices (optional)pickupgroup=1 ; Pickup group (optional)host=dynamic ; Allows dynamic IP address assignmentdisallow=all ; Disallow all codecs initiallyallow=ulaw ; Allow ulaw codecallow=alaw ; Allow alaw codec
I tried to connect this SIP server via Linphone. But it is not working. Both the server and Linphone are on the same Ubuntu machine.