# The s extension \[SOLVED\]

**URL:** <https://community.asterisk.org/t/the-s-extension-solved/31126>\
**Category:** Asterisk Support\
**Created:** [April 13, 2010, 4:40pm UTC](https://community.asterisk.org/t/the-s-extension-solved/31126 "2010-04-13T16:40:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dynaguy](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@dynaguy](https://community.asterisk.org/u/dynaguy)\
**Post date:** [April 13, 2010, 4:40pm UTC](https://community.asterisk.org/t/the-s-extension-solved/31126/1 "2010-04-13T16:40:39Z")

</div>

I have few SIP trunks setup on my Asterisk 1.4 box. I treat them differently based on the DIDs in my incoming context. It looks like :

```auto
[from-trunk]
exten => 604288xxxx,1,NoOp(Incoming call from # ${CALLERID(num)} with SIP HEADER ${SIP_HEADER(FROM)})
exten => 604288xxxx,n,NoOp(SIP HEADER TO = ${SIP_HEADER(TO)})
exten => 604288xxxx,n,...... ;answer
exten => 778322xxxx,1,NoOp()
exten => 778322xxxx,n,...... ;doing something else
```

Now I am adding another SIP trunk from a different provider. The problem is now I have to use the s extension! If I use their DID Asterisk will tell me no extension found. I captured the sip header and I can see these info:

[quote]SIP HEADER FROM = sip:604582xxxx@208.xx.x.xx;tag=11014dd0-13c4-4bc4990a-b3f8c3c9-7e32f5a7  
SIP HEADER TO = sip:8992xxxxx@208.xx.x.xx;transport=UDP  
[/quote]

Generally I would like to avoid to use the s extension. Is there anyway to use their DID as extension to send the call to the proper context?

Please help and thanks a lot!

---

<div class="post-metadata">

**Author:** ![indreias](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/indreias/32/507_2.png) [@indreias](https://community.asterisk.org/u/indreias)\
**Post date:** [April 14, 2010, 8:39am UTC](https://community.asterisk.org/t/the-s-extension-solved/31126/2 "2010-04-14T08:39:52Z")

</div>

have you specify a specific REGISTER for this new SIP provider?  
have a look here -\> [http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf](http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf)

and check the format for register definition:  
register =\> user[:secret[]]@host[:port][/extension]

if you do not specify the extension it will go to “s”

HTH,  
Ioan

---

<div class="post-metadata">

**Author:** ![dynaguy](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@dynaguy](https://community.asterisk.org/u/dynaguy)\
**Post date:** [April 15, 2010, 4:00am UTC](https://community.asterisk.org/t/the-s-extension-solved/31126/3 "2010-04-15T04:00:09Z")

</div>

Thanks. I missed this setting. Now it’s working! 😃
