Ubuntu-9.10- Karmic Koala

If I’m not wrong, the spa_ireland username and secret is the subscriber info you had in your Linksys SPA 3102 ATA in Voice->Line 1-> Subscriber Information ( Username and password right ) and context you had used is Ireland_local.

In my case, the global var Noram=${EXTEN:1} ( Coz I’m in north america )
[anaphone]
exten => _NXXNXXXXXX,1,Set(Noram=${EXTEN:1})
exten => _NXXNXXXXXX,2,Dial(SIP/analog_phone/${Noram},60,r);What does the r denote here?
exten => _NXXNXXXXXX,3,Goto(analog_phone${DIALSTATUS},1)

sip.conf
register= analog_phone@10.80.1.2(IP addr of my Ubuntubox where asterisk is installed )/analog_phone

[analog_phone]
type=friend
username=analog_phone
secret=phone_pwd
host=dynamic
dtmfmode=rfc2833
canreinvite=yes
context=anaphone
disallow=all
nat=no
allow=ulaw
qualify=yes

In my Linksys phone adapter configuration Voice->Line1->Subscriber info Display name:Brat
password=phone_pwd
Auth_ID=analog_phone
User_ID=analog_phone

Will the above work out, for me to call from my analog phone(416-234-678) to my softphone (678) already registered with asterisk and working, with dtmf option. In sense, when I call from analog phone and press 416-234-678, an dtmf option saying, “Please enter the extension number you want to reach too” and when I press 678 it would ring the softphone 678 ( if available) and also vice-versa ( a call from softphone(678) to the analog phone (416-234-678)

P.S: I have more than 1 softphone extensions ( 456,786,234)

r: Generate a ringing tone for the calling party, passing no audio from the called channel(s) until one answers. Without this option, Asterisk will generate ring tones automatically where it is appropriate to do so; however, “r” will force Asterisk to generate ring tones, even if it is not appropriate.

yes that all sounds good to me

we have a very similar setup here, with analogue phones around the factory such as door phones to gain access, somebody presses 1 which dials an internal extension which grants them access.

hey,

Does this message denote about the hardware?

*CLI> dahdi show status
Description Alarms IRQ bpviol CRC4 Fra Codi Options LBO
DAHDI_DUMMY/1 (source: HRtimer) 1 UNCONFI 0 0 0 CAS Unk YEL 0 db (CSU)/0-133 feet (DSX-1)

Shouldn’t it also detect my hardware as SPA 3012?
If yes, what am I missing?

Is there any other command for detecting hardware?

etc/dahdi/ system.conf

is the conf file configured correctly?

that is what configures each channel within dahdi?

i dont think dahdi would know about the SPA3012 box, does the Linksys box register with Asterisk?

on the status page of the SPA3012 what does it say? unregistered?

How can I configure system.conf correctly? I didn’t even touch that part? I’m just blank about the analog and asterisk part, I only knew softphone and asterisk.

Here’s my Linksys 3102 status info?

Product Information
Product Name: SPA-3102 Serial Number: FM600J119853
Software Version: 3.3.6(GW) Hardware Version: 1.4.5(a)
MAC Address: 000E08C56438 Client Certificate: Installed
Customization: Open

System Status
Current Time: 1/3/2003 05:48:47 Elapsed Time: 00:14:51
Wan Connection Type: DHCP Current IP: 192.168.0.56
Host Name: SipuraSPA Domain:
Current Netmask: 255.xxx.xxx.x Current Gateway: 192.168.0.1
Primary DNS: xxx.xxx.xxx.xxx
Secondary DNS: xxx.xxx.xxx.xxx
LAN IP Address: 192.xxx.x.x Broadcast Pkts Sent: 0
Broadcast Bytes Sent: 0 Broadcast Pkts Recv: 26
Broadcast Bytes Recv: 2710 Broadcast Pkts Dropped: 0
Broadcast Bytes Dropped: 0

I still didn’t coonect my analog phone to test it.

Any help!

have a look here :smiley:

forum.voxilla.com/linksys-sipura … 18612.html

Actually, I’m viewing the same page from morning.

Line 1 is understand but why do we use pstn settings( for making outgoing calls from analog to any softphone :question: )

Actually both Line 1 and pstn is unregistered for now.
Line 1 Status
Hook State: On Registration State: Not Registered

I tried as given in the link. I hanged this line to suit my requirement (as I mentioned earlier that I have more than 3 softphone under one context called brat)
exten => 200,1,Dial(SIP/brat)

How does the ringing and communications takes place?
I’ll brief how I tried, with this below option given in my extensions.conf
exten => 100,1,Dial(SIP/ana_phone) ; send these call to the FXS (Line1) port
exten => 200,1,Dial(SIP/brat) ; send these calls to the Xlite softphone

From my x-lite softphone I dialed 100 hoping it would route the call to analog phone.
but in my asterisk CLI I see the message:
Call from 123 to extension ‘100’ rejected because extension not found.

I also presumed, that call from my analog phone by pressing 200 would ring and ask me to enter the extension I want to reach too.

I don’t know what am I missing here?

Hey,

Does this output on the asterisk CLI means that asterisk in my ubuntu box, picks up the ATA signal?
Name/username Host Dyn Nat ACL Port Status

(Softphones)123/123 (Unspecified) D 5060 Unmonitored
456/456 (Unspecified) D 5060 Unmonitored
427/427 (Unspecified) D 5060 Unmonitored
brat/brat 192.168.x.xxx D 5061 Unmonitored (PSTN line)
ana_phone/ana_phone 192.168.x.xxx D 5060 OK (10 ms) (Line 1)

I can see the light switched on in my ATA phone and line. Also I see registered on my ATA HTTP link.

Will my dilaplan work now? ( just curious to know )
I’ll testing it soon and let you know.

Hey mudcow007,

I made the one way communication work following the link:
forum.voxilla.com/linksys-sipura … 18612.html

I.e. I was able to make a call to my softphone extension 123 from my analog phone by pressing 123 and softphone recieves the call.

Next I want to make calls to cellphone/landlines outside the world( I meant to my home or friend ) through this softphone 123 using PSTN(Attached to the ATA ) line in my office. It gives me an error message “416-234-567” extension is not found.

Here’s my dial plan.

sip.conf
;Asterisk will route outgoing calls to this
[brat]
type = friend
username = brat
host = dynamic
port = 5061
secret = brat_pstn
dtmfmode = rfc2833
nat = no
context = pstn
insecure = very

[123]
type = friend
username = 123
secret = my_pwd
host = dynamic
context = anaphone( context of my analog phone )

extensions.conf

[general]

[pstn]
include => anaphone

exten => _NXXNXXXXXX,1,Dial(SIP/${EXTEN:1}@brat,60)

[anaphone]

exten => 123,1,Dial(SIP/400)
exten => 123,2,Dial(SIP/${EXTEN:1}@brat,60,r)

But this PSTN thing doesn’t seem to work, what am I missing?
I need to finish this ASAP.
Any help!