Connecting to another SIP server

Hi,

I would like some advise on how to configure my asterisk such that local users with IAX and SIP extensions can utilize a SIP account from another server, to make international calls.

In my understanding this would be possible by them dialing a certain prefix say 888, followed by destination number.

Please assist.

create a sip account on the other server, put it in a context that can dial out. Create the matching sip account on your server. Remember to use a password :smile:

Then do something like
exten => _888.,1,Dial(SIP/otherserver/${EXTEN:3})
the :3 will strip off the first 3 digits and send the result to the other server.

Thanks ,

For now I get the following error when I dial from my asterisk…

Where do I go wrong?

– Executing Dial(“SIP/number-5539”, “SIP/otherserver/international#”) in new stack
– Called otherserver/international#
== No one is available to answer at this time (1:0/0/0)
== Auto fallthrough, channel ‘SIP/number-5539’ status is ‘NOANSWER’

what does the other server say? probably the sip peer definition on it is not in a context which can dial your number… either that or the passwords arent matching or something…