[Asterisk-Users] Linejack

Cyril Zlachevsky mazay at donlink.net
Tue May 17 17:37:22 MST 2005


Hi all!
I try to make outgoing calls from SIP softphone (X-Pro) via LineJack to
PSTN. X-Pro ringing (seems like can do it eternal) , asterisk proceed
attempt,  but no rings on called party!
Linejack directly connected to PSTN line with both pulse and tone dialing
support. Local area phone numbers having 7-digit format, in my example i
try to call 3457344 number.
Maybe 8 not stripped?

Please help!

---phone.conf---
[interfaces]
mode=fxo
format=slinear
echocancel=medium
context=sip
device => /dev/phone0
---phone.conf---

---part of sip.conf---
[phone1]
type=friend
host=dynamic
nat=no
defaultip=192.168.134.3
username=phone1
secret=mysjphone
dtmfmode=rfc2833
mailbox=9999
context=sip
callerid="Mini Me" <2123>
disallow=all                    ; First disallow all codecs
allow=ulaw                      ; Allow codecs in order of preference
allow=alaw
allow=g729
---part of sip.conf---

---part of extesions.conf---
[sip]
exten => _8NXXXXXX,1,Dial(Phone/phone0)
exten => _8NXXXXXX,2,Congestion

exten => 2123,1,Dial(SIP/phone1,20,tr)
---part of extesions.conf---


localhost*CLI> show channels
         Channel  (Context    Extension    Pri )   State Appl.         Data
    Phone/phone0  (sip        s            1   ) Ringing AppDial
(Outgoing Line)
SIP/phone1-a6e5  (sip        83457344     1   )    Ring Dial
Phone/phone0
2 active channel(s)
localhost*CLI> show channel Phone/phone0
  -- General --
            Name: Phone/phone0
            Type: Phone
        UniqueID: 1116374939.7
       Caller ID: "Mini Me" <2123>
     DNID Digits: (N/A)
           State: Ringing (5)
           Rings: 0
    NativeFormat: 64
     WriteFormat: 64
      ReadFormat: 4
1st File Descriptor: 7
       Frames in: 1
      Frames out: 0
  Time to Hangup: 0
    Elapsed Time: 0h0m0s
  --   PBX   --
         Context: sip
       Extension: s
        Priority: 1
        Priority: 1
      Call Group: 0
    Pickup Group: 0
     Application: AppDial
            Data: (Outgoing Line)
           Stack: -1
     Blocking in: ast_waitfor_nandfds
localhost*CLI> show channel SIP/phone1-a6e5
  -- General --
            Name: SIP/phone1-a6e5
            Type: SIP
        UniqueID: 1116374939.6
       Caller ID: "Mini Me" <2123>
     DNID Digits: 83457344
           State: Ring (4)
           Rings: 0
    NativeFormat: 4
     WriteFormat: 4
      ReadFormat: 64
1st File Descriptor: 34
       Frames in: 0
      Frames out: 0
  Time to Hangup: 0
    Elapsed Time: 0h0m23s
  --   PBX   --
         Context: sip
       Extension: 83457344
        Priority: 1
      Call Group: 0
    Pickup Group: 0
     Application: Dial
            Data: Phone/phone0
           Stack: 0
     Blocking in: ast_waitfor_nandfds
localhost*CLI>



More information about the asterisk-users mailing list