Jump to content

woodpecker

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by woodpecker

  1. Hi folks,

     

    I know a few of you have been trying to get asterisk@home to work with uplink, here is a working example although there is a bug somewhere that causes a freeze when dialing skype out. I suspect this is an uplink bug in which case there is nothing we can do except hope for new release.

     

    1. Setup an a@h trunk as follows:-

     

    Outgoing settings

     

    Trunk Name: skype

     

    PEER Details:

     

    allow=all

    caninvite=yes

    canreinvite=yes

    context=extensions

    host=dynamic

    insecure=very

    nat=yes

    secret=5506

    type=friend

    username=5506

     

    Incoming settings

     

    USER Context: 5506

     

    USER Details:

     

    allow=all

    callerid="Incoming Skype"

    caninvite=yes

    canreinvite=yes

    context=ext-queues

    host=dynamic

    insecure=very

    nat=yes

    secret=5506

    type=friend

    username=5506

     

    Registration

     

    Register String:

     

    5506:5506@192.168.1.2/5506

     

    The format of the register string is username:password@uplinkhost/username, ie my machine with the uplink and skype client running is 192.168.1.2, adjust to suit your own network.

     

    Note that 5506 is an arbitrary number that is based on the asterisk setup in this forum. Also I am using a context=ext-queues on incoming as I am routing my skype calls into call queue 123. If you just want to ring an extension use context=from-internal etc.

     

    2. Define an outbound route.

     

    Route name: skype

     

    Dial patters: 8|X. This routes all calls prefixed with an 8 via this route. eg to dial 00441234567890

     

    via skype dial 800441234567890 etc.

     

    Trunk Sequence: SIP/skype

     

    That completes the basic setup for a@h but we then need to add some bits to the config files, note that these will be overwritten each you time you change settings from within a@h so do these last.

     

    Go to Tools -> Config Edit

     

    Click on extensions_additional.conf

     

    Find the skype outroute, eg outrt-xxx-skype

     

    Change the dialout line to read:-

     

    exten => _8X.,1,Macro(UpLink,${EXTEN:1},,)

     

    If you want to map some fixed extensions to call skype users by their skypename then add some arbitrary extensions in the the [ext-local] section, eg

     

    exten => 1977,1,Macro(UpLink,skypename)

    exten => 1977,hint,SIP/1977

     

    This will call skype user 'skypename' when you dial 1977, note you cannot dial your own skypename to test it, I tried and it doesn't work.

     

    Click update.

     

    Now open extensions.conf

     

    Add this to the end of the file:-

     

    [macro-UpLink]

    exten => s,1,Dial(SIP/${ARG1}@5506,60,)

    exten => s,2,Congestion

     

    If you want to follow my example completely setup a call queue, number 123 before you edit the config files.

     

    Uplink setup.

     

    General

     

    When SIP Calls: Use the dialled number

     

    When Skype calls SIP dial the following number: 123

     

    Note 123 is my call queue.

     

    SIP

     

    Full friendly display name: skype

     

    SIP account number (or user): 5506

     

    Server: 192.168.1.5

     

    Use the ip address of your a@h server

     

    Password: 5506

     

    Network

     

    Local SIP Port to listen on: 5060

     

    Local RTP ports....: 8000

     

    Use static IP address

     

    Public IP address:- xxx.xxx.xxx.xxx eg put in your public IP address

     

    External SIP Port: 5060

     

    External RTP port starting from: 8000

     

    Restart uplink.

     

     

    If everything is ok then uplink should register as sip:5506@your-a@h-ip

     

    That's it.

     

    This all works for me with one problem, when I dial out through skype only the first call works and then the Skype client hangs and does not disconnect, it requies a ctrl-alt-delete to kill the uplink process before the skype client will disconnect and respond. With calls to skype users this does not happen, it only happens when dialing skype out, not skype to skype. I don't know whether this is an uplink bug??? I am dialing UK numbers of the format 00441234567890

     

    If I've missed anything please let me know, good luck!

  2. Hi Jeff,

     

    Thanks for the reply, the problem was the context, I changed the context to from-internal and then uplink would call the extension, hoorah!

     

    Now I am trying to get uplink to dump the call straight into an IVR, not got this going yet although I have managed to get it to dump straight into a call queue by changing the context to ext-queues and dialling 123 from uplink, where 123 is a call queue.

     

    I have tried changing the context to IVR and then asked uplink to dial ivr-2 but this doesn't work it says not found, perhaps you cannot call stright into an IVR?

     

    Looking for a way to connect the Skype users into my main IVR, any ideas?

     

    Many thanks for the help,

    Andy.

  3. Hi,

     

    I am trying to connect uplink with asterisk@home (which is asterisk with a gui http interface). I am trying to follow the above example but I am stuck.

     

    I have setup an incoming trunk (sip.conf) as follows:-

     

    [5506]

    username=5506

    host=dynamic

    nat=yes

    secret=5506

    allow=all

    type=friend

    insecure=very

    context=extensions

    canreinvite=yes

    caninvite=yes

    callerid="Incoming Skype"

     

    I have tried setting extensions and also DIDs with the number 5506 but this is where I am confused, do I need an extension or inbound route with a number of 5506?

     

    My asterisk curently has two extensions which I use with other voip services, 200 and 201. I also have one inbound route with a DID for each PSTN to VOIP number I have.

     

    I am also confused about the uplink options, I have to tell uplink what to call when it gets a skype call, I have tried telling it to call 5506 or 200 and 201 but nothing will work.

     

    When I run uplink it gives this info:-

     

    Uplink Skype2Sip started.

    SIP Private IP is 192.168.1.4:5070

    SIP Public IP is 81.86.xxx.xxx:5070

    SIP Number 5506@81.86.xxx.xxx:5070

    Attempting to register sip:5506@192.168.1.5

    Registered as sip:5506@192.168.1.5

     

    Receiving call...

    Initiated sip call to:5506

    XError returned:Not Found

     

    I have also tried routing the call to 201 and 5506@192.168.1.5 (the ip of the asterisk server) but they all return a Not Found error from uplink.

     

    Can anyone please advise what I have done wrong?

     

    Many thanks,

    Andy.

  4. Hi Folks,

     

    I have been experimenting with SkypeIn, Axon and IVM, when calling in I can get the default call attendant message but the IVM program is ignoring all key presses from the phone. I am calling SKypeIn from the UK PSTN through SkypeIn, Uplink, Axon and into IVM.

     

    When making a test call from within IVM it works fine so the IVM setup seems ok it just cannot see the key presses, any ideas?

     

    Thanks,

    Andy.

×
×
  • Create New...