Contact URI showing sip:s@ipaddress

Hi All,

I am currently running FreePBX with Asterisk 1.8.32.1 installed and it has been working fine for quite some time but recently I noticed my inbound calls were failing.

Upon discussing with the service provider they indicated that the Contact URI is in an incorrect format. In the Registration message being sent to to the provider the header for the From and To addresses are fine in the format of sip:didnumber@siptrunkprovider.com.

The Contact URI though in which they key on for delivery of calls is showing:

sip:s@ipaddress
Ex. sip:s@69.165.10.20

My trunk settings are (edited):

type=peer
port=5060
insecure=very
host=sipprovider.ca
disallow=all
context=from-pstn
allow=g729&ulaw
username=1234567890
secret=xxxxxxxx

Register String:
1234567890:xxxxxxxx@sipprovider.ca

Any idea why the “s@” is showing up and how I can get rid of it / change it? My trunk settings are what I thought would correct it but I can’t seem to get it to work :frowning:

Thanks,
Darryl

Because that is the default when you don’t specify an extension (it should not normally be a problem, as s is valid as an extension).

Specify an extension in the register:

; Format for the register statement is: ; register => [peer?][transport://]user[@domain][:secret[]]@host[:port][/extension][~expiry]

; If no extension is given, the 's' extension is used. The extension needs to ; be defined in extensions.conf to be able to accept calls from this SIP proxy ; (provider).
or use a callbackextension, instead:

;callbackextension=123 ; Register with this server and require calls coming back to this extension

Documentation quoted from extensions.conf.sample.

Hi David!

Thanks for the prompt reply - much appreciated. I can go in and manually edit the file to do this but I believe the provider is looking not for the extension but the actual DID number in the Contact URI field. Is there a way to insert / override with this instead?

Sorry for what may seem a novice question - I’ve used FreePBX for some time with the underlying Asterisk and it runs quite well but every now and then something like this creeps up and I’m a little novice in the code area.

Thanks so much again for the help!

Darryl

Either of the two methods described will do that. If your problem is how to get FreePBX to set one of these options, you should ask on community.freepbx.org/

Hi David,

Thanks again for the reply. I have also posted in the FreePBX forum.

If I were to make these modifications I would likely try the first method but which .conf file would I need to edit for this? Is this also in the extensions.conf file? The second one looks to be in the extensions.conf file but I was not sure about the first method?

Thanks again!
Darryl

They are both in sip.conf.

David,

I have used the /extension to change the contact and it does not take effect. The username/extension I am using is quite long (30 chars) and wonder if that is the problem. I have tried friend and peer, but it never changes.

Jon

My Register string looks something like this. The contact never changes from s@address

123456789012345678901234567890:1234567890abcdef@reg.freeip.com/123456789012345678901234567890

Is the length of the /extension too long, or the entire string too long?

Jon

I’ve had a look at the code for Asterisk 1.8, and I can’t see why this wouldn’t work. Are you sure you reloaded the configuration after changing the file?

David,

What I found is with every change I made, submitted and applied is that it was adding the new contact and retaining the older ones. At one point I had Registrations with four different contacts. Including the s@. Once I restarted Asterisk completely, it used only the last one stored.

Thanks,

Jon